@ProviderType @Transactional(isolation=PORTAL, rollbackFor={PortalException.class,SystemException.class}) public interface DLFileRankLocalService extends BaseLocalService, PersistedModelLocalService
DLFileRankLocalServiceUtil
,
DLFileRankLocalServiceBaseImpl
,
DLFileRankLocalServiceImpl
Modifier and Type | Method and Description |
---|---|
DLFileRank |
addDLFileRank(DLFileRank dlFileRank)
Adds the document library file rank to the database.
|
DLFileRank |
addFileRank(long groupId,
long companyId,
long userId,
long fileEntryId,
ServiceContext serviceContext) |
void |
checkFileRanks() |
DLFileRank |
createDLFileRank(long fileRankId)
Creates a new document library file rank with the primary key.
|
DLFileRank |
deleteDLFileRank(DLFileRank dlFileRank)
Deletes the document library file rank from the database.
|
DLFileRank |
deleteDLFileRank(long fileRankId)
Deletes the document library file rank with the primary key from the database.
|
void |
deleteFileRank(DLFileRank dlFileRank) |
void |
deleteFileRank(long fileRankId) |
void |
deleteFileRanksByFileEntryId(long fileEntryId) |
void |
deleteFileRanksByUserId(long userId) |
PersistedModel |
deletePersistedModel(PersistedModel persistedModel) |
void |
disableFileRanks(long fileEntryId) |
void |
disableFileRanksByFolderId(long folderId) |
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.
|
void |
enableFileRanks(long fileEntryId) |
void |
enableFileRanksByFolderId(long folderId) |
DLFileRank |
fetchDLFileRank(long fileRankId) |
ActionableDynamicQuery |
getActionableDynamicQuery() |
DLFileRank |
getDLFileRank(long fileRankId)
Returns the document library file rank with the primary key.
|
List<DLFileRank> |
getDLFileRanks(int start,
int end)
Returns a range of all the document library file ranks.
|
int |
getDLFileRanksCount()
Returns the number of document library file ranks.
|
List<DLFileRank> |
getFileRanks(long groupId,
long userId) |
IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
PersistedModel |
getPersistedModel(Serializable primaryKeyObj) |
DLFileRank |
updateDLFileRank(DLFileRank dlFileRank)
Updates the document library file rank in the database or adds it if it does not yet exist.
|
DLFileRank |
updateFileRank(long groupId,
long companyId,
long userId,
long fileEntryId,
ServiceContext serviceContext) |
@Indexable(type=REINDEX) DLFileRank addDLFileRank(DLFileRank dlFileRank)
dlFileRank
- the document library file rankDLFileRank addFileRank(long groupId, long companyId, long userId, long fileEntryId, ServiceContext serviceContext)
void checkFileRanks()
@Transactional(enabled=false) DLFileRank createDLFileRank(long fileRankId)
fileRankId
- the primary key for the new document library file rank@Indexable(type=DELETE) DLFileRank deleteDLFileRank(DLFileRank dlFileRank)
dlFileRank
- the document library file rank@Indexable(type=DELETE) DLFileRank deleteDLFileRank(long fileRankId) throws PortalException
fileRankId
- the primary key of the document library file rankPortalException
- if a document library file rank with the primary key could not be found@SystemEvent(type=1) void deleteFileRank(DLFileRank dlFileRank)
void deleteFileRank(long fileRankId) throws PortalException
PortalException
void deleteFileRanksByFileEntryId(long fileEntryId)
void deleteFileRanksByUserId(long userId)
PersistedModel deletePersistedModel(PersistedModel persistedModel) throws PortalException
deletePersistedModel
in interface PersistedModelLocalService
PortalException
void disableFileRanks(long fileEntryId)
void disableFileRanksByFolderId(long folderId) throws PortalException
PortalException
DynamicQuery dynamicQuery()
<T> List<T> dynamicQuery(DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic query<T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
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 DLFileRankModelImpl
. 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
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)<T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<T> orderByComparator)
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 DLFileRankModelImpl
. 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
- 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
)long dynamicQueryCount(DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic querylong dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the queryvoid enableFileRanks(long fileEntryId)
void enableFileRanksByFolderId(long folderId) throws PortalException
PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) DLFileRank fetchDLFileRank(long fileRankId)
@Transactional(propagation=SUPPORTS, readOnly=true) ActionableDynamicQuery getActionableDynamicQuery()
@Transactional(propagation=SUPPORTS, readOnly=true) DLFileRank getDLFileRank(long fileRankId) throws PortalException
fileRankId
- the primary key of the document library file rankPortalException
- if a document library file rank with the primary key could not be found@Transactional(propagation=SUPPORTS, readOnly=true) List<DLFileRank> getDLFileRanks(int start, int end)
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 DLFileRankModelImpl
. 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.
start
- the lower bound of the range of document library file ranksend
- the upper bound of the range of document library file ranks (not inclusive)@Transactional(propagation=SUPPORTS, readOnly=true) int getDLFileRanksCount()
@Transactional(propagation=SUPPORTS, readOnly=true) List<DLFileRank> getFileRanks(long groupId, long userId)
@Transactional(propagation=SUPPORTS, readOnly=true) IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
String getOSGiServiceIdentifier()
@Transactional(propagation=SUPPORTS, readOnly=true) PersistedModel getPersistedModel(Serializable primaryKeyObj) throws PortalException
getPersistedModel
in interface PersistedModelLocalService
PortalException
@Indexable(type=REINDEX) DLFileRank updateDLFileRank(DLFileRank dlFileRank)
dlFileRank
- the document library file rankDLFileRank updateFileRank(long groupId, long companyId, long userId, long fileEntryId, ServiceContext serviceContext)