Liferay 7.0-ce-b4

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

java.lang.Object
  extended by com.liferay.portal.service.BaseServiceImpl
      extended by com.liferay.portlet.asset.service.base.AssetEntryServiceBaseImpl
          extended by com.liferay.portlet.asset.service.impl.AssetEntryServiceImpl
All Implemented Interfaces:
IdentifiableOSGiService, BaseService, AssetEntryService

public class AssetEntryServiceImpl
extends AssetEntryServiceBaseImpl

Provides the remote service for accessing and updating asset entries. Its methods include permission checks.


Field Summary
 
Fields inherited from class com.liferay.portlet.asset.service.base.AssetEntryServiceBaseImpl
assetCategoryFinder, assetCategoryLocalService, assetCategoryPersistence, assetCategoryService, assetEntryFinder, assetEntryLocalService, assetEntryPersistence, assetEntryService, assetLinkLocalService, assetLinkPersistence, assetTagFinder, assetTagLocalService, assetTagPersistence, assetTagService, classNameLocalService, classNamePersistence, classNameService, companyLocalService, companyPersistence, companyService, counterLocalService, groupFinder, groupLocalService, groupPersistence, groupService, socialActivityCounterFinder, socialActivityCounterLocalService, socialActivityCounterPersistence, socialActivityFinder, socialActivityLocalService, socialActivityPersistence, socialActivityService, systemEventLocalService, systemEventPersistence, userFinder, userLocalService, userPersistence, userService
 
Fields inherited from class com.liferay.portal.service.BaseServiceImpl
ANONYMOUS_NAMES, JRUN_ANONYMOUS, ORACLE_ANONYMOUS, SUN_ANONYMOUS, WEBLOGIC_ANONYMOUS
 
Constructor Summary
AssetEntryServiceImpl()
           
 
Method Summary
protected  AssetEntryQuery buildFilteredEntryQuery(AssetEntryQuery entryQuery)
           
 AssetEntry fetchEntry(long entryId)
           
protected  Object[] filterEntryQuery(AssetEntryQuery entryQuery, boolean returnEntriesCountOnly)
           
 List<AssetEntry> getCompanyEntries(long companyId, int start, int end)
           
 int getCompanyEntriesCount(long companyId)
           
 List<AssetEntry> getEntries(AssetEntryQuery entryQuery)
           
 int getEntriesCount(AssetEntryQuery entryQuery)
           
 AssetEntry getEntry(long entryId)
           
protected  boolean hasEntryQueryResults(AssetEntryQuery originalEntryQuery, AssetEntryQuery filteredEntryQuery)
           
 AssetEntry incrementViewCounter(String className, long classPK)
           
 AssetEntry updateEntry(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, Double priority)
           
 AssetEntry updateEntry(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)
          Deprecated. As of 7.0.0, replaced by updateEntry(long, Date, Date, String, long, String, long, long[], String[], boolean, Date, Date, Date, String, String, String, String, String, String, int, int, Double)
 AssetEntry updateEntry(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, String, long, String, long, long[], String[], boolean, Date, Date, Date, String, String, String, String, String, String, int, int, Integer, boolean)
 AssetEntry updateEntry(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, Date, Date, String, long, String, long, long[], String[], boolean, Date, Date, Date, String, String, String, String, String, String, int, int, Integer, boolean)
 
Methods inherited from class com.liferay.portlet.asset.service.base.AssetEntryServiceBaseImpl
afterPropertiesSet, destroy, getAssetCategoryFinder, getAssetCategoryLocalService, getAssetCategoryPersistence, getAssetCategoryService, getAssetEntryFinder, getAssetEntryLocalService, getAssetEntryPersistence, getAssetEntryService, getAssetLinkLocalService, getAssetLinkPersistence, getAssetTagFinder, getAssetTagLocalService, getAssetTagPersistence, getAssetTagService, getClassNameLocalService, getClassNamePersistence, getClassNameService, getCompanyLocalService, getCompanyPersistence, getCompanyService, getCounterLocalService, getGroupFinder, getGroupLocalService, getGroupPersistence, getGroupService, getModelClass, getModelClassName, getOSGiServiceIdentifier, getSocialActivityCounterFinder, getSocialActivityCounterLocalService, getSocialActivityCounterPersistence, getSocialActivityFinder, getSocialActivityLocalService, getSocialActivityPersistence, getSocialActivityService, getSystemEventLocalService, getSystemEventPersistence, getUserFinder, getUserLocalService, getUserPersistence, getUserService, runSQL, setAssetCategoryFinder, setAssetCategoryLocalService, setAssetCategoryPersistence, setAssetCategoryService, setAssetEntryFinder, setAssetEntryLocalService, setAssetEntryPersistence, setAssetEntryService, setAssetLinkLocalService, setAssetLinkPersistence, setAssetTagFinder, setAssetTagLocalService, setAssetTagPersistence, setAssetTagService, setClassNameLocalService, setClassNamePersistence, setClassNameService, setCompanyLocalService, setCompanyPersistence, setCompanyService, setCounterLocalService, setGroupFinder, setGroupLocalService, setGroupPersistence, setGroupService, setSocialActivityCounterFinder, setSocialActivityCounterLocalService, setSocialActivityCounterPersistence, setSocialActivityFinder, setSocialActivityLocalService, setSocialActivityPersistence, setSocialActivityService, setSystemEventLocalService, setSystemEventPersistence, setUserFinder, setUserLocalService, setUserPersistence, setUserService
 
Methods inherited from class com.liferay.portal.service.BaseServiceImpl
getClassLoader, getGuestOrUser, getGuestOrUserId, getPermissionChecker, getUser, getUserId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssetEntryServiceImpl

public AssetEntryServiceImpl()
Method Detail

fetchEntry

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

getCompanyEntries

public List<AssetEntry> getCompanyEntries(long companyId,
                                          int start,
                                          int end)

getCompanyEntriesCount

public int getCompanyEntriesCount(long companyId)

getEntries

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

getEntriesCount

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

getEntry

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

incrementViewCounter

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

updateEntry

public AssetEntry updateEntry(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,
                              Double priority)
                       throws PortalException
Throws:
PortalException

updateEntry

@Deprecated
public AssetEntry updateEntry(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
Deprecated. As of 7.0.0, replaced by updateEntry(long, Date, Date, String, long, String, long, long[], String[], boolean, Date, Date, Date, String, String, String, String, String, String, int, int, Double)

Throws:
PortalException

updateEntry

@Deprecated
public AssetEntry updateEntry(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
Deprecated. As of 6.2.0, replaced by updateEntry(long, String, long, String, long, long[], String[], boolean, Date, Date, Date, String, String, String, String, String, String, int, int, Integer, boolean)

Throws:
PortalException

updateEntry

@Deprecated
public AssetEntry updateEntry(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
Deprecated. As of 6.2.0, replaced by updateEntry(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

buildFilteredEntryQuery

protected AssetEntryQuery buildFilteredEntryQuery(AssetEntryQuery entryQuery)
                                           throws PortalException
Throws:
PortalException

filterEntryQuery

protected Object[] filterEntryQuery(AssetEntryQuery entryQuery,
                                    boolean returnEntriesCountOnly)
                             throws PortalException
Throws:
PortalException

hasEntryQueryResults

protected boolean hasEntryQueryResults(AssetEntryQuery originalEntryQuery,
                                       AssetEntryQuery filteredEntryQuery)

Liferay 7.0-ce-b4