Liferay 6.2-ce-ga5

com.liferay.portlet.asset.service.impl
Class AssetEntryLocalServiceImpl

java.lang.Object
  extended by com.liferay.portal.service.BaseLocalServiceImpl
      extended by com.liferay.portlet.asset.service.base.AssetEntryLocalServiceBaseImpl
          extended by com.liferay.portlet.asset.service.impl.AssetEntryLocalServiceImpl
All Implemented Interfaces:
IdentifiableBean, BaseLocalService, PersistedModelLocalService, AssetEntryLocalService

public class AssetEntryLocalServiceImpl
extends AssetEntryLocalServiceBaseImpl

Provides the local service for accessing, deleting, updating, and validating asset entries.


Field Summary
 
Fields inherited from class com.liferay.portlet.asset.service.base.AssetEntryLocalServiceBaseImpl
assetCategoryFinder, assetCategoryLocalService, assetCategoryPersistence, assetCategoryPropertyFinder, assetCategoryPropertyLocalService, assetCategoryPropertyPersistence, assetCategoryPropertyService, assetCategoryService, assetEntryFinder, assetEntryLocalService, assetEntryPersistence, assetEntryService, assetLinkLocalService, assetLinkPersistence, assetTagFinder, assetTagLocalService, assetTagPersistence, assetTagPropertyFinder, assetTagPropertyKeyFinder, assetTagPropertyLocalService, assetTagPropertyPersistence, assetTagPropertyService, assetTagService, assetTagStatsLocalService, assetTagStatsPersistence, assetVocabularyFinder, assetVocabularyLocalService, assetVocabularyPersistence, assetVocabularyService, blogsEntryFinder, blogsEntryLocalService, blogsEntryPersistence, blogsEntryService, bookmarksEntryFinder, bookmarksEntryLocalService, bookmarksEntryPersistence, bookmarksEntryService, companyLocalService, companyPersistence, companyService, counterLocalService, dlAppLocalService, dlAppService, dlFileEntryFinder, dlFileEntryLocalService, dlFileEntryPersistence, dlFileEntryService, dlFolderFinder, dlFolderLocalService, dlFolderPersistence, dlFolderService, groupFinder, groupLocalService, groupPersistence, groupService, journalArticleFinder, journalArticleLocalService, journalArticlePersistence, journalArticleResourceLocalService, journalArticleResourcePersistence, journalArticleService, mbMessageFinder, mbMessageLocalService, mbMessagePersistence, mbMessageService, persistedModelLocalServiceRegistry, resourceLocalService, socialActivityCounterFinder, socialActivityCounterLocalService, socialActivityCounterPersistence, socialActivityFinder, socialActivityLocalService, socialActivityPersistence, socialActivityService, systemEventLocalService, systemEventPersistence, userFinder, userLocalService, userPersistence, userService, wikiPageFinder, wikiPageLocalService, wikiPagePersistence, wikiPageResourceLocalService, wikiPageResourcePersistence, wikiPageService
 
Fields inherited from class com.liferay.portal.service.BaseLocalServiceImpl
layoutPersistence
 
Constructor Summary
AssetEntryLocalServiceImpl()
           
 
Method Summary
 void deleteEntry(AssetEntry entry)
           
 void deleteEntry(long entryId)
           
 void deleteEntry(String className, long classPK)
           
 AssetEntry fetchEntry(long entryId)
           
 AssetEntry fetchEntry(long groupId, String classUuid)
           
 AssetEntry fetchEntry(String className, long classPK)
           
 List<AssetEntry> getAncestorEntries(long entryId)
           
 List<AssetEntry> getChildEntries(long entryId)
           
protected  long[] getClassNameIds(long companyId, String className)
           
 List<AssetEntry> getCompanyEntries(long companyId, int start, int end)
           
 int getCompanyEntriesCount(long companyId)
           
 List<AssetEntry> getEntries(AssetEntryQuery entryQuery)
           
 int getEntriesCount(AssetEntryQuery entryQuery)
           
protected  AssetEntry getEntry(Document document)
           
 AssetEntry getEntry(long entryId)
           
 AssetEntry getEntry(long groupId, String classUuid)
           
 AssetEntry getEntry(String className, long classPK)
           
 AssetEntry getNextEntry(long entryId)
           
 AssetEntry getParentEntry(long entryId)
           
 AssetEntry getPreviousEntry(long entryId)
           
 List<AssetEntry> getTopViewedEntries(String[] className, boolean asc, int start, int end)
           
 List<AssetEntry> getTopViewedEntries(String className, boolean asc, int start, int end)
           
 AssetEntry incrementViewCounter(long userId, String className, long classPK)
           
 AssetEntry incrementViewCounter(long userId, String className, long classPK, int increment)
           
protected  void reindex(AssetEntry entry)
           
 void reindex(List<AssetEntry> entries)
           
 Hits search(long companyId, long[] groupIds, long userId, String className, String keywords, int start, int end)
          Deprecated. As of 6.2.0, replaced by search(long, long[], long, String, String, int, int, int)
 Hits search(long companyId, long[] groupIds, long userId, String className, String keywords, int status, int start, int end)
           
 Hits search(long companyId, long[] groupIds, long userId, String className, String userName, String title, String description, String assetCategoryIds, String assetTagNames, boolean andSearch, int start, int end)
          Deprecated. As of 6.2.0, replaced by search(long, long[], long, String, String, String, String, String, String, int, boolean, int, int)
 Hits search(long companyId, long[] groupIds, long userId, String className, String userName, String title, String description, String assetCategoryIds, String assetTagNames, int status, boolean andSearch, int start, int end)
           
 Hits search(long companyId, long[] groupIds, String className, String keywords, int start, int end)
          Deprecated. As of 6.2.0, replaced by search(long, long[], long, String, String, int, int, int)
 AssetEntry updateEntry(long userId, long groupId, Date createDate, Date modifiedDate, String className, long classPK, String classUuid, long classTypeId, long[] categoryIds, String[] tagNames, boolean visible, Date startDate, Date endDate, Date expirationDate, String mimeType, String title, String description, String summary, String url, String layoutUuid, int height, int width, Integer priority, boolean sync)
           
 AssetEntry updateEntry(long userId, long groupId, String className, long classPK, long[] categoryIds, String[] tagNames)
           
 AssetEntry updateEntry(long userId, long groupId, String className, long classPK, String classUuid, long classTypeId, long[] categoryIds, String[] tagNames, boolean visible, Date startDate, Date endDate, Date publishDate, Date expirationDate, String mimeType, String title, String description, String summary, String url, String layoutUuid, int height, int width, Integer priority, boolean sync)
          Deprecated. As of 6.2.0, replaced by updateEntry(long, long, String, long, String, long, long[], String[], boolean, Date, Date, Date, String, String, String, String, String, String, int, int, Integer, boolean)
 AssetEntry updateEntry(long userId, long groupId, String className, long classPK, String classUuid, long classTypeId, long[] categoryIds, String[] tagNames, boolean visible, Date startDate, Date endDate, Date expirationDate, String mimeType, String title, String description, String summary, String url, String layoutUuid, int height, int width, Integer priority, boolean sync)
          Deprecated. As of 6.2.0, replaced by updateEntry(long, long, Date, Date, String, long, String, long, long[], String[], boolean, Date, Date, Date, String, String, String, String, String, String, int, int, Integer, boolean)
 AssetEntry updateEntry(String className, long classPK, Date publishDate, boolean visible)
           
 AssetEntry updateEntry(String className, long classPK, Date publishDate, Date expirationDate, boolean visible)
           
protected  AssetEntry updateVisible(AssetEntry entry, boolean visible)
           
 AssetEntry updateVisible(String className, long classPK, boolean visible)
           
 void validate(long groupId, String className, long[] categoryIds, String[] tagNames)
           
 
Methods inherited from class com.liferay.portlet.asset.service.base.AssetEntryLocalServiceBaseImpl
addAssetCategoryAssetEntries, addAssetCategoryAssetEntries, addAssetCategoryAssetEntry, addAssetCategoryAssetEntry, addAssetEntry, addAssetTagAssetEntries, addAssetTagAssetEntries, addAssetTagAssetEntry, addAssetTagAssetEntry, afterPropertiesSet, clearAssetCategoryAssetEntries, clearAssetTagAssetEntries, createAssetEntry, deleteAssetCategoryAssetEntries, deleteAssetCategoryAssetEntries, deleteAssetCategoryAssetEntry, deleteAssetCategoryAssetEntry, deleteAssetEntry, deleteAssetEntry, deleteAssetTagAssetEntries, deleteAssetTagAssetEntries, deleteAssetTagAssetEntry, deleteAssetTagAssetEntry, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, fetchAssetEntry, getAssetCategoryAssetEntries, getAssetCategoryAssetEntries, getAssetCategoryAssetEntries, getAssetCategoryAssetEntriesCount, getAssetCategoryFinder, getAssetCategoryLocalService, getAssetCategoryPersistence, getAssetCategoryPropertyFinder, getAssetCategoryPropertyLocalService, getAssetCategoryPropertyPersistence, getAssetCategoryPropertyService, getAssetCategoryService, getAssetEntries, getAssetEntriesCount, getAssetEntry, getAssetEntryFinder, getAssetEntryLocalService, getAssetEntryPersistence, getAssetEntryService, getAssetLinkLocalService, getAssetLinkPersistence, getAssetTagAssetEntries, getAssetTagAssetEntries, getAssetTagAssetEntries, getAssetTagAssetEntriesCount, getAssetTagFinder, getAssetTagLocalService, getAssetTagPersistence, getAssetTagPropertyFinder, getAssetTagPropertyKeyFinder, getAssetTagPropertyLocalService, getAssetTagPropertyPersistence, getAssetTagPropertyService, getAssetTagService, getAssetTagStatsLocalService, getAssetTagStatsPersistence, getAssetVocabularyFinder, getAssetVocabularyLocalService, getAssetVocabularyPersistence, getAssetVocabularyService, getBeanIdentifier, getBlogsEntryFinder, getBlogsEntryLocalService, getBlogsEntryPersistence, getBlogsEntryService, getBookmarksEntryFinder, getBookmarksEntryLocalService, getBookmarksEntryPersistence, getBookmarksEntryService, getCompanyLocalService, getCompanyPersistence, getCompanyService, getCounterLocalService, getDLAppLocalService, getDLAppService, getDLFileEntryFinder, getDLFileEntryLocalService, getDLFileEntryPersistence, getDLFileEntryService, getDLFolderFinder, getDLFolderLocalService, getDLFolderPersistence, getDLFolderService, getGroupFinder, getGroupLocalService, getGroupPersistence, getGroupService, getJournalArticleFinder, getJournalArticleLocalService, getJournalArticlePersistence, getJournalArticleResourceLocalService, getJournalArticleResourcePersistence, getJournalArticleService, getMBMessageFinder, getMBMessageLocalService, getMBMessagePersistence, getMBMessageService, getModelClass, getModelClassName, getPersistedModel, getResourceLocalService, getSocialActivityCounterFinder, getSocialActivityCounterLocalService, getSocialActivityCounterPersistence, getSocialActivityFinder, getSocialActivityLocalService, getSocialActivityPersistence, getSocialActivityService, getSystemEventLocalService, getSystemEventPersistence, getUserFinder, getUserLocalService, getUserPersistence, getUserService, getWikiPageFinder, getWikiPageLocalService, getWikiPagePersistence, getWikiPageResourceLocalService, getWikiPageResourcePersistence, getWikiPageService, hasAssetCategoryAssetEntries, hasAssetCategoryAssetEntry, hasAssetTagAssetEntries, hasAssetTagAssetEntry, runSQL, setAssetCategoryAssetEntries, setAssetCategoryFinder, setAssetCategoryLocalService, setAssetCategoryPersistence, setAssetCategoryPropertyFinder, setAssetCategoryPropertyLocalService, setAssetCategoryPropertyPersistence, setAssetCategoryPropertyService, setAssetCategoryService, setAssetEntryFinder, setAssetEntryLocalService, setAssetEntryPersistence, setAssetEntryService, setAssetLinkLocalService, setAssetLinkPersistence, setAssetTagAssetEntries, setAssetTagFinder, setAssetTagLocalService, setAssetTagPersistence, setAssetTagPropertyFinder, setAssetTagPropertyKeyFinder, setAssetTagPropertyLocalService, setAssetTagPropertyPersistence, setAssetTagPropertyService, setAssetTagService, setAssetTagStatsLocalService, setAssetTagStatsPersistence, setAssetVocabularyFinder, setAssetVocabularyLocalService, setAssetVocabularyPersistence, setAssetVocabularyService, setBeanIdentifier, setBlogsEntryFinder, setBlogsEntryLocalService, setBlogsEntryPersistence, setBlogsEntryService, setBookmarksEntryFinder, setBookmarksEntryLocalService, setBookmarksEntryPersistence, setBookmarksEntryService, setCompanyLocalService, setCompanyPersistence, setCompanyService, setCounterLocalService, setDLAppLocalService, setDLAppService, setDLFileEntryFinder, setDLFileEntryLocalService, setDLFileEntryPersistence, setDLFileEntryService, setDLFolderFinder, setDLFolderLocalService, setDLFolderPersistence, setDLFolderService, setGroupFinder, setGroupLocalService, setGroupPersistence, setGroupService, setJournalArticleFinder, setJournalArticleLocalService, setJournalArticlePersistence, setJournalArticleResourceLocalService, setJournalArticleResourcePersistence, setJournalArticleService, setMBMessageFinder, setMBMessageLocalService, setMBMessagePersistence, setMBMessageService, setResourceLocalService, setSocialActivityCounterFinder, setSocialActivityCounterLocalService, setSocialActivityCounterPersistence, setSocialActivityFinder, setSocialActivityLocalService, setSocialActivityPersistence, setSocialActivityService, setSystemEventLocalService, setSystemEventPersistence, setUserFinder, setUserLocalService, setUserPersistence, setUserService, setWikiPageFinder, setWikiPageLocalService, setWikiPagePersistence, setWikiPageResourceLocalService, setWikiPageResourcePersistence, setWikiPageService, updateAssetEntry
 
Methods inherited from class com.liferay.portal.service.BaseLocalServiceImpl
getClassLoader, getLayoutURL, getLayoutURL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssetEntryLocalServiceImpl

public AssetEntryLocalServiceImpl()
Method Detail

deleteEntry

public void deleteEntry(AssetEntry entry)
                 throws PortalException,
                        SystemException
Throws:
PortalException
SystemException

deleteEntry

public void deleteEntry(long entryId)
                 throws PortalException,
                        SystemException
Throws:
PortalException
SystemException

deleteEntry

public void deleteEntry(String className,
                        long classPK)
                 throws PortalException,
                        SystemException
Throws:
PortalException
SystemException

fetchEntry

public AssetEntry fetchEntry(long entryId)
                      throws SystemException
Throws:
SystemException

fetchEntry

public AssetEntry fetchEntry(long groupId,
                             String classUuid)
                      throws SystemException
Throws:
SystemException

fetchEntry

public AssetEntry fetchEntry(String className,
                             long classPK)
                      throws SystemException
Throws:
SystemException

getAncestorEntries

public List<AssetEntry> getAncestorEntries(long entryId)
                                    throws PortalException,
                                           SystemException
Throws:
PortalException
SystemException

getChildEntries

public List<AssetEntry> getChildEntries(long entryId)
                                 throws PortalException,
                                        SystemException
Throws:
PortalException
SystemException

getCompanyEntries

public List<AssetEntry> getCompanyEntries(long companyId,
                                          int start,
                                          int end)
                                   throws SystemException
Throws:
SystemException

getCompanyEntriesCount

public int getCompanyEntriesCount(long companyId)
                           throws SystemException
Throws:
SystemException

getEntries

public List<AssetEntry> getEntries(AssetEntryQuery entryQuery)
                            throws SystemException
Throws:
SystemException

getEntriesCount

public int getEntriesCount(AssetEntryQuery entryQuery)
                    throws SystemException
Throws:
SystemException

getEntry

public AssetEntry getEntry(long entryId)
                    throws PortalException,
                           SystemException
Throws:
PortalException
SystemException

getEntry

public AssetEntry getEntry(long groupId,
                           String classUuid)
                    throws PortalException,
                           SystemException
Throws:
PortalException
SystemException

getEntry

public AssetEntry getEntry(String className,
                           long classPK)
                    throws PortalException,
                           SystemException
Throws:
PortalException
SystemException

getNextEntry

public AssetEntry getNextEntry(long entryId)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

getParentEntry

public AssetEntry getParentEntry(long entryId)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

getPreviousEntry

public AssetEntry getPreviousEntry(long entryId)
                            throws PortalException,
                                   SystemException
Throws:
PortalException
SystemException

getTopViewedEntries

public List<AssetEntry> getTopViewedEntries(String className,
                                            boolean asc,
                                            int start,
                                            int end)
                                     throws SystemException
Throws:
SystemException

getTopViewedEntries

public List<AssetEntry> getTopViewedEntries(String[] className,
                                            boolean asc,
                                            int start,
                                            int end)
                                     throws SystemException
Throws:
SystemException

incrementViewCounter

public AssetEntry incrementViewCounter(long userId,
                                       String className,
                                       long classPK)
                                throws PortalException,
                                       SystemException
Throws:
PortalException
SystemException

incrementViewCounter

@BufferedIncrement(configuration="AssetEntry",
                   incrementClass=NumberIncrement.class)
public AssetEntry incrementViewCounter(long userId,
                                                                                                         String className,
                                                                                                         long classPK,
                                                                                                         int increment)
                                throws SystemException
Throws:
SystemException

reindex

public void reindex(List<AssetEntry> entries)
             throws PortalException
Throws:
PortalException

search

public Hits search(long companyId,
                   long[] groupIds,
                   long userId,
                   String className,
                   String keywords,
                   int start,
                   int end)
            throws SystemException
Deprecated. As of 6.2.0, replaced by search(long, long[], long, String, String, int, int, int)

Throws:
SystemException

search

public Hits search(long companyId,
                   long[] groupIds,
                   long userId,
                   String className,
                   String keywords,
                   int status,
                   int start,
                   int end)
            throws SystemException
Throws:
SystemException

search

public Hits search(long companyId,
                   long[] groupIds,
                   long userId,
                   String className,
                   String userName,
                   String title,
                   String description,
                   String assetCategoryIds,
                   String assetTagNames,
                   boolean andSearch,
                   int start,
                   int end)
            throws SystemException
Deprecated. As of 6.2.0, replaced by search(long, long[], long, String, String, String, String, String, String, int, boolean, int, int)

Throws:
SystemException

search

public Hits search(long companyId,
                   long[] groupIds,
                   long userId,
                   String className,
                   String userName,
                   String title,
                   String description,
                   String assetCategoryIds,
                   String assetTagNames,
                   int status,
                   boolean andSearch,
                   int start,
                   int end)
            throws SystemException
Throws:
SystemException

search

public Hits search(long companyId,
                   long[] groupIds,
                   String className,
                   String keywords,
                   int start,
                   int end)
            throws SystemException
Deprecated. As of 6.2.0, replaced by search(long, long[], long, String, String, int, int, int)

Throws:
SystemException

updateEntry

public AssetEntry updateEntry(long userId,
                              long groupId,
                              Date createDate,
                              Date modifiedDate,
                              String className,
                              long classPK,
                              String classUuid,
                              long classTypeId,
                              long[] categoryIds,
                              String[] tagNames,
                              boolean visible,
                              Date startDate,
                              Date endDate,
                              Date expirationDate,
                              String mimeType,
                              String title,
                              String description,
                              String summary,
                              String url,
                              String layoutUuid,
                              int height,
                              int width,
                              Integer priority,
                              boolean sync)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

updateEntry

public AssetEntry updateEntry(long userId,
                              long groupId,
                              String className,
                              long classPK,
                              long[] categoryIds,
                              String[] tagNames)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

updateEntry

public AssetEntry updateEntry(long userId,
                              long groupId,
                              String className,
                              long classPK,
                              String classUuid,
                              long classTypeId,
                              long[] categoryIds,
                              String[] tagNames,
                              boolean visible,
                              Date startDate,
                              Date endDate,
                              Date publishDate,
                              Date expirationDate,
                              String mimeType,
                              String title,
                              String description,
                              String summary,
                              String url,
                              String layoutUuid,
                              int height,
                              int width,
                              Integer priority,
                              boolean sync)
                       throws PortalException,
                              SystemException
Deprecated. As of 6.2.0, replaced by updateEntry(long, long, String, long, String, long, long[], String[], boolean, Date, Date, Date, String, String, String, String, String, String, int, int, Integer, boolean)

Throws:
PortalException
SystemException

updateEntry

public AssetEntry updateEntry(long userId,
                              long groupId,
                              String className,
                              long classPK,
                              String classUuid,
                              long classTypeId,
                              long[] categoryIds,
                              String[] tagNames,
                              boolean visible,
                              Date startDate,
                              Date endDate,
                              Date expirationDate,
                              String mimeType,
                              String title,
                              String description,
                              String summary,
                              String url,
                              String layoutUuid,
                              int height,
                              int width,
                              Integer priority,
                              boolean sync)
                       throws PortalException,
                              SystemException
Deprecated. As of 6.2.0, replaced by updateEntry(long, long, Date, Date, String, long, String, long, long[], String[], boolean, Date, Date, Date, String, String, String, String, String, String, int, int, Integer, boolean)

Throws:
PortalException
SystemException

updateEntry

public AssetEntry updateEntry(String className,
                              long classPK,
                              Date publishDate,
                              boolean visible)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

updateEntry

public AssetEntry updateEntry(String className,
                              long classPK,
                              Date publishDate,
                              Date expirationDate,
                              boolean visible)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

updateVisible

public AssetEntry updateVisible(String className,
                                long classPK,
                                boolean visible)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

validate

public void validate(long groupId,
                     String className,
                     long[] categoryIds,
                     String[] tagNames)
              throws PortalException,
                     SystemException
Throws:
PortalException
SystemException

getClassNameIds

protected long[] getClassNameIds(long companyId,
                                 String className)

getEntry

protected AssetEntry getEntry(Document document)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

reindex

protected void reindex(AssetEntry entry)
                throws PortalException
Throws:
PortalException

updateVisible

protected AssetEntry updateVisible(AssetEntry entry,
                                   boolean visible)
                            throws PortalException,
                                   SystemException
Throws:
PortalException
SystemException

Liferay 6.2-ce-ga5