Class DLFileShortcutLocalServiceWrapper
- All Implemented Interfaces:
DLFileShortcutLocalService,BaseLocalService,CTService<DLFileShortcut>,PersistedModelLocalService,ServiceWrapper<DLFileShortcutLocalService>
DLFileShortcutLocalService.- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Constructor Summary
ConstructorsConstructorDescriptionDLFileShortcutLocalServiceWrapper(DLFileShortcutLocalService dlFileShortcutLocalService) -
Method Summary
Modifier and TypeMethodDescriptionaddDLFileShortcut(DLFileShortcut dlFileShortcut) Adds the document library file shortcut to the database.addFileShortcut(String externalReferenceCode, long userId, long groupId, long repositoryId, long folderId, long toFileEntryId, ServiceContext serviceContext) voidaddFileShortcutResources(long fileShortcutId, boolean addGroupPermissions, boolean addGuestPermissions) voidaddFileShortcutResources(long fileShortcutId, ModelPermissions modelPermissions) voidaddFileShortcutResources(DLFileShortcut fileShortcut, boolean addGroupPermissions, boolean addGuestPermissions) voidaddFileShortcutResources(DLFileShortcut fileShortcut, ModelPermissions modelPermissions) createDLFileShortcut(long fileShortcutId) Creates a new document library file shortcut with the primary key.createPersistedModel(Serializable primaryKeyObj) deleteDLFileShortcut(long fileShortcutId) Deletes the document library file shortcut with the primary key from the database.deleteDLFileShortcut(DLFileShortcut dlFileShortcut) Deletes the document library file shortcut from the database.voiddeleteFileShortcut(long fileShortcutId) voiddeleteFileShortcut(DLFileShortcut fileShortcut) voiddeleteFileShortcut(String externalReferenceCode, long groupId) voiddeleteFileShortcuts(long toFileEntryId) voiddeleteFileShortcuts(long groupId, long folderId) voiddeleteFileShortcuts(long groupId, long folderId, boolean includeTrashedEntries) deletePersistedModel(PersistedModel persistedModel) voiddeleteRepositoryFileShortcuts(long repositoryId) voiddisableFileShortcuts(long toFileEntryId) <T> TdslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) intdslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) <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.longdynamicQueryCount(DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.longdynamicQueryCount(DynamicQuery dynamicQuery, Projection projection) Returns the number of rows matching the dynamic query.voidenableFileShortcuts(long toFileEntryId) fetchDLFileShortcut(long fileShortcutId) fetchDLFileShortcutByExternalReferenceCode(String externalReferenceCode, long groupId) fetchDLFileShortcutByUuidAndGroupId(String uuid, long groupId) Returns the document library file shortcut matching the UUID and group.getDLFileShortcut(long fileShortcutId) Returns the document library file shortcut with the primary key.getDLFileShortcutByExternalReferenceCode(String externalReferenceCode, long groupId) getDLFileShortcutByUuidAndGroupId(String uuid, long groupId) Returns the document library file shortcut matching the UUID and group.getDLFileShortcuts(int start, int end) Returns a range of all the document library file shortcuts.getDLFileShortcutsByUuidAndCompanyId(String uuid, long companyId) Returns all the document library file shortcuts matching the UUID and company.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.intReturns the number of document library file shortcuts.getExportActionableDynamicQuery(PortletDataContext portletDataContext) getFileShortcut(long fileShortcutId) getFileShortcuts(long toFileEntryId) getFileShortcuts(long groupId, long folderId) getFileShortcuts(long groupId, long folderId, boolean active, int status, int start, int end) intgetFileShortcutsCount(long groupId, long folderId, boolean active, int status) getGroupFileShortcuts(long groupId) Returns the OSGi service identifier.getPersistedModel(Serializable primaryKeyObj) voidrebuildTree(long companyId) voidsetTreePaths(long folderId, String treePath) voidsetWrappedService(DLFileShortcutLocalService dlFileShortcutLocalService) voidupdateAsset(long userId, DLFileShortcut fileShortcut, long[] assetCategoryIds, String[] assetTagNames) updateDLFileShortcut(DLFileShortcut dlFileShortcut) Updates the document library file shortcut in the database or adds it if it does not yet exist.updateFileShortcut(long userId, long fileShortcutId, long repositoryId, long folderId, long toFileEntryId, ServiceContext serviceContext) voidupdateFileShortcuts(long oldToFileEntryId, long newToFileEntryId) voidupdateFileShortcutsActive(long toFileEntryId, boolean active) updateStatus(long userId, long fileShortcutId, int status, ServiceContext serviceContext) <R,E extends Throwable>
RupdateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<CTPersistence<DLFileShortcut>, R, E> updateUnsafeFunction) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.liferay.portal.kernel.service.PersistedModelLocalService
fetchPersistedModel
-
Constructor Details
-
DLFileShortcutLocalServiceWrapper
public DLFileShortcutLocalServiceWrapper() -
DLFileShortcutLocalServiceWrapper
-
-
Method Details
-
addDLFileShortcut
Adds the document library file shortcut to the database. Also notifies the appropriate model listeners.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.
- Specified by:
addDLFileShortcutin interfaceDLFileShortcutLocalService- Parameters:
dlFileShortcut- the document library file shortcut- Returns:
- the document library file shortcut that was added
-
addFileShortcut
public DLFileShortcut addFileShortcut(String externalReferenceCode, long userId, long groupId, long repositoryId, long folderId, long toFileEntryId, ServiceContext serviceContext) throws PortalException - Specified by:
addFileShortcutin interfaceDLFileShortcutLocalService- Throws:
PortalException
-
addFileShortcutResources
public void addFileShortcutResources(DLFileShortcut fileShortcut, boolean addGroupPermissions, boolean addGuestPermissions) throws PortalException - Specified by:
addFileShortcutResourcesin interfaceDLFileShortcutLocalService- Throws:
PortalException
-
addFileShortcutResources
public void addFileShortcutResources(DLFileShortcut fileShortcut, ModelPermissions modelPermissions) throws PortalException - Specified by:
addFileShortcutResourcesin interfaceDLFileShortcutLocalService- Throws:
PortalException
-
addFileShortcutResources
public void addFileShortcutResources(long fileShortcutId, boolean addGroupPermissions, boolean addGuestPermissions) throws PortalException - Specified by:
addFileShortcutResourcesin interfaceDLFileShortcutLocalService- Throws:
PortalException
-
addFileShortcutResources
public void addFileShortcutResources(long fileShortcutId, ModelPermissions modelPermissions) throws PortalException - Specified by:
addFileShortcutResourcesin interfaceDLFileShortcutLocalService- Throws:
PortalException
-
createDLFileShortcut
Creates a new document library file shortcut with the primary key. Does not add the document library file shortcut to the database.- Specified by:
createDLFileShortcutin interfaceDLFileShortcutLocalService- Parameters:
fileShortcutId- the primary key for the new document library file shortcut- Returns:
- the new document library file shortcut
-
createPersistedModel
- Specified by:
createPersistedModelin interfaceDLFileShortcutLocalService- Specified by:
createPersistedModelin interfacePersistedModelLocalService- Throws:
PortalExceptionPortalException
-
deleteDLFileShortcut
Deletes the document library file shortcut from the database. Also notifies the appropriate model listeners.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.
- Specified by:
deleteDLFileShortcutin interfaceDLFileShortcutLocalService- Parameters:
dlFileShortcut- the document library file shortcut- Returns:
- the document library file shortcut that was removed
-
deleteDLFileShortcut
Deletes the document library file shortcut with the primary key from the database. Also notifies the appropriate model listeners.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.
- Specified by:
deleteDLFileShortcutin interfaceDLFileShortcutLocalService- Parameters:
fileShortcutId- the primary key of the document library file shortcut- Returns:
- the document library file shortcut that was removed
- Throws:
PortalException- if a document library file shortcut with the primary key could not be foundPortalException
-
deleteFileShortcut
- Specified by:
deleteFileShortcutin interfaceDLFileShortcutLocalService- Throws:
PortalException
-
deleteFileShortcut
- Specified by:
deleteFileShortcutin interfaceDLFileShortcutLocalService- Throws:
PortalException
-
deleteFileShortcut
- Specified by:
deleteFileShortcutin interfaceDLFileShortcutLocalService- Throws:
PortalException
-
deleteFileShortcuts
- Specified by:
deleteFileShortcutsin interfaceDLFileShortcutLocalService- Throws:
PortalException
-
deleteFileShortcuts
- Specified by:
deleteFileShortcutsin interfaceDLFileShortcutLocalService- Throws:
PortalException
-
deleteFileShortcuts
public void deleteFileShortcuts(long groupId, long folderId, boolean includeTrashedEntries) throws PortalException - Specified by:
deleteFileShortcutsin interfaceDLFileShortcutLocalService- Throws:
PortalException
-
deletePersistedModel
- Specified by:
deletePersistedModelin interfaceDLFileShortcutLocalService- Specified by:
deletePersistedModelin interfacePersistedModelLocalService- Throws:
PortalExceptionPortalException
-
deleteRepositoryFileShortcuts
- Specified by:
deleteRepositoryFileShortcutsin interfaceDLFileShortcutLocalService- Throws:
PortalException
-
disableFileShortcuts
public void disableFileShortcuts(long toFileEntryId) - Specified by:
disableFileShortcutsin interfaceDLFileShortcutLocalService
-
dslQuery
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryin interfaceDLFileShortcutLocalService- Specified by:
dslQueryin interfacePersistedModelLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCountin interfaceDLFileShortcutLocalService- Specified by:
dslQueryCountin interfacePersistedModelLocalService
-
dynamicQuery
- Specified by:
dynamicQueryin interfaceDLFileShortcutLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQueryin interfaceDLFileShortcutLocalService- Parameters:
dynamicQuery- the dynamic query- Returns:
- the matching rows
-
dynamicQuery
Performs a dynamic query on the database and returns a range of the matching rows.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portlet.documentlibrary.model.impl.DLFileShortcutModelImpl.- Specified by:
dynamicQueryin interfaceDLFileShortcutLocalService- Parameters:
dynamicQuery- the dynamic querystart- the lower bound of the range of model instancesend- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portlet.documentlibrary.model.impl.DLFileShortcutModelImpl.- Specified by:
dynamicQueryin interfaceDLFileShortcutLocalService- Parameters:
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 (optionallynull)- Returns:
- the ordered range of matching rows
-
dynamicQueryCount
Returns the number of rows matching the dynamic query.- Specified by:
dynamicQueryCountin interfaceDLFileShortcutLocalService- Parameters:
dynamicQuery- the dynamic query- Returns:
- the number of rows matching the dynamic query
-
dynamicQueryCount
Returns the number of rows matching the dynamic query.- Specified by:
dynamicQueryCountin interfaceDLFileShortcutLocalService- Parameters:
dynamicQuery- the dynamic queryprojection- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
enableFileShortcuts
public void enableFileShortcuts(long toFileEntryId) - Specified by:
enableFileShortcutsin interfaceDLFileShortcutLocalService
-
fetchDLFileShortcut
- Specified by:
fetchDLFileShortcutin interfaceDLFileShortcutLocalService
-
fetchDLFileShortcutByExternalReferenceCode
public DLFileShortcut fetchDLFileShortcutByExternalReferenceCode(String externalReferenceCode, long groupId) - Specified by:
fetchDLFileShortcutByExternalReferenceCodein interfaceDLFileShortcutLocalService
-
fetchDLFileShortcutByUuidAndGroupId
Returns the document library file shortcut matching the UUID and group.- Specified by:
fetchDLFileShortcutByUuidAndGroupIdin interfaceDLFileShortcutLocalService- Parameters:
uuid- the document library file shortcut's UUIDgroupId- the primary key of the group- Returns:
- the matching document library file shortcut, or
nullif a matching document library file shortcut could not be found
-
getActionableDynamicQuery
- Specified by:
getActionableDynamicQueryin interfaceDLFileShortcutLocalService
-
getDLFileShortcut
Returns the document library file shortcut with the primary key.- Specified by:
getDLFileShortcutin interfaceDLFileShortcutLocalService- Parameters:
fileShortcutId- the primary key of the document library file shortcut- Returns:
- the document library file shortcut
- Throws:
PortalException- if a document library file shortcut with the primary key could not be foundPortalException
-
getDLFileShortcutByExternalReferenceCode
public DLFileShortcut getDLFileShortcutByExternalReferenceCode(String externalReferenceCode, long groupId) throws PortalException - Specified by:
getDLFileShortcutByExternalReferenceCodein interfaceDLFileShortcutLocalService- Throws:
PortalException
-
getDLFileShortcutByUuidAndGroupId
public DLFileShortcut getDLFileShortcutByUuidAndGroupId(String uuid, long groupId) throws PortalException Returns the document library file shortcut matching the UUID and group.- Specified by:
getDLFileShortcutByUuidAndGroupIdin interfaceDLFileShortcutLocalService- Parameters:
uuid- the document library file shortcut's UUIDgroupId- the primary key of the group- Returns:
- the matching document library file shortcut
- Throws:
PortalException- if a matching document library file shortcut could not be foundPortalException
-
getDLFileShortcuts
Returns a range of all the document library file shortcuts.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portlet.documentlibrary.model.impl.DLFileShortcutModelImpl.- Specified by:
getDLFileShortcutsin interfaceDLFileShortcutLocalService- Parameters:
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)- Returns:
- the range of document library file shortcuts
-
getDLFileShortcutsByUuidAndCompanyId
Returns all the document library file shortcuts matching the UUID and company.- Specified by:
getDLFileShortcutsByUuidAndCompanyIdin interfaceDLFileShortcutLocalService- Parameters:
uuid- the UUID of the document library file shortcutscompanyId- the primary key of the company- Returns:
- the matching document library file shortcuts, or an empty list if no matches were found
-
getDLFileShortcutsByUuidAndCompanyId
public 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.- Specified by:
getDLFileShortcutsByUuidAndCompanyIdin interfaceDLFileShortcutLocalService- Parameters:
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 (optionallynull)- Returns:
- the range of matching document library file shortcuts, or an empty list if no matches were found
-
getDLFileShortcutsCount
public int getDLFileShortcutsCount()Returns the number of document library file shortcuts.- Specified by:
getDLFileShortcutsCountin interfaceDLFileShortcutLocalService- Returns:
- the number of document library file shortcuts
-
getExportActionableDynamicQuery
public ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext) - Specified by:
getExportActionableDynamicQueryin interfaceDLFileShortcutLocalService
-
getFileShortcut
- Specified by:
getFileShortcutin interfaceDLFileShortcutLocalService- Throws:
PortalException
-
getFileShortcuts
- Specified by:
getFileShortcutsin interfaceDLFileShortcutLocalService
-
getFileShortcuts
- Specified by:
getFileShortcutsin interfaceDLFileShortcutLocalService
-
getFileShortcuts
public List<DLFileShortcut> getFileShortcuts(long groupId, long folderId, boolean active, int status, int start, int end) - Specified by:
getFileShortcutsin interfaceDLFileShortcutLocalService
-
getFileShortcutsCount
public int getFileShortcutsCount(long groupId, long folderId, boolean active, int status) - Specified by:
getFileShortcutsCountin interfaceDLFileShortcutLocalService
-
getGroupFileShortcuts
- Specified by:
getGroupFileShortcutsin interfaceDLFileShortcutLocalService
-
getIndexableActionableDynamicQuery
- Specified by:
getIndexableActionableDynamicQueryin interfaceDLFileShortcutLocalService
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifierin interfaceDLFileShortcutLocalService- Returns:
- the OSGi service identifier
-
getPersistedModel
- Specified by:
getPersistedModelin interfaceDLFileShortcutLocalService- Specified by:
getPersistedModelin interfacePersistedModelLocalService- Throws:
PortalExceptionPortalException
-
rebuildTree
- Specified by:
rebuildTreein interfaceDLFileShortcutLocalService- Throws:
PortalException
-
setTreePaths
- Specified by:
setTreePathsin interfaceDLFileShortcutLocalService- Throws:
PortalException
-
updateAsset
public void updateAsset(long userId, DLFileShortcut fileShortcut, long[] assetCategoryIds, String[] assetTagNames) throws PortalException - Specified by:
updateAssetin interfaceDLFileShortcutLocalService- Throws:
PortalException
-
updateDLFileShortcut
Updates the document library file shortcut in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.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.
- Specified by:
updateDLFileShortcutin interfaceDLFileShortcutLocalService- Parameters:
dlFileShortcut- the document library file shortcut- Returns:
- the document library file shortcut that was updated
-
updateFileShortcut
public DLFileShortcut updateFileShortcut(long userId, long fileShortcutId, long repositoryId, long folderId, long toFileEntryId, ServiceContext serviceContext) throws PortalException - Specified by:
updateFileShortcutin interfaceDLFileShortcutLocalService- Throws:
PortalException
-
updateFileShortcuts
public void updateFileShortcuts(long oldToFileEntryId, long newToFileEntryId) - Specified by:
updateFileShortcutsin interfaceDLFileShortcutLocalService
-
updateFileShortcutsActive
public void updateFileShortcutsActive(long toFileEntryId, boolean active) - Specified by:
updateFileShortcutsActivein interfaceDLFileShortcutLocalService
-
updateStatus
public DLFileShortcut updateStatus(long userId, long fileShortcutId, int status, ServiceContext serviceContext) throws PortalException - Specified by:
updateStatusin interfaceDLFileShortcutLocalService- Throws:
PortalException
-
getBasePersistence
- Specified by:
getBasePersistencein interfacePersistedModelLocalService
-
getCTPersistence
- Specified by:
getCTPersistencein interfaceCTService<DLFileShortcut>- Specified by:
getCTPersistencein interfaceDLFileShortcutLocalService
-
getModelClass
- Specified by:
getModelClassin interfaceCTService<DLFileShortcut>- Specified by:
getModelClassin interfaceDLFileShortcutLocalService
-
updateWithUnsafeFunction
public <R,E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<CTPersistence<DLFileShortcut>, R, throws EE> updateUnsafeFunction) - Specified by:
updateWithUnsafeFunctionin interfaceCTService<DLFileShortcut>- Specified by:
updateWithUnsafeFunctionin interfaceDLFileShortcutLocalService- Throws:
E extends Throwable
-
getWrappedService
- Specified by:
getWrappedServicein interfaceServiceWrapper<DLFileShortcutLocalService>
-
setWrappedService
- Specified by:
setWrappedServicein interfaceServiceWrapper<DLFileShortcutLocalService>
-