com.liferay.portlet.tags.service.impl
Class TagsAssetServiceImpl

java.lang.Object
  extended by com.liferay.portal.service.base.PrincipalBean
      extended by com.liferay.portlet.tags.service.base.TagsAssetServiceBaseImpl
          extended by com.liferay.portlet.tags.service.impl.TagsAssetServiceImpl
All Implemented Interfaces:
com.liferay.portlet.tags.service.TagsAssetService

public class TagsAssetServiceImpl
extends TagsAssetServiceBaseImpl

View Source

Author:
Brian Wing Shun Chan, Jorge Ferrer, Bruno Farache

Field Summary
 
Fields inherited from class com.liferay.portlet.tags.service.base.TagsAssetServiceBaseImpl
blogsEntryFinder, blogsEntryLocalService, blogsEntryPersistence, blogsEntryService, bookmarksEntryFinder, bookmarksEntryLocalService, bookmarksEntryPersistence, bookmarksEntryService, companyLocalService, companyPersistence, companyService, counterLocalService, counterService, dlFileEntryFinder, dlFileEntryLocalService, dlFileEntryPersistence, dlFileEntryService, groupFinder, groupLocalService, groupPersistence, groupService, journalArticleFinder, journalArticleLocalService, journalArticlePersistence, journalArticleResourceLocalService, journalArticleResourcePersistence, journalArticleService, mbMessageFinder, mbMessageLocalService, mbMessagePersistence, mbMessageService, tagsAssetFinder, tagsAssetLocalService, tagsAssetPersistence, tagsAssetService, tagsEntryFinder, tagsEntryLocalService, tagsEntryPersistence, tagsEntryService, tagsPropertyFinder, tagsPropertyKeyFinder, tagsPropertyLocalService, tagsPropertyPersistence, tagsPropertyService, tagsSourceLocalService, tagsSourcePersistence, tagsSourceService, tagsVocabularyLocalService, tagsVocabularyPersistence, tagsVocabularyService, userFinder, userLocalService, userPersistence, userService, wikiPageFinder, wikiPageLocalService, wikiPagePersistence, wikiPageResourceLocalService, wikiPageResourcePersistence, wikiPageService
 
Fields inherited from class com.liferay.portal.service.base.PrincipalBean
ANONYMOUS_NAMES, JRUN_ANONYMOUS, ORACLE_ANONYMOUS, SUN_ANONYMOUS, WEBLOGIC_ANONYMOUS
 
Constructor Summary
TagsAssetServiceImpl()
           
 
Method Summary
 void deleteAsset(long assetId)
           
protected  java.lang.String exportToRSS(java.lang.String name, java.lang.String description, java.lang.String type, double version, java.lang.String displayStyle, java.lang.String feedURL, java.lang.String entryURL, java.util.List<com.liferay.portlet.tags.model.TagsAsset> assets)
           
 com.liferay.portlet.tags.model.TagsAsset getAsset(long assetId)
           
 java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(long groupId, long[] classNameIds, long[] entryIds, long[] notEntryIds, boolean andOperator, java.lang.String orderByCol1, java.lang.String orderByCol2, java.lang.String orderByType1, java.lang.String orderByType2, boolean excludeZeroViewCount, java.util.Date publishDate, java.util.Date expirationDate, int start, int end)
           
 int getAssetsCount(long groupId, long[] classNameIds, long[] entryIds, long[] notEntryIds, boolean andOperator, boolean excludeZeroViewCount, java.util.Date publishDate, java.util.Date expirationDate)
           
 java.lang.String getAssetsRSS(long groupId, long[] classNameIds, long[] entryIds, long[] notEntryIds, boolean andOperator, java.lang.String orderByCol1, java.lang.String orderByCol2, java.lang.String orderByType1, java.lang.String orderByType2, boolean excludeZeroViewCount, java.util.Date publishDate, java.util.Date expirationDate, int max, java.lang.String type, double version, java.lang.String displayStyle, java.lang.String feedURL, java.lang.String entryURL)
           
 com.liferay.portlet.tags.model.TagsAssetType[] getAssetTypes(java.lang.String languageId)
           
 com.liferay.portlet.tags.model.TagsAssetDisplay[] getCompanyAssetDisplays(long companyId, int start, int end, java.lang.String languageId)
           
 java.util.List<com.liferay.portlet.tags.model.TagsAsset> getCompanyAssets(long companyId, int start, int end)
           
 int getCompanyAssetsCount(long companyId)
           
 java.lang.String getCompanyAssetsRSS(long companyId, int max, java.lang.String type, double version, java.lang.String displayStyle, java.lang.String feedURL, java.lang.String entryURL)
           
protected  long[][] getViewableEntryIds(long[] entryIds, long[] notEntryIds)
           
 com.liferay.portlet.tags.model.TagsAsset incrementViewCounter(java.lang.String className, long classPK)
           
 com.liferay.portlet.tags.model.TagsAssetDisplay[] searchAssetDisplays(long companyId, java.lang.String portletId, java.lang.String keywords, java.lang.String languageId, int start, int end)
           
 int searchAssetDisplaysCount(long companyId, java.lang.String portletId, java.lang.String keywords, java.lang.String languageId)
           
 com.liferay.portlet.tags.model.TagsAsset updateAsset(long groupId, java.lang.String className, long classPK, java.lang.String[] categoryNames, java.lang.String[] entryNames, boolean visible, java.util.Date startDate, java.util.Date endDate, java.util.Date publishDate, java.util.Date expirationDate, java.lang.String mimeType, java.lang.String title, java.lang.String description, java.lang.String summary, java.lang.String url, int height, int width, java.lang.Integer priority)
           
 
Methods inherited from class com.liferay.portlet.tags.service.base.TagsAssetServiceBaseImpl
getBlogsEntryFinder, getBlogsEntryLocalService, getBlogsEntryPersistence, getBlogsEntryService, getBookmarksEntryFinder, getBookmarksEntryLocalService, getBookmarksEntryPersistence, getBookmarksEntryService, getCompanyLocalService, getCompanyPersistence, getCompanyService, getCounterLocalService, getCounterService, getDLFileEntryFinder, getDLFileEntryLocalService, getDLFileEntryPersistence, getDLFileEntryService, getGroupFinder, getGroupLocalService, getGroupPersistence, getGroupService, getJournalArticleFinder, getJournalArticleLocalService, getJournalArticlePersistence, getJournalArticleResourceLocalService, getJournalArticleResourcePersistence, getJournalArticleService, getMBMessageFinder, getMBMessageLocalService, getMBMessagePersistence, getMBMessageService, getTagsAssetFinder, getTagsAssetLocalService, getTagsAssetPersistence, getTagsAssetService, getTagsEntryFinder, getTagsEntryLocalService, getTagsEntryPersistence, getTagsEntryService, getTagsPropertyFinder, getTagsPropertyKeyFinder, getTagsPropertyLocalService, getTagsPropertyPersistence, getTagsPropertyService, getTagsSourceLocalService, getTagsSourcePersistence, getTagsSourceService, getTagsVocabularyLocalService, getTagsVocabularyPersistence, getTagsVocabularyService, getUserFinder, getUserLocalService, getUserPersistence, getUserService, getWikiPageFinder, getWikiPageLocalService, getWikiPagePersistence, getWikiPageResourceLocalService, getWikiPageResourcePersistence, getWikiPageService, setBlogsEntryFinder, setBlogsEntryLocalService, setBlogsEntryPersistence, setBlogsEntryService, setBookmarksEntryFinder, setBookmarksEntryLocalService, setBookmarksEntryPersistence, setBookmarksEntryService, setCompanyLocalService, setCompanyPersistence, setCompanyService, setCounterLocalService, setCounterService, setDLFileEntryFinder, setDLFileEntryLocalService, setDLFileEntryPersistence, setDLFileEntryService, setGroupFinder, setGroupLocalService, setGroupPersistence, setGroupService, setJournalArticleFinder, setJournalArticleLocalService, setJournalArticlePersistence, setJournalArticleResourceLocalService, setJournalArticleResourcePersistence, setJournalArticleService, setMBMessageFinder, setMBMessageLocalService, setMBMessagePersistence, setMBMessageService, setTagsAssetFinder, setTagsAssetLocalService, setTagsAssetPersistence, setTagsAssetService, setTagsEntryFinder, setTagsEntryLocalService, setTagsEntryPersistence, setTagsEntryService, setTagsPropertyFinder, setTagsPropertyKeyFinder, setTagsPropertyLocalService, setTagsPropertyPersistence, setTagsPropertyService, setTagsSourceLocalService, setTagsSourcePersistence, setTagsSourceService, setTagsVocabularyLocalService, setTagsVocabularyPersistence, setTagsVocabularyService, setUserFinder, setUserLocalService, setUserPersistence, setUserService, setWikiPageFinder, setWikiPageLocalService, setWikiPagePersistence, setWikiPageResourceLocalService, setWikiPageResourcePersistence, setWikiPageService
 
Methods inherited from class com.liferay.portal.service.base.PrincipalBean
getGuestOrUserId, getPermissionChecker, getUser, getUserId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TagsAssetServiceImpl

public TagsAssetServiceImpl()
Method Detail

deleteAsset

public void deleteAsset(long assetId)
                 throws com.liferay.portal.PortalException,
                        com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getAsset

public com.liferay.portlet.tags.model.TagsAsset getAsset(long assetId)
                                                  throws com.liferay.portal.PortalException,
                                                         com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getAssets

public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(long groupId,
                                                                          long[] classNameIds,
                                                                          long[] entryIds,
                                                                          long[] notEntryIds,
                                                                          boolean andOperator,
                                                                          java.lang.String orderByCol1,
                                                                          java.lang.String orderByCol2,
                                                                          java.lang.String orderByType1,
                                                                          java.lang.String orderByType2,
                                                                          boolean excludeZeroViewCount,
                                                                          java.util.Date publishDate,
                                                                          java.util.Date expirationDate,
                                                                          int start,
                                                                          int end)
                                                                   throws com.liferay.portal.PortalException,
                                                                          com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getAssetsCount

public int getAssetsCount(long groupId,
                          long[] classNameIds,
                          long[] entryIds,
                          long[] notEntryIds,
                          boolean andOperator,
                          boolean excludeZeroViewCount,
                          java.util.Date publishDate,
                          java.util.Date expirationDate)
                   throws com.liferay.portal.PortalException,
                          com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getAssetsRSS

public java.lang.String getAssetsRSS(long groupId,
                                     long[] classNameIds,
                                     long[] entryIds,
                                     long[] notEntryIds,
                                     boolean andOperator,
                                     java.lang.String orderByCol1,
                                     java.lang.String orderByCol2,
                                     java.lang.String orderByType1,
                                     java.lang.String orderByType2,
                                     boolean excludeZeroViewCount,
                                     java.util.Date publishDate,
                                     java.util.Date expirationDate,
                                     int max,
                                     java.lang.String type,
                                     double version,
                                     java.lang.String displayStyle,
                                     java.lang.String feedURL,
                                     java.lang.String entryURL)
                              throws com.liferay.portal.PortalException,
                                     com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getAssetTypes

public com.liferay.portlet.tags.model.TagsAssetType[] getAssetTypes(java.lang.String languageId)

getCompanyAssetDisplays

public com.liferay.portlet.tags.model.TagsAssetDisplay[] getCompanyAssetDisplays(long companyId,
                                                                                 int start,
                                                                                 int end,
                                                                                 java.lang.String languageId)
                                                                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getCompanyAssets

public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getCompanyAssets(long companyId,
                                                                                 int start,
                                                                                 int end)
                                                                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getCompanyAssetsCount

public int getCompanyAssetsCount(long companyId)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getCompanyAssetsRSS

public java.lang.String getCompanyAssetsRSS(long companyId,
                                            int max,
                                            java.lang.String type,
                                            double version,
                                            java.lang.String displayStyle,
                                            java.lang.String feedURL,
                                            java.lang.String entryURL)
                                     throws com.liferay.portal.PortalException,
                                            com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

incrementViewCounter

public com.liferay.portlet.tags.model.TagsAsset incrementViewCounter(java.lang.String className,
                                                                     long classPK)
                                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

searchAssetDisplays

public com.liferay.portlet.tags.model.TagsAssetDisplay[] searchAssetDisplays(long companyId,
                                                                             java.lang.String portletId,
                                                                             java.lang.String keywords,
                                                                             java.lang.String languageId,
                                                                             int start,
                                                                             int end)
                                                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

searchAssetDisplaysCount

public int searchAssetDisplaysCount(long companyId,
                                    java.lang.String portletId,
                                    java.lang.String keywords,
                                    java.lang.String languageId)
                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateAsset

public com.liferay.portlet.tags.model.TagsAsset updateAsset(long groupId,
                                                            java.lang.String className,
                                                            long classPK,
                                                            java.lang.String[] categoryNames,
                                                            java.lang.String[] entryNames,
                                                            boolean visible,
                                                            java.util.Date startDate,
                                                            java.util.Date endDate,
                                                            java.util.Date publishDate,
                                                            java.util.Date expirationDate,
                                                            java.lang.String mimeType,
                                                            java.lang.String title,
                                                            java.lang.String description,
                                                            java.lang.String summary,
                                                            java.lang.String url,
                                                            int height,
                                                            int width,
                                                            java.lang.Integer priority)
                                                     throws com.liferay.portal.PortalException,
                                                            com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

exportToRSS

protected java.lang.String exportToRSS(java.lang.String name,
                                       java.lang.String description,
                                       java.lang.String type,
                                       double version,
                                       java.lang.String displayStyle,
                                       java.lang.String feedURL,
                                       java.lang.String entryURL,
                                       java.util.List<com.liferay.portlet.tags.model.TagsAsset> assets)
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getViewableEntryIds

protected long[][] getViewableEntryIds(long[] entryIds,
                                       long[] notEntryIds)
                                throws com.liferay.portal.PortalException,
                                       com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException