Liferay 7.0-ce-b4

com.liferay.portlet.asset.service
Class AssetEntryLocalServiceWrapper

java.lang.Object
  extended by com.liferay.portlet.asset.service.AssetEntryLocalServiceWrapper
All Implemented Interfaces:
BaseLocalService, PersistedModelLocalService, ServiceWrapper<AssetEntryLocalService>, AssetEntryLocalService

@ProviderType
public class AssetEntryLocalServiceWrapper
extends Object
implements AssetEntryLocalService, ServiceWrapper<AssetEntryLocalService>

Provides a wrapper for AssetEntryLocalService.

See Also:
AssetEntryLocalService

Constructor Summary
AssetEntryLocalServiceWrapper(AssetEntryLocalService assetEntryLocalService)
           
 
Method Summary
 void addAssetCategoryAssetEntries(long categoryId, List<AssetEntry> AssetEntries)
           
 void addAssetCategoryAssetEntries(long categoryId, long[] entryIds)
           
 void addAssetCategoryAssetEntry(long categoryId, AssetEntry assetEntry)
           
 void addAssetCategoryAssetEntry(long categoryId, long entryId)
           
 AssetEntry addAssetEntry(AssetEntry assetEntry)
          Adds the asset entry to the database.
 void addAssetTagAssetEntries(long tagId, List<AssetEntry> AssetEntries)
           
 void addAssetTagAssetEntries(long tagId, long[] entryIds)
           
 void addAssetTagAssetEntry(long tagId, AssetEntry assetEntry)
           
 void addAssetTagAssetEntry(long tagId, long entryId)
           
 void clearAssetCategoryAssetEntries(long categoryId)
           
 void clearAssetTagAssetEntries(long tagId)
           
 AssetEntry createAssetEntry(long entryId)
          Creates a new asset entry with the primary key.
 void deleteAssetCategoryAssetEntries(long categoryId, List<AssetEntry> AssetEntries)
           
 void deleteAssetCategoryAssetEntries(long categoryId, long[] entryIds)
           
 void deleteAssetCategoryAssetEntry(long categoryId, AssetEntry assetEntry)
           
 void deleteAssetCategoryAssetEntry(long categoryId, long entryId)
           
 AssetEntry deleteAssetEntry(AssetEntry assetEntry)
          Deletes the asset entry from the database.
 AssetEntry deleteAssetEntry(long entryId)
          Deletes the asset entry with the primary key from the database.
 void deleteAssetTagAssetEntries(long tagId, List<AssetEntry> AssetEntries)
           
 void deleteAssetTagAssetEntries(long tagId, long[] entryIds)
           
 void deleteAssetTagAssetEntry(long tagId, AssetEntry assetEntry)
           
 void deleteAssetTagAssetEntry(long tagId, long entryId)
           
 void deleteEntry(AssetEntry entry)
           
 void deleteEntry(long entryId)
           
 void deleteEntry(String className, long classPK)
           
 void deleteGroupEntries(long groupId)
           
 PersistedModel deletePersistedModel(PersistedModel persistedModel)
           
 DynamicQuery dynamicQuery()
           
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery)
          Performs a dynamic query on the database and returns the matching rows.
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
          Performs a dynamic query on the database and returns a range of the matching rows.
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<T> orderByComparator)
          Performs a dynamic query on the database and returns an ordered range of the matching rows.
 long dynamicQueryCount(DynamicQuery dynamicQuery)
          Returns the number of rows matching the dynamic query.
 long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
          Returns the number of rows matching the dynamic query.
 AssetEntry fetchAssetEntry(long entryId)
           
 AssetEntry fetchEntry(long entryId)
           
 AssetEntry fetchEntry(long groupId, String classUuid)
           
 AssetEntry fetchEntry(String className, long classPK)
           
 ActionableDynamicQuery getActionableDynamicQuery()
           
 List<AssetEntry> getAncestorEntries(long entryId)
           
 List<AssetEntry> getAssetCategoryAssetEntries(long categoryId)
           
 List<AssetEntry> getAssetCategoryAssetEntries(long categoryId, int start, int end)
           
 List<AssetEntry> getAssetCategoryAssetEntries(long categoryId, int start, int end, OrderByComparator<AssetEntry> orderByComparator)
           
 int getAssetCategoryAssetEntriesCount(long categoryId)
           
 long[] getAssetCategoryPrimaryKeys(long entryId)
          Returns the categoryIds of the asset categories associated with the asset entry.
 List<AssetEntry> getAssetEntries(int start, int end)
          Returns a range of all the asset entries.
 int getAssetEntriesCount()
          Returns the number of asset entries.
 AssetEntry getAssetEntry(long entryId)
          Returns the asset entry with the primary key.
 List<AssetEntry> getAssetTagAssetEntries(long tagId)
           
 List<AssetEntry> getAssetTagAssetEntries(long tagId, int start, int end)
           
 List<AssetEntry> getAssetTagAssetEntries(long tagId, int start, int end, OrderByComparator<AssetEntry> orderByComparator)
           
 int getAssetTagAssetEntriesCount(long tagId)
           
 long[] getAssetTagPrimaryKeys(long entryId)
          Returns the tagIds of the asset tags associated with the asset entry.
 List<AssetEntry> getChildEntries(long entryId)
           
 List<AssetEntry> getCompanyEntries(long companyId, int start, int end)
           
 int getCompanyEntriesCount(long companyId)
           
 List<AssetEntry> getEntries(AssetEntryQuery entryQuery)
           
 List<AssetEntry> getEntries(long[] groupIds, long[] classNameIds, String keywords, String userName, String title, String description, Boolean listable, boolean advancedSearch, boolean andOperator, int start, int end, String orderByCol1, String orderByCol2, String orderByType1, String orderByType2)
           
 int getEntriesCount(AssetEntryQuery entryQuery)
           
 int getEntriesCount(long[] groupIds, long[] classNameIds, String keywords, String userName, String title, String description, Boolean listable, boolean advancedSearch, boolean andOperator)
           
 AssetEntry getEntry(long entryId)
           
 AssetEntry getEntry(long groupId, String classUuid)
           
 AssetEntry getEntry(String className, long classPK)
           
 List<AssetEntry> getGroupEntries(long groupId)
           
 IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
           
 AssetEntry getNextEntry(long entryId)
           
 String getOSGiServiceIdentifier()
          Returns the OSGi service identifier.
 AssetEntry getParentEntry(long entryId)
           
 PersistedModel getPersistedModel(Serializable primaryKeyObj)
           
 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)
           
 AssetEntryLocalService getWrappedService()
           
 boolean hasAssetCategoryAssetEntries(long categoryId)
           
 boolean hasAssetCategoryAssetEntry(long categoryId, long entryId)
           
 boolean hasAssetTagAssetEntries(long tagId)
           
 boolean hasAssetTagAssetEntry(long tagId, long entryId)
           
 AssetEntry incrementViewCounter(long userId, String className, long classPK)
           
 void incrementViewCounter(long userId, String className, long classPK, int increment)
           
 void reindex(List<AssetEntry> entries)
           
 Hits search(long companyId, long[] groupIds, long userId, String className, long classTypeId, String keywords, boolean showNonindexable, int[] statuses, int start, int end)
           
 Hits search(long companyId, long[] groupIds, long userId, String className, long classTypeId, String keywords, boolean showNonindexable, int status, int start, int end)
           
 Hits search(long companyId, long[] groupIds, long userId, String className, long classTypeId, String keywords, int status, int start, int end)
           
 Hits search(long companyId, long[] groupIds, long userId, String className, long classTypeId, String userName, String title, String description, String assetCategoryIds, String assetTagNames, boolean showNonindexable, int[] statuses, boolean andSearch, int start, int end)
           
 Hits search(long companyId, long[] groupIds, long userId, String className, long classTypeId, String userName, String title, String description, String assetCategoryIds, String assetTagNames, boolean showNonindexable, int status, boolean andSearch, int start, int end)
           
 Hits search(long companyId, long[] groupIds, long userId, String className, long classTypeId, String userName, String title, String description, String assetCategoryIds, String assetTagNames, int status, boolean andSearch, int start, int end)
           
 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)
 void setAssetCategoryAssetEntries(long categoryId, long[] entryIds)
           
 void setAssetTagAssetEntries(long tagId, long[] entryIds)
           
 void setWrappedService(AssetEntryLocalService assetEntryLocalService)
           
 AssetEntry updateAssetEntry(AssetEntry assetEntry)
          Updates the asset entry in the database or adds it if it does not yet exist.
 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, Double priority)
           
 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)
          Deprecated. As of 7.0.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, Double)
 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)
           
 AssetEntry updateVisible(AssetEntry entry, boolean visible)
           
 AssetEntry updateVisible(String className, long classPK, boolean visible)
           
 void validate(long groupId, String className, long[] categoryIds, String[] tagNames)
          Deprecated. As of 7.0.0, replaced by validate(long, String, long, long[], String[])
 void validate(long groupId, String className, long classTypePK, long[] categoryIds, String[] tagNames)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssetEntryLocalServiceWrapper

public AssetEntryLocalServiceWrapper(AssetEntryLocalService assetEntryLocalService)
Method Detail

addAssetCategoryAssetEntries

public void addAssetCategoryAssetEntries(long categoryId,
                                         List<AssetEntry> AssetEntries)
Specified by:
addAssetCategoryAssetEntries in interface AssetEntryLocalService

addAssetCategoryAssetEntries

public void addAssetCategoryAssetEntries(long categoryId,
                                         long[] entryIds)
Specified by:
addAssetCategoryAssetEntries in interface AssetEntryLocalService

addAssetCategoryAssetEntry

public void addAssetCategoryAssetEntry(long categoryId,
                                       AssetEntry assetEntry)
Specified by:
addAssetCategoryAssetEntry in interface AssetEntryLocalService

addAssetCategoryAssetEntry

public void addAssetCategoryAssetEntry(long categoryId,
                                       long entryId)
Specified by:
addAssetCategoryAssetEntry in interface AssetEntryLocalService

addAssetEntry

public AssetEntry addAssetEntry(AssetEntry assetEntry)
Adds the asset entry to the database. Also notifies the appropriate model listeners.

Specified by:
addAssetEntry in interface AssetEntryLocalService
Parameters:
assetEntry - the asset entry
Returns:
the asset entry that was added

addAssetTagAssetEntries

public void addAssetTagAssetEntries(long tagId,
                                    List<AssetEntry> AssetEntries)
Specified by:
addAssetTagAssetEntries in interface AssetEntryLocalService

addAssetTagAssetEntries

public void addAssetTagAssetEntries(long tagId,
                                    long[] entryIds)
Specified by:
addAssetTagAssetEntries in interface AssetEntryLocalService

addAssetTagAssetEntry

public void addAssetTagAssetEntry(long tagId,
                                  AssetEntry assetEntry)
Specified by:
addAssetTagAssetEntry in interface AssetEntryLocalService

addAssetTagAssetEntry

public void addAssetTagAssetEntry(long tagId,
                                  long entryId)
Specified by:
addAssetTagAssetEntry in interface AssetEntryLocalService

clearAssetCategoryAssetEntries

public void clearAssetCategoryAssetEntries(long categoryId)
Specified by:
clearAssetCategoryAssetEntries in interface AssetEntryLocalService

clearAssetTagAssetEntries

public void clearAssetTagAssetEntries(long tagId)
Specified by:
clearAssetTagAssetEntries in interface AssetEntryLocalService

createAssetEntry

public AssetEntry createAssetEntry(long entryId)
Creates a new asset entry with the primary key. Does not add the asset entry to the database.

Specified by:
createAssetEntry in interface AssetEntryLocalService
Parameters:
entryId - the primary key for the new asset entry
Returns:
the new asset entry

deleteAssetCategoryAssetEntries

public void deleteAssetCategoryAssetEntries(long categoryId,
                                            List<AssetEntry> AssetEntries)
Specified by:
deleteAssetCategoryAssetEntries in interface AssetEntryLocalService

deleteAssetCategoryAssetEntries

public void deleteAssetCategoryAssetEntries(long categoryId,
                                            long[] entryIds)
Specified by:
deleteAssetCategoryAssetEntries in interface AssetEntryLocalService

deleteAssetCategoryAssetEntry

public void deleteAssetCategoryAssetEntry(long categoryId,
                                          AssetEntry assetEntry)
Specified by:
deleteAssetCategoryAssetEntry in interface AssetEntryLocalService

deleteAssetCategoryAssetEntry

public void deleteAssetCategoryAssetEntry(long categoryId,
                                          long entryId)
Specified by:
deleteAssetCategoryAssetEntry in interface AssetEntryLocalService

deleteAssetEntry

public AssetEntry deleteAssetEntry(AssetEntry assetEntry)
Deletes the asset entry from the database. Also notifies the appropriate model listeners.

Specified by:
deleteAssetEntry in interface AssetEntryLocalService
Parameters:
assetEntry - the asset entry
Returns:
the asset entry that was removed

deleteAssetEntry

public AssetEntry deleteAssetEntry(long entryId)
                            throws PortalException
Deletes the asset entry with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
deleteAssetEntry in interface AssetEntryLocalService
Parameters:
entryId - the primary key of the asset entry
Returns:
the asset entry that was removed
Throws:
PortalException - if a asset entry with the primary key could not be found

deleteAssetTagAssetEntries

public void deleteAssetTagAssetEntries(long tagId,
                                       List<AssetEntry> AssetEntries)
Specified by:
deleteAssetTagAssetEntries in interface AssetEntryLocalService

deleteAssetTagAssetEntries

public void deleteAssetTagAssetEntries(long tagId,
                                       long[] entryIds)
Specified by:
deleteAssetTagAssetEntries in interface AssetEntryLocalService

deleteAssetTagAssetEntry

public void deleteAssetTagAssetEntry(long tagId,
                                     AssetEntry assetEntry)
Specified by:
deleteAssetTagAssetEntry in interface AssetEntryLocalService

deleteAssetTagAssetEntry

public void deleteAssetTagAssetEntry(long tagId,
                                     long entryId)
Specified by:
deleteAssetTagAssetEntry in interface AssetEntryLocalService

deleteEntry

public void deleteEntry(String className,
                        long classPK)
                 throws PortalException
Specified by:
deleteEntry in interface AssetEntryLocalService
Throws:
PortalException

deleteEntry

public void deleteEntry(AssetEntry entry)
                 throws PortalException
Specified by:
deleteEntry in interface AssetEntryLocalService
Throws:
PortalException

deleteEntry

public void deleteEntry(long entryId)
                 throws PortalException
Specified by:
deleteEntry in interface AssetEntryLocalService
Throws:
PortalException

deleteGroupEntries

public void deleteGroupEntries(long groupId)
                        throws PortalException
Specified by:
deleteGroupEntries in interface AssetEntryLocalService
Throws:
PortalException

deletePersistedModel

public PersistedModel deletePersistedModel(PersistedModel persistedModel)
                                    throws PortalException
Specified by:
deletePersistedModel in interface PersistedModelLocalService
Specified by:
deletePersistedModel in interface AssetEntryLocalService
Throws:
PortalException

dynamicQuery

public DynamicQuery dynamicQuery()
Specified by:
dynamicQuery in interface AssetEntryLocalService

dynamicQuery

public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.

Specified by:
dynamicQuery in interface AssetEntryLocalService
Parameters:
dynamicQuery - the dynamic query
Returns:
the matching rows

dynamicQuery

public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery,
                                int start,
                                int end)
Performs a dynamic query on the database and returns a range of the matching rows.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from com.liferay.portlet.asset.model.impl.AssetEntryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
dynamicQuery in interface AssetEntryLocalService
Parameters:
dynamicQuery - the dynamic query
start - the lower bound of the range of model instances
end - the upper bound of the range of model instances (not inclusive)
Returns:
the range of matching rows

dynamicQuery

public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery,
                                int start,
                                int end,
                                OrderByComparator<T> orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from com.liferay.portlet.asset.model.impl.AssetEntryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
dynamicQuery in interface AssetEntryLocalService
Parameters:
dynamicQuery - the dynamic query
start - the lower bound of the range of model instances
end - the upper bound of the range of model instances (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching rows

dynamicQueryCount

public long dynamicQueryCount(DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.

Specified by:
dynamicQueryCount in interface AssetEntryLocalService
Parameters:
dynamicQuery - the dynamic query
Returns:
the number of rows matching the dynamic query

dynamicQueryCount

public long dynamicQueryCount(DynamicQuery dynamicQuery,
                              Projection projection)
Returns the number of rows matching the dynamic query.

Specified by:
dynamicQueryCount in interface AssetEntryLocalService
Parameters:
dynamicQuery - the dynamic query
projection - the projection to apply to the query
Returns:
the number of rows matching the dynamic query

fetchAssetEntry

public AssetEntry fetchAssetEntry(long entryId)
Specified by:
fetchAssetEntry in interface AssetEntryLocalService

fetchEntry

public AssetEntry fetchEntry(String className,
                             long classPK)
Specified by:
fetchEntry in interface AssetEntryLocalService

fetchEntry

public AssetEntry fetchEntry(long entryId)
Specified by:
fetchEntry in interface AssetEntryLocalService

fetchEntry

public AssetEntry fetchEntry(long groupId,
                             String classUuid)
Specified by:
fetchEntry in interface AssetEntryLocalService

getActionableDynamicQuery

public ActionableDynamicQuery getActionableDynamicQuery()
Specified by:
getActionableDynamicQuery in interface AssetEntryLocalService

getAncestorEntries

public List<AssetEntry> getAncestorEntries(long entryId)
                                    throws PortalException
Specified by:
getAncestorEntries in interface AssetEntryLocalService
Throws:
PortalException

getAssetCategoryAssetEntries

public List<AssetEntry> getAssetCategoryAssetEntries(long categoryId)
Specified by:
getAssetCategoryAssetEntries in interface AssetEntryLocalService

getAssetCategoryAssetEntries

public List<AssetEntry> getAssetCategoryAssetEntries(long categoryId,
                                                     int start,
                                                     int end)
Specified by:
getAssetCategoryAssetEntries in interface AssetEntryLocalService

getAssetCategoryAssetEntries

public List<AssetEntry> getAssetCategoryAssetEntries(long categoryId,
                                                     int start,
                                                     int end,
                                                     OrderByComparator<AssetEntry> orderByComparator)
Specified by:
getAssetCategoryAssetEntries in interface AssetEntryLocalService

getAssetCategoryAssetEntriesCount

public int getAssetCategoryAssetEntriesCount(long categoryId)
Specified by:
getAssetCategoryAssetEntriesCount in interface AssetEntryLocalService

getAssetCategoryPrimaryKeys

public long[] getAssetCategoryPrimaryKeys(long entryId)
Returns the categoryIds of the asset categories associated with the asset entry.

Specified by:
getAssetCategoryPrimaryKeys in interface AssetEntryLocalService
Parameters:
entryId - the entryId of the asset entry
Returns:
long[] the categoryIds of asset categories associated with the asset entry

getAssetEntries

public List<AssetEntry> getAssetEntries(int start,
                                        int end)
Returns a range of all the asset entries.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from com.liferay.portlet.asset.model.impl.AssetEntryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
getAssetEntries in interface AssetEntryLocalService
Parameters:
start - the lower bound of the range of asset entries
end - the upper bound of the range of asset entries (not inclusive)
Returns:
the range of asset entries

getAssetEntriesCount

public int getAssetEntriesCount()
Returns the number of asset entries.

Specified by:
getAssetEntriesCount in interface AssetEntryLocalService
Returns:
the number of asset entries

getAssetEntry

public AssetEntry getAssetEntry(long entryId)
                         throws PortalException
Returns the asset entry with the primary key.

Specified by:
getAssetEntry in interface AssetEntryLocalService
Parameters:
entryId - the primary key of the asset entry
Returns:
the asset entry
Throws:
PortalException - if a asset entry with the primary key could not be found

getAssetTagAssetEntries

public List<AssetEntry> getAssetTagAssetEntries(long tagId)
Specified by:
getAssetTagAssetEntries in interface AssetEntryLocalService

getAssetTagAssetEntries

public List<AssetEntry> getAssetTagAssetEntries(long tagId,
                                                int start,
                                                int end)
Specified by:
getAssetTagAssetEntries in interface AssetEntryLocalService

getAssetTagAssetEntries

public List<AssetEntry> getAssetTagAssetEntries(long tagId,
                                                int start,
                                                int end,
                                                OrderByComparator<AssetEntry> orderByComparator)
Specified by:
getAssetTagAssetEntries in interface AssetEntryLocalService

getAssetTagAssetEntriesCount

public int getAssetTagAssetEntriesCount(long tagId)
Specified by:
getAssetTagAssetEntriesCount in interface AssetEntryLocalService

getAssetTagPrimaryKeys

public long[] getAssetTagPrimaryKeys(long entryId)
Returns the tagIds of the asset tags associated with the asset entry.

Specified by:
getAssetTagPrimaryKeys in interface AssetEntryLocalService
Parameters:
entryId - the entryId of the asset entry
Returns:
long[] the tagIds of asset tags associated with the asset entry

getChildEntries

public List<AssetEntry> getChildEntries(long entryId)
                                 throws PortalException
Specified by:
getChildEntries in interface AssetEntryLocalService
Throws:
PortalException

getCompanyEntries

public List<AssetEntry> getCompanyEntries(long companyId,
                                          int start,
                                          int end)
Specified by:
getCompanyEntries in interface AssetEntryLocalService

getCompanyEntriesCount

public int getCompanyEntriesCount(long companyId)
Specified by:
getCompanyEntriesCount in interface AssetEntryLocalService

getEntries

public List<AssetEntry> getEntries(AssetEntryQuery entryQuery)
Specified by:
getEntries in interface AssetEntryLocalService

getEntries

public List<AssetEntry> getEntries(long[] groupIds,
                                   long[] classNameIds,
                                   String keywords,
                                   String userName,
                                   String title,
                                   String description,
                                   Boolean listable,
                                   boolean advancedSearch,
                                   boolean andOperator,
                                   int start,
                                   int end,
                                   String orderByCol1,
                                   String orderByCol2,
                                   String orderByType1,
                                   String orderByType2)
Specified by:
getEntries in interface AssetEntryLocalService

getEntriesCount

public int getEntriesCount(AssetEntryQuery entryQuery)
Specified by:
getEntriesCount in interface AssetEntryLocalService

getEntriesCount

public int getEntriesCount(long[] groupIds,
                           long[] classNameIds,
                           String keywords,
                           String userName,
                           String title,
                           String description,
                           Boolean listable,
                           boolean advancedSearch,
                           boolean andOperator)
Specified by:
getEntriesCount in interface AssetEntryLocalService

getEntry

public AssetEntry getEntry(String className,
                           long classPK)
                    throws PortalException
Specified by:
getEntry in interface AssetEntryLocalService
Throws:
PortalException

getEntry

public AssetEntry getEntry(long entryId)
                    throws PortalException
Specified by:
getEntry in interface AssetEntryLocalService
Throws:
PortalException

getEntry

public AssetEntry getEntry(long groupId,
                           String classUuid)
                    throws PortalException
Specified by:
getEntry in interface AssetEntryLocalService
Throws:
PortalException

getGroupEntries

public List<AssetEntry> getGroupEntries(long groupId)
Specified by:
getGroupEntries in interface AssetEntryLocalService

getIndexableActionableDynamicQuery

public IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
Specified by:
getIndexableActionableDynamicQuery in interface AssetEntryLocalService

getNextEntry

public AssetEntry getNextEntry(long entryId)
                        throws PortalException
Specified by:
getNextEntry in interface AssetEntryLocalService
Throws:
PortalException

getOSGiServiceIdentifier

public String getOSGiServiceIdentifier()
Returns the OSGi service identifier.

Specified by:
getOSGiServiceIdentifier in interface AssetEntryLocalService
Returns:
the OSGi service identifier

getParentEntry

public AssetEntry getParentEntry(long entryId)
                          throws PortalException
Specified by:
getParentEntry in interface AssetEntryLocalService
Throws:
PortalException

getPersistedModel

public PersistedModel getPersistedModel(Serializable primaryKeyObj)
                                 throws PortalException
Specified by:
getPersistedModel in interface PersistedModelLocalService
Specified by:
getPersistedModel in interface AssetEntryLocalService
Throws:
PortalException

getPreviousEntry

public AssetEntry getPreviousEntry(long entryId)
                            throws PortalException
Specified by:
getPreviousEntry in interface AssetEntryLocalService
Throws:
PortalException

getTopViewedEntries

public List<AssetEntry> getTopViewedEntries(String[] className,
                                            boolean asc,
                                            int start,
                                            int end)
Specified by:
getTopViewedEntries in interface AssetEntryLocalService

getTopViewedEntries

public List<AssetEntry> getTopViewedEntries(String className,
                                            boolean asc,
                                            int start,
                                            int end)
Specified by:
getTopViewedEntries in interface AssetEntryLocalService

hasAssetCategoryAssetEntries

public boolean hasAssetCategoryAssetEntries(long categoryId)
Specified by:
hasAssetCategoryAssetEntries in interface AssetEntryLocalService

hasAssetCategoryAssetEntry

public boolean hasAssetCategoryAssetEntry(long categoryId,
                                          long entryId)
Specified by:
hasAssetCategoryAssetEntry in interface AssetEntryLocalService

hasAssetTagAssetEntries

public boolean hasAssetTagAssetEntries(long tagId)
Specified by:
hasAssetTagAssetEntries in interface AssetEntryLocalService

hasAssetTagAssetEntry

public boolean hasAssetTagAssetEntry(long tagId,
                                     long entryId)
Specified by:
hasAssetTagAssetEntry in interface AssetEntryLocalService

incrementViewCounter

public AssetEntry incrementViewCounter(long userId,
                                       String className,
                                       long classPK)
                                throws PortalException
Specified by:
incrementViewCounter in interface AssetEntryLocalService
Throws:
PortalException

incrementViewCounter

public void incrementViewCounter(long userId,
                                 String className,
                                 long classPK,
                                 int increment)
Specified by:
incrementViewCounter in interface AssetEntryLocalService

reindex

public void reindex(List<AssetEntry> entries)
             throws PortalException
Specified by:
reindex in interface AssetEntryLocalService
Throws:
PortalException

search

@Deprecated
public 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)

Specified by:
search in interface AssetEntryLocalService

search

public Hits search(long companyId,
                   long[] groupIds,
                   long userId,
                   String className,
                   long classTypeId,
                   String keywords,
                   boolean showNonindexable,
                   int status,
                   int start,
                   int end)
Specified by:
search in interface AssetEntryLocalService

search

public Hits search(long companyId,
                   long[] groupIds,
                   long userId,
                   String className,
                   long classTypeId,
                   String keywords,
                   boolean showNonindexable,
                   int[] statuses,
                   int start,
                   int end)
Specified by:
search in interface AssetEntryLocalService

search

public Hits search(long companyId,
                   long[] groupIds,
                   long userId,
                   String className,
                   long classTypeId,
                   String keywords,
                   int status,
                   int start,
                   int end)
Specified by:
search in interface AssetEntryLocalService

search

public Hits search(long companyId,
                   long[] groupIds,
                   long userId,
                   String className,
                   long classTypeId,
                   String userName,
                   String title,
                   String description,
                   String assetCategoryIds,
                   String assetTagNames,
                   boolean showNonindexable,
                   int status,
                   boolean andSearch,
                   int start,
                   int end)
Specified by:
search in interface AssetEntryLocalService

search

public Hits search(long companyId,
                   long[] groupIds,
                   long userId,
                   String className,
                   long classTypeId,
                   String userName,
                   String title,
                   String description,
                   String assetCategoryIds,
                   String assetTagNames,
                   boolean showNonindexable,
                   int[] statuses,
                   boolean andSearch,
                   int start,
                   int end)
Specified by:
search in interface AssetEntryLocalService

search

public Hits search(long companyId,
                   long[] groupIds,
                   long userId,
                   String className,
                   long classTypeId,
                   String userName,
                   String title,
                   String description,
                   String assetCategoryIds,
                   String assetTagNames,
                   int status,
                   boolean andSearch,
                   int start,
                   int end)
Specified by:
search in interface AssetEntryLocalService

search

@Deprecated
public 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)

Specified by:
search in interface AssetEntryLocalService

search

public Hits search(long companyId,
                   long[] groupIds,
                   long userId,
                   String className,
                   String keywords,
                   int status,
                   int start,
                   int end)
Specified by:
search in interface AssetEntryLocalService

search

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

Specified by:
search in interface AssetEntryLocalService

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)
Specified by:
search in interface AssetEntryLocalService

setAssetCategoryAssetEntries

public void setAssetCategoryAssetEntries(long categoryId,
                                         long[] entryIds)
Specified by:
setAssetCategoryAssetEntries in interface AssetEntryLocalService

setAssetTagAssetEntries

public void setAssetTagAssetEntries(long tagId,
                                    long[] entryIds)
Specified by:
setAssetTagAssetEntries in interface AssetEntryLocalService

updateAssetEntry

public AssetEntry updateAssetEntry(AssetEntry assetEntry)
Updates the asset entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Specified by:
updateAssetEntry in interface AssetEntryLocalService
Parameters:
assetEntry - the asset entry
Returns:
the asset entry that was updated

updateEntry

public AssetEntry updateEntry(String className,
                              long classPK,
                              Date publishDate,
                              Date expirationDate,
                              boolean visible)
                       throws PortalException
Specified by:
updateEntry in interface AssetEntryLocalService
Throws:
PortalException

updateEntry

public AssetEntry updateEntry(String className,
                              long classPK,
                              Date publishDate,
                              boolean visible)
                       throws PortalException
Specified by:
updateEntry in interface AssetEntryLocalService
Throws:
PortalException

updateEntry

public AssetEntry updateEntry(long userId,
                              long groupId,
                              String className,
                              long classPK,
                              long[] categoryIds,
                              String[] tagNames)
                       throws PortalException
Specified by:
updateEntry in interface AssetEntryLocalService
Throws:
PortalException

updateEntry

@Deprecated
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
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)

Specified by:
updateEntry in interface AssetEntryLocalService
Throws:
PortalException

updateEntry

@Deprecated
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
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)

Specified by:
updateEntry in interface AssetEntryLocalService
Throws:
PortalException

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,
                              Double priority)
                       throws PortalException
Specified by:
updateEntry in interface AssetEntryLocalService
Throws:
PortalException

updateEntry

@Deprecated
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
Deprecated. As of 7.0.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, Double)

Specified by:
updateEntry in interface AssetEntryLocalService
Throws:
PortalException

updateVisible

public AssetEntry updateVisible(String className,
                                long classPK,
                                boolean visible)
                         throws PortalException
Specified by:
updateVisible in interface AssetEntryLocalService
Throws:
PortalException

updateVisible

public AssetEntry updateVisible(AssetEntry entry,
                                boolean visible)
                         throws PortalException
Specified by:
updateVisible in interface AssetEntryLocalService
Throws:
PortalException

validate

@Deprecated
public void validate(long groupId,
                                String className,
                                long[] categoryIds,
                                String[] tagNames)
              throws PortalException
Deprecated. As of 7.0.0, replaced by validate(long, String, long, long[], String[])

Specified by:
validate in interface AssetEntryLocalService
Throws:
PortalException

validate

public void validate(long groupId,
                     String className,
                     long classTypePK,
                     long[] categoryIds,
                     String[] tagNames)
              throws PortalException
Specified by:
validate in interface AssetEntryLocalService
Throws:
PortalException

getWrappedService

public AssetEntryLocalService getWrappedService()
Specified by:
getWrappedService in interface ServiceWrapper<AssetEntryLocalService>

setWrappedService

public void setWrappedService(AssetEntryLocalService assetEntryLocalService)
Specified by:
setWrappedService in interface ServiceWrapper<AssetEntryLocalService>

Liferay 7.0-ce-b4