Liferay 6.1.10-ee-ga1

com.liferay.portlet.asset.service
Class AssetEntryLocalServiceWrapper

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

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

This class is a wrapper for AssetEntryLocalService.

See Also:
AssetEntryLocalService

Constructor Summary
AssetEntryLocalServiceWrapper(AssetEntryLocalService assetEntryLocalService)
           
 
Method Summary
 AssetEntry addAssetEntry(AssetEntry assetEntry)
          Adds the asset entry to the database.
 AssetEntry createAssetEntry(long entryId)
          Creates a new asset entry with the primary key.
 void deleteAssetEntry(AssetEntry assetEntry)
          Deletes the asset entry from the database.
 void deleteAssetEntry(long entryId)
          Deletes the asset entry with the primary key from the database.
 void deleteEntry(AssetEntry entry)
           
 void deleteEntry(long entryId)
           
 void deleteEntry(String className, long classPK)
           
 List dynamicQuery(DynamicQuery dynamicQuery)
          Performs a dynamic query on the database and returns the matching rows.
 List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
          Performs a dynamic query on the database and returns a range of the matching rows.
 List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator 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 that match the dynamic query.
 AssetEntry fetchAssetEntry(long entryId)
           
 AssetEntry fetchEntry(long entryId)
           
 AssetEntry fetchEntry(String className, long classPK)
           
 List<AssetEntry> getAncestorEntries(long entryId)
           
 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.
 String getBeanIdentifier()
          Returns the Spring bean ID for this bean.
 List<AssetEntry> getChildEntries(long entryId)
           
 List<AssetEntry> getCompanyEntries(long companyId, int start, int end)
           
 int getCompanyEntriesCount(long companyId)
           
 AssetEntryDisplay[] getCompanyEntryDisplays(long companyId, int start, int end, String languageId)
           
 List<AssetEntry> getEntries(AssetEntryQuery entryQuery)
           
 int getEntriesCount(AssetEntryQuery entryQuery)
           
 AssetEntry getEntry(long entryId)
           
 AssetEntry getEntry(long groupId, String classUuid)
           
 AssetEntry getEntry(String className, long classPK)
           
 AssetEntry getNextEntry(long entryId)
           
 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 getWrappedAssetEntryLocalService()
          Deprecated. Renamed to getWrappedService()
 AssetEntryLocalService getWrappedService()
           
 AssetEntry incrementViewCounter(long userId, String className, long classPK, int increment)
           
 void reindex(List<AssetEntry> entries)
           
 Hits search(long companyId, long[] groupIds, long userId, String className, String keywords, 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)
           
 Hits search(long companyId, long[] groupIds, String className, String keywords, int start, int end)
           
 AssetEntryDisplay[] searchEntryDisplays(long companyId, long[] groupIds, String className, String keywords, String languageId, int start, int end)
           
 int searchEntryDisplaysCount(long companyId, long[] groupIds, String className, String keywords, String languageId)
           
 void setBeanIdentifier(String beanIdentifier)
          Sets the Spring bean ID for this bean.
 void setWrappedAssetEntryLocalService(AssetEntryLocalService assetEntryLocalService)
          Deprecated. Renamed to setWrappedService(com.liferay.portlet.asset.service.AssetEntryLocalService)
 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 updateAssetEntry(AssetEntry assetEntry, boolean merge)
          Updates the asset entry in the database or adds it if it does not yet exist.
 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)
           
 AssetEntry updateVisible(String className, long classPK, boolean visible)
           
 void validate(long groupId, String className, 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

addAssetEntry

public AssetEntry addAssetEntry(AssetEntry assetEntry)
                         throws SystemException
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
Throws:
SystemException - if a system exception occurred

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

deleteAssetEntry

public void deleteAssetEntry(long entryId)
                      throws PortalException,
                             SystemException
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
Throws:
PortalException - if a asset entry with the primary key could not be found
SystemException - if a system exception occurred

deleteAssetEntry

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

Specified by:
deleteAssetEntry in interface AssetEntryLocalService
Parameters:
assetEntry - the asset entry
Throws:
SystemException - if a system exception occurred

dynamicQuery

public List dynamicQuery(DynamicQuery dynamicQuery)
                  throws SystemException
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
Throws:
SystemException - if a system exception occurred

dynamicQuery

public List dynamicQuery(DynamicQuery dynamicQuery,
                         int start,
                         int end)
                  throws SystemException
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.

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
Throws:
SystemException - if a system exception occurred

dynamicQuery

public List dynamicQuery(DynamicQuery dynamicQuery,
                         int start,
                         int end,
                         OrderByComparator orderByComparator)
                  throws SystemException
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.

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
Throws:
SystemException - if a system exception occurred

dynamicQueryCount

public long dynamicQueryCount(DynamicQuery dynamicQuery)
                       throws SystemException
Returns the number of rows that match the dynamic query.

Specified by:
dynamicQueryCount in interface AssetEntryLocalService
Parameters:
dynamicQuery - the dynamic query
Returns:
the number of rows that match the dynamic query
Throws:
SystemException - if a system exception occurred

fetchAssetEntry

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

getAssetEntry

public AssetEntry getAssetEntry(long entryId)
                         throws PortalException,
                                SystemException
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
SystemException - if a system exception occurred

getPersistedModel

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

getAssetEntries

public List<AssetEntry> getAssetEntries(int start,
                                        int end)
                                 throws SystemException
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.

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
Throws:
SystemException - if a system exception occurred

getAssetEntriesCount

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

Specified by:
getAssetEntriesCount in interface AssetEntryLocalService
Returns:
the number of asset entries
Throws:
SystemException - if a system exception occurred

updateAssetEntry

public AssetEntry updateAssetEntry(AssetEntry assetEntry)
                            throws SystemException
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
Throws:
SystemException - if a system exception occurred

updateAssetEntry

public AssetEntry updateAssetEntry(AssetEntry assetEntry,
                                   boolean merge)
                            throws SystemException
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
merge - whether to merge the asset entry with the current session. See BatchSession.update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean) for an explanation.
Returns:
the asset entry that was updated
Throws:
SystemException - if a system exception occurred

getBeanIdentifier

public String getBeanIdentifier()
Returns the Spring bean ID for this bean.

Specified by:
getBeanIdentifier in interface AssetEntryLocalService
Returns:
the Spring bean ID for this bean

setBeanIdentifier

public void setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean.

Specified by:
setBeanIdentifier in interface AssetEntryLocalService
Parameters:
beanIdentifier - the Spring bean ID for this bean

deleteEntry

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

deleteEntry

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

deleteEntry

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

fetchEntry

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

fetchEntry

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

getAncestorEntries

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

getChildEntries

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

getCompanyEntries

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

getCompanyEntriesCount

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

getCompanyEntryDisplays

public AssetEntryDisplay[] getCompanyEntryDisplays(long companyId,
                                                   int start,
                                                   int end,
                                                   String languageId)
                                            throws SystemException
Specified by:
getCompanyEntryDisplays in interface AssetEntryLocalService
Throws:
SystemException

getEntries

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

getEntriesCount

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

getEntry

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

getEntry

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

getEntry

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

getNextEntry

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

getParentEntry

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

getPreviousEntry

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

getTopViewedEntries

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

getTopViewedEntries

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

incrementViewCounter

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

reindex

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

search

public Hits search(long companyId,
                   long[] groupIds,
                   long userId,
                   String className,
                   String keywords,
                   int start,
                   int end)
            throws SystemException
Specified by:
search in interface AssetEntryLocalService
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
Specified by:
search in interface AssetEntryLocalService
Throws:
SystemException

search

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

searchEntryDisplays

public AssetEntryDisplay[] searchEntryDisplays(long companyId,
                                               long[] groupIds,
                                               String className,
                                               String keywords,
                                               String languageId,
                                               int start,
                                               int end)
                                        throws SystemException
Specified by:
searchEntryDisplays in interface AssetEntryLocalService
Throws:
SystemException

searchEntryDisplaysCount

public int searchEntryDisplaysCount(long companyId,
                                    long[] groupIds,
                                    String className,
                                    String keywords,
                                    String languageId)
                             throws SystemException
Specified by:
searchEntryDisplaysCount in interface AssetEntryLocalService
Throws:
SystemException

updateEntry

public AssetEntry updateEntry(long userId,
                              long groupId,
                              String className,
                              long classPK,
                              long[] categoryIds,
                              String[] tagNames)
                       throws PortalException,
                              SystemException
Specified by:
updateEntry in interface AssetEntryLocalService
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
Specified by:
updateEntry in interface AssetEntryLocalService
Throws:
PortalException
SystemException

updateVisible

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

validate

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

getWrappedAssetEntryLocalService

public AssetEntryLocalService getWrappedAssetEntryLocalService()
Deprecated. Renamed to getWrappedService()


setWrappedAssetEntryLocalService

public void setWrappedAssetEntryLocalService(AssetEntryLocalService assetEntryLocalService)
Deprecated. Renamed to setWrappedService(com.liferay.portlet.asset.service.AssetEntryLocalService)


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 6.1.10-ee-ga1