@CTAware @ProviderType @Transactional(isolation=PORTAL, rollbackFor={PortalException.class,SystemException.class}) public interface DLFileShortcutLocalService extends BaseLocalService, CTService<DLFileShortcut>, PersistedModelLocalService
DLFileShortcutLocalServiceUtil
Modifier and Type | Method and Description |
---|---|
DLFileShortcut |
addDLFileShortcut(DLFileShortcut dlFileShortcut)
Adds the document library file shortcut to the database.
|
DLFileShortcut |
addFileShortcut(long userId,
long groupId,
long repositoryId,
long folderId,
long toFileEntryId,
ServiceContext serviceContext) |
void |
addFileShortcutResources(DLFileShortcut fileShortcut,
boolean addGroupPermissions,
boolean addGuestPermissions) |
void |
addFileShortcutResources(DLFileShortcut fileShortcut,
ModelPermissions modelPermissions) |
void |
addFileShortcutResources(long fileShortcutId,
boolean addGroupPermissions,
boolean addGuestPermissions) |
void |
addFileShortcutResources(long fileShortcutId,
ModelPermissions modelPermissions) |
DLFileShortcut |
createDLFileShortcut(long fileShortcutId)
Creates a new document library file shortcut with the primary key.
|
PersistedModel |
createPersistedModel(Serializable primaryKeyObj) |
DLFileShortcut |
deleteDLFileShortcut(DLFileShortcut dlFileShortcut)
Deletes the document library file shortcut from the database.
|
DLFileShortcut |
deleteDLFileShortcut(long fileShortcutId)
Deletes the document library file shortcut with the primary key from the database.
|
void |
deleteFileShortcut(DLFileShortcut fileShortcut) |
void |
deleteFileShortcut(long fileShortcutId) |
void |
deleteFileShortcuts(long toFileEntryId) |
void |
deleteFileShortcuts(long groupId,
long folderId) |
void |
deleteFileShortcuts(long groupId,
long folderId,
boolean includeTrashedEntries) |
PersistedModel |
deletePersistedModel(PersistedModel persistedModel) |
void |
deleteRepositoryFileShortcuts(long repositoryId) |
void |
disableFileShortcuts(long toFileEntryId) |
<T> T |
dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) |
int |
dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) |
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 |
enableFileShortcuts(long toFileEntryId) |
DLFileShortcut |
fetchDLFileShortcut(long fileShortcutId) |
DLFileShortcut |
fetchDLFileShortcutByUuidAndGroupId(String uuid,
long groupId)
Returns the document library file shortcut matching the UUID and group.
|
ActionableDynamicQuery |
getActionableDynamicQuery() |
CTPersistence<DLFileShortcut> |
getCTPersistence() |
DLFileShortcut |
getDLFileShortcut(long fileShortcutId)
Returns the document library file shortcut with the primary key.
|
DLFileShortcut |
getDLFileShortcutByUuidAndGroupId(String uuid,
long groupId)
Returns the document library file shortcut matching the UUID and group.
|
List<DLFileShortcut> |
getDLFileShortcuts(int start,
int end)
Returns a range of all the document library file shortcuts.
|
List<DLFileShortcut> |
getDLFileShortcutsByUuidAndCompanyId(String uuid,
long companyId)
Returns all the document library file shortcuts matching the UUID and company.
|
List<DLFileShortcut> |
getDLFileShortcutsByUuidAndCompanyId(String uuid,
long companyId,
int start,
int end,
OrderByComparator<DLFileShortcut> orderByComparator)
Returns a range of document library file shortcuts matching the UUID and company.
|
int |
getDLFileShortcutsCount()
Returns the number of document library file shortcuts.
|
ExportActionableDynamicQuery |
getExportActionableDynamicQuery(PortletDataContext portletDataContext) |
DLFileShortcut |
getFileShortcut(long fileShortcutId) |
List<DLFileShortcut> |
getFileShortcuts(long toFileEntryId) |
List<DLFileShortcut> |
getFileShortcuts(long groupId,
long folderId,
boolean active,
int status,
int start,
int end) |
int |
getFileShortcutsCount(long groupId,
long folderId,
boolean active,
int status) |
IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
Class<DLFileShortcut> |
getModelClass() |
String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
PersistedModel |
getPersistedModel(Serializable primaryKeyObj) |
void |
rebuildTree(long companyId) |
void |
setTreePaths(long folderId,
String treePath) |
void |
updateAsset(long userId,
DLFileShortcut fileShortcut,
long[] assetCategoryIds,
String[] assetTagNames) |
DLFileShortcut |
updateDLFileShortcut(DLFileShortcut dlFileShortcut)
Updates the document library file shortcut in the database or adds it if it does not yet exist.
|
DLFileShortcut |
updateFileShortcut(long userId,
long fileShortcutId,
long repositoryId,
long folderId,
long toFileEntryId,
ServiceContext serviceContext) |
void |
updateFileShortcuts(long oldToFileEntryId,
long newToFileEntryId) |
void |
updateFileShortcutsActive(long toFileEntryId,
boolean active) |
DLFileShortcut |
updateStatus(long userId,
long fileShortcutId,
int status,
ServiceContext serviceContext) |
<R,E extends Throwable> |
updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<CTPersistence<DLFileShortcut>,R,E> updateUnsafeFunction) |
getBasePersistence
@Indexable(type=REINDEX) DLFileShortcut addDLFileShortcut(DLFileShortcut dlFileShortcut)
Important: Inspect DLFileShortcutLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
dlFileShortcut
- the document library file shortcutDLFileShortcut addFileShortcut(long userId, long groupId, long repositoryId, long folderId, long toFileEntryId, ServiceContext serviceContext) throws PortalException
PortalException
void addFileShortcutResources(DLFileShortcut fileShortcut, boolean addGroupPermissions, boolean addGuestPermissions) throws PortalException
PortalException
void addFileShortcutResources(DLFileShortcut fileShortcut, ModelPermissions modelPermissions) throws PortalException
PortalException
void addFileShortcutResources(long fileShortcutId, boolean addGroupPermissions, boolean addGuestPermissions) throws PortalException
PortalException
void addFileShortcutResources(long fileShortcutId, ModelPermissions modelPermissions) throws PortalException
PortalException
@Transactional(enabled=false) DLFileShortcut createDLFileShortcut(long fileShortcutId)
fileShortcutId
- the primary key for the new document library file shortcutPersistedModel createPersistedModel(Serializable primaryKeyObj) throws PortalException
createPersistedModel
in interface PersistedModelLocalService
PortalException
@Indexable(type=DELETE) DLFileShortcut deleteDLFileShortcut(DLFileShortcut dlFileShortcut)
Important: Inspect DLFileShortcutLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
dlFileShortcut
- the document library file shortcut@Indexable(type=DELETE) DLFileShortcut deleteDLFileShortcut(long fileShortcutId) throws PortalException
Important: Inspect DLFileShortcutLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
fileShortcutId
- the primary key of the document library file shortcutPortalException
- if a document library file shortcut with the primary key could not be found@SystemEvent(type=1) void deleteFileShortcut(DLFileShortcut fileShortcut) throws PortalException
PortalException
void deleteFileShortcut(long fileShortcutId) throws PortalException
PortalException
void deleteFileShortcuts(long toFileEntryId) throws PortalException
PortalException
void deleteFileShortcuts(long groupId, long folderId) throws PortalException
PortalException
void deleteFileShortcuts(long groupId, long folderId, boolean includeTrashedEntries) throws PortalException
PortalException
PersistedModel deletePersistedModel(PersistedModel persistedModel) throws PortalException
deletePersistedModel
in interface PersistedModelLocalService
PortalException
void deleteRepositoryFileShortcuts(long repositoryId) throws PortalException
PortalException
void disableFileShortcuts(long toFileEntryId)
@Transactional(propagation=SUPPORTS, readOnly=true) <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQuery
in interface PersistedModelLocalService
@Transactional(propagation=SUPPORTS, readOnly=true) int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQueryCount
in interface PersistedModelLocalService
@Transactional(propagation=SUPPORTS, readOnly=true) DynamicQuery dynamicQuery()
@Transactional(propagation=SUPPORTS, readOnly=true) <T> List<T> dynamicQuery(DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic query@Transactional(propagation=SUPPORTS, readOnly=true) <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 com.liferay.portal.kernel.dao.orm.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, then the query will include the default ORDER BY logic from com.liferay.portlet.documentlibrary.model.impl.DLFileShortcutModelImpl
.
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)@Transactional(propagation=SUPPORTS, readOnly=true) <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 com.liferay.portal.kernel.dao.orm.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, then the query will include the default ORDER BY logic from com.liferay.portlet.documentlibrary.model.impl.DLFileShortcutModelImpl
.
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
)@Transactional(propagation=SUPPORTS, readOnly=true) long dynamicQueryCount(DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic query@Transactional(propagation=SUPPORTS, readOnly=true) long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the queryvoid enableFileShortcuts(long toFileEntryId)
@Transactional(propagation=SUPPORTS, readOnly=true) DLFileShortcut fetchDLFileShortcut(long fileShortcutId)
@Transactional(propagation=SUPPORTS, readOnly=true) DLFileShortcut fetchDLFileShortcutByUuidAndGroupId(String uuid, long groupId)
uuid
- the document library file shortcut's UUIDgroupId
- the primary key of the groupnull
if a matching document library file shortcut could not be found@Transactional(propagation=SUPPORTS, readOnly=true) ActionableDynamicQuery getActionableDynamicQuery()
@Transactional(propagation=SUPPORTS, readOnly=true) DLFileShortcut getDLFileShortcut(long fileShortcutId) throws PortalException
fileShortcutId
- the primary key of the document library file shortcutPortalException
- if a document library file shortcut with the primary key could not be found@Transactional(propagation=SUPPORTS, readOnly=true) DLFileShortcut getDLFileShortcutByUuidAndGroupId(String uuid, long groupId) throws PortalException
uuid
- the document library file shortcut's UUIDgroupId
- the primary key of the groupPortalException
- if a matching document library file shortcut could not be found@Transactional(propagation=SUPPORTS, readOnly=true) List<DLFileShortcut> getDLFileShortcuts(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 com.liferay.portal.kernel.dao.orm.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, then the query will include the default ORDER BY logic from com.liferay.portlet.documentlibrary.model.impl.DLFileShortcutModelImpl
.
start
- the lower bound of the range of document library file shortcutsend
- the upper bound of the range of document library file shortcuts (not inclusive)@Transactional(propagation=SUPPORTS, readOnly=true) List<DLFileShortcut> getDLFileShortcutsByUuidAndCompanyId(String uuid, long companyId)
uuid
- the UUID of the document library file shortcutscompanyId
- the primary key of the company@Transactional(propagation=SUPPORTS, readOnly=true) List<DLFileShortcut> getDLFileShortcutsByUuidAndCompanyId(String uuid, long companyId, int start, int end, OrderByComparator<DLFileShortcut> orderByComparator)
uuid
- the UUID of the document library file shortcutscompanyId
- the primary key of the companystart
- the lower bound of the range of document library file shortcutsend
- the upper bound of the range of document library file shortcuts (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)@Transactional(propagation=SUPPORTS, readOnly=true) int getDLFileShortcutsCount()
@Transactional(propagation=SUPPORTS, readOnly=true) ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext)
@Transactional(propagation=SUPPORTS, readOnly=true) DLFileShortcut getFileShortcut(long fileShortcutId) throws PortalException
PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) List<DLFileShortcut> getFileShortcuts(long toFileEntryId)
@Transactional(propagation=SUPPORTS, readOnly=true) List<DLFileShortcut> getFileShortcuts(long groupId, long folderId, boolean active, int status, int start, int end)
@Transactional(propagation=SUPPORTS, readOnly=true) int getFileShortcutsCount(long groupId, long folderId, boolean active, int status)
@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
void rebuildTree(long companyId) throws PortalException
PortalException
void setTreePaths(long folderId, String treePath) throws PortalException
PortalException
void updateAsset(long userId, DLFileShortcut fileShortcut, long[] assetCategoryIds, String[] assetTagNames) throws PortalException
PortalException
@Indexable(type=REINDEX) DLFileShortcut updateDLFileShortcut(DLFileShortcut dlFileShortcut)
Important: Inspect DLFileShortcutLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
dlFileShortcut
- the document library file shortcutDLFileShortcut updateFileShortcut(long userId, long fileShortcutId, long repositoryId, long folderId, long toFileEntryId, ServiceContext serviceContext) throws PortalException
PortalException
void updateFileShortcuts(long oldToFileEntryId, long newToFileEntryId)
void updateFileShortcutsActive(long toFileEntryId, boolean active)
DLFileShortcut updateStatus(long userId, long fileShortcutId, int status, ServiceContext serviceContext) throws PortalException
PortalException
@Transactional(enabled=false) CTPersistence<DLFileShortcut> getCTPersistence()
getCTPersistence
in interface CTService<DLFileShortcut>
@Transactional(enabled=false) Class<DLFileShortcut> getModelClass()
getModelClass
in interface CTService<DLFileShortcut>
@Transactional(rollbackFor=java.lang.Throwable.class) <R,E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<CTPersistence<DLFileShortcut>,R,E> updateUnsafeFunction) throws E extends Throwable
updateWithUnsafeFunction
in interface CTService<DLFileShortcut>
E extends Throwable