|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portlet.trash.service.TrashEntryLocalServiceWrapper
@ProviderType public class TrashEntryLocalServiceWrapper
Provides a wrapper for TrashEntryLocalService
.
TrashEntryLocalService
Constructor Summary | |
---|---|
TrashEntryLocalServiceWrapper(TrashEntryLocalService trashEntryLocalService)
|
Method Summary | |
---|---|
TrashEntry |
addTrashEntry(long userId,
long groupId,
String className,
long classPK,
String classUuid,
String referrerClassName,
int status,
List<ObjectValuePair<Long,Integer>> statusOVPs,
UnicodeProperties typeSettingsProperties)
Moves an entry to trash. |
TrashEntry |
addTrashEntry(TrashEntry trashEntry)
Adds the trash entry to the database. |
void |
checkEntries()
|
TrashEntry |
createTrashEntry(long entryId)
Creates a new trash entry with the primary key. |
void |
deleteEntries(long groupId)
|
TrashEntry |
deleteEntry(long entryId)
Deletes the trash entry with the primary key. |
TrashEntry |
deleteEntry(String className,
long classPK)
Deletes the trash entry with the entity class name and primary key. |
TrashEntry |
deleteEntry(TrashEntry trashEntry)
|
TrashEntry |
deleteTrashEntry(long entryId)
Deletes the trash entry with the primary key from the database. |
TrashEntry |
deleteTrashEntry(TrashEntry trashEntry)
Deletes the trash entry from the database. |
DynamicQuery |
dynamicQuery()
|
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. |
long |
dynamicQueryCount(DynamicQuery dynamicQuery,
Projection projection)
Returns the number of rows that match the dynamic query. |
TrashEntry |
fetchEntry(long entryId)
Returns the trash entry with the primary key. |
TrashEntry |
fetchEntry(String className,
long classPK)
Returns the trash entry with the entity class name and primary key. |
TrashEntry |
fetchTrashEntry(long entryId)
|
String |
getBeanIdentifier()
Returns the Spring bean ID for this bean. |
List<TrashEntry> |
getEntries(long groupId)
Returns the trash entries with the matching group ID. |
List<TrashEntry> |
getEntries(long groupId,
int start,
int end)
Returns a range of all the trash entries matching the group ID. |
List<TrashEntry> |
getEntries(long groupId,
int start,
int end,
OrderByComparator obc)
Returns a range of all the trash entries matching the group ID. |
List<TrashEntry> |
getEntries(long groupId,
String className)
|
int |
getEntriesCount(long groupId)
Returns the number of trash entries with the group ID. |
TrashEntry |
getEntry(long entryId)
Returns the trash entry with the primary key. |
TrashEntry |
getEntry(String className,
long classPK)
Returns the entry with the entity class name and primary key. |
PersistedModel |
getPersistedModel(Serializable primaryKeyObj)
|
List<TrashEntry> |
getTrashEntries(int start,
int end)
Returns a range of all the trash entries. |
int |
getTrashEntriesCount()
Returns the number of trash entries. |
TrashEntry |
getTrashEntry(long entryId)
Returns the trash entry with the primary key. |
TrashEntryLocalService |
getWrappedService()
|
TrashEntryLocalService |
getWrappedTrashEntryLocalService()
Deprecated. As of 6.1.0, replaced by getWrappedService() |
Hits |
search(long companyId,
long groupId,
long userId,
String keywords,
int start,
int end,
Sort sort)
|
void |
setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean. |
void |
setWrappedService(TrashEntryLocalService trashEntryLocalService)
|
void |
setWrappedTrashEntryLocalService(TrashEntryLocalService trashEntryLocalService)
Deprecated. As of 6.1.0, replaced by setWrappedService(com.liferay.portlet.trash.service.TrashEntryLocalService) |
TrashEntry |
updateTrashEntry(TrashEntry trashEntry)
Updates the trash entry in the database or adds it if it does not yet exist. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TrashEntryLocalServiceWrapper(TrashEntryLocalService trashEntryLocalService)
Method Detail |
---|
public TrashEntry addTrashEntry(TrashEntry trashEntry) throws SystemException
addTrashEntry
in interface TrashEntryLocalService
trashEntry
- the trash entry
SystemException
- if a system exception occurredpublic TrashEntry createTrashEntry(long entryId)
createTrashEntry
in interface TrashEntryLocalService
entryId
- the primary key for the new trash entry
public TrashEntry deleteTrashEntry(long entryId) throws PortalException, SystemException
deleteTrashEntry
in interface TrashEntryLocalService
entryId
- the primary key of the trash entry
PortalException
- if a trash entry with the primary key could not be found
SystemException
- if a system exception occurredpublic TrashEntry deleteTrashEntry(TrashEntry trashEntry) throws SystemException
deleteTrashEntry
in interface TrashEntryLocalService
trashEntry
- the trash entry
SystemException
- if a system exception occurredpublic DynamicQuery dynamicQuery()
dynamicQuery
in interface TrashEntryLocalService
public List dynamicQuery(DynamicQuery dynamicQuery) throws SystemException
dynamicQuery
in interface TrashEntryLocalService
dynamicQuery
- the dynamic query
SystemException
- if a system exception occurredpublic List dynamicQuery(DynamicQuery dynamicQuery, int start, int end) throws SystemException
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 TrashEntryModelImpl
. 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.
dynamicQuery
in interface TrashEntryLocalService
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)
SystemException
- if a system exception occurredpublic List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) throws SystemException
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 TrashEntryModelImpl
. 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.
dynamicQuery
in interface TrashEntryLocalService
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic long dynamicQueryCount(DynamicQuery dynamicQuery) throws SystemException
dynamicQueryCount
in interface TrashEntryLocalService
dynamicQuery
- the dynamic query
SystemException
- if a system exception occurredpublic long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection) throws SystemException
dynamicQueryCount
in interface TrashEntryLocalService
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the query
SystemException
- if a system exception occurredpublic TrashEntry fetchTrashEntry(long entryId) throws SystemException
fetchTrashEntry
in interface TrashEntryLocalService
SystemException
public TrashEntry getTrashEntry(long entryId) throws PortalException, SystemException
getTrashEntry
in interface TrashEntryLocalService
entryId
- the primary key of the trash entry
PortalException
- if a trash entry with the primary key could not be found
SystemException
- if a system exception occurredpublic PersistedModel getPersistedModel(Serializable primaryKeyObj) throws PortalException, SystemException
getPersistedModel
in interface PersistedModelLocalService
getPersistedModel
in interface TrashEntryLocalService
PortalException
SystemException
public List<TrashEntry> getTrashEntries(int start, int end) throws SystemException
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 TrashEntryModelImpl
. 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.
getTrashEntries
in interface TrashEntryLocalService
start
- the lower bound of the range of trash entriesend
- the upper bound of the range of trash entries (not inclusive)
SystemException
- if a system exception occurredpublic int getTrashEntriesCount() throws SystemException
getTrashEntriesCount
in interface TrashEntryLocalService
SystemException
- if a system exception occurredpublic TrashEntry updateTrashEntry(TrashEntry trashEntry) throws SystemException
updateTrashEntry
in interface TrashEntryLocalService
trashEntry
- the trash entry
SystemException
- if a system exception occurredpublic String getBeanIdentifier()
getBeanIdentifier
in interface TrashEntryLocalService
public void setBeanIdentifier(String beanIdentifier)
setBeanIdentifier
in interface TrashEntryLocalService
beanIdentifier
- the Spring bean ID for this beanpublic TrashEntry addTrashEntry(long userId, long groupId, String className, long classPK, String classUuid, String referrerClassName, int status, List<ObjectValuePair<Long,Integer>> statusOVPs, UnicodeProperties typeSettingsProperties) throws PortalException, SystemException
addTrashEntry
in interface TrashEntryLocalService
userId
- the primary key of the user removing the entitygroupId
- the primary key of the entry's groupclassName
- the class name of the entityclassPK
- the primary key of the entitystatus
- the status of the entity prior to being moved to trashstatusOVPs
- the primary keys and statuses of any of the entry's
versions (e.g., DLFileVersion
)typeSettingsProperties
- the type settings properties
PortalException
- if a user with the primary key could not be found
SystemException
- if a system exception occurredpublic void checkEntries() throws PortalException, SystemException
checkEntries
in interface TrashEntryLocalService
PortalException
SystemException
public void deleteEntries(long groupId) throws SystemException
deleteEntries
in interface TrashEntryLocalService
SystemException
public TrashEntry deleteEntry(long entryId) throws PortalException, SystemException
deleteEntry
in interface TrashEntryLocalService
entryId
- the primary key of the trash entry
PortalException
- if a trash entry with the primary key could not
be found
SystemException
- if a system exception occurredpublic TrashEntry deleteEntry(String className, long classPK) throws PortalException, SystemException
deleteEntry
in interface TrashEntryLocalService
className
- the class name of entityclassPK
- the primary key of the entry
PortalException
- if a trash entry with the primary key could not
be found
SystemException
- if a system exception occurredpublic TrashEntry deleteEntry(TrashEntry trashEntry) throws SystemException
deleteEntry
in interface TrashEntryLocalService
SystemException
public TrashEntry fetchEntry(long entryId) throws SystemException
fetchEntry
in interface TrashEntryLocalService
entryId
- the primary key of the entry
SystemException
- if a system exception occurredpublic TrashEntry fetchEntry(String className, long classPK) throws SystemException
fetchEntry
in interface TrashEntryLocalService
className
- the class name of the entityclassPK
- the primary key of the entity
SystemException
- if a system exception occurredpublic List<TrashEntry> getEntries(long groupId) throws SystemException
getEntries
in interface TrashEntryLocalService
groupId
- the primary key of the group
SystemException
- if a system exception occurredpublic List<TrashEntry> getEntries(long groupId, int start, int end) throws SystemException
getEntries
in interface TrashEntryLocalService
groupId
- the primary key of the groupstart
- the lower bound of the range of trash entries to returnend
- the upper bound of the range of trash entries to return (not
inclusive)
SystemException
- if a system exception occurredpublic List<TrashEntry> getEntries(long groupId, int start, int end, OrderByComparator obc) throws SystemException
getEntries
in interface TrashEntryLocalService
groupId
- the primary key of the groupstart
- the lower bound of the range of trash entries to returnend
- the upper bound of the range of trash entries to return (not
inclusive)obc
- the comparator to order the trash entries (optionally
null
)
obc
SystemException
- if a system exception occurredpublic List<TrashEntry> getEntries(long groupId, String className) throws SystemException
getEntries
in interface TrashEntryLocalService
SystemException
public int getEntriesCount(long groupId) throws SystemException
getEntriesCount
in interface TrashEntryLocalService
groupId
- the primary key of the group
SystemException
- if a system exception occurredpublic TrashEntry getEntry(long entryId) throws PortalException, SystemException
getEntry
in interface TrashEntryLocalService
entryId
- the primary key of the trash entry
PortalException
- if a trash entry with the primary key could not
be found
SystemException
- if a system exception occurredpublic TrashEntry getEntry(String className, long classPK) throws PortalException, SystemException
getEntry
in interface TrashEntryLocalService
className
- the class name of the entityclassPK
- the primary key of the entity
PortalException
- if a trash entry with the primary key could not
be found
SystemException
- if a system exception occurredpublic Hits search(long companyId, long groupId, long userId, String keywords, int start, int end, Sort sort) throws SystemException
search
in interface TrashEntryLocalService
SystemException
public TrashEntryLocalService getWrappedTrashEntryLocalService()
getWrappedService()
public void setWrappedTrashEntryLocalService(TrashEntryLocalService trashEntryLocalService)
setWrappedService(com.liferay.portlet.trash.service.TrashEntryLocalService)
public TrashEntryLocalService getWrappedService()
getWrappedService
in interface ServiceWrapper<TrashEntryLocalService>
public void setWrappedService(TrashEntryLocalService trashEntryLocalService)
setWrappedService
in interface ServiceWrapper<TrashEntryLocalService>
|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |