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) void
addFileShortcutResources
(long fileShortcutId, boolean addGroupPermissions, boolean addGuestPermissions) void
addFileShortcutResources
(long fileShortcutId, ModelPermissions modelPermissions) void
addFileShortcutResources
(DLFileShortcut fileShortcut, boolean addGroupPermissions, boolean addGuestPermissions) void
addFileShortcutResources
(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.void
deleteFileShortcut
(long fileShortcutId) void
deleteFileShortcut
(DLFileShortcut fileShortcut) void
deleteFileShortcut
(String externalReferenceCode, long groupId) void
deleteFileShortcuts
(long toFileEntryId) void
deleteFileShortcuts
(long groupId, long folderId) void
deleteFileShortcuts
(long groupId, long folderId, boolean includeTrashedEntries) 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) <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) 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.int
Returns 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) int
getFileShortcutsCount
(long groupId, long folderId, boolean active, int status) getGroupFileShortcuts
(long groupId) Returns the OSGi service identifier.getPersistedModel
(Serializable primaryKeyObj) void
rebuildTree
(long companyId) void
setTreePaths
(long folderId, String treePath) void
setWrappedService
(DLFileShortcutLocalService dlFileShortcutLocalService) void
updateAsset
(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) void
updateFileShortcuts
(long oldToFileEntryId, long newToFileEntryId) void
updateFileShortcutsActive
(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, wait
Methods 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:
addDLFileShortcut
in 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:
addFileShortcut
in interfaceDLFileShortcutLocalService
- Throws:
PortalException
-
addFileShortcutResources
public void addFileShortcutResources(DLFileShortcut fileShortcut, boolean addGroupPermissions, boolean addGuestPermissions) throws PortalException - Specified by:
addFileShortcutResources
in interfaceDLFileShortcutLocalService
- Throws:
PortalException
-
addFileShortcutResources
public void addFileShortcutResources(DLFileShortcut fileShortcut, ModelPermissions modelPermissions) throws PortalException - Specified by:
addFileShortcutResources
in interfaceDLFileShortcutLocalService
- Throws:
PortalException
-
addFileShortcutResources
public void addFileShortcutResources(long fileShortcutId, boolean addGroupPermissions, boolean addGuestPermissions) throws PortalException - Specified by:
addFileShortcutResources
in interfaceDLFileShortcutLocalService
- Throws:
PortalException
-
addFileShortcutResources
public void addFileShortcutResources(long fileShortcutId, ModelPermissions modelPermissions) throws PortalException - Specified by:
addFileShortcutResources
in 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:
createDLFileShortcut
in interfaceDLFileShortcutLocalService
- Parameters:
fileShortcutId
- the primary key for the new document library file shortcut- Returns:
- the new document library file shortcut
-
createPersistedModel
- Specified by:
createPersistedModel
in interfaceDLFileShortcutLocalService
- Specified by:
createPersistedModel
in interfacePersistedModelLocalService
- Throws:
PortalException
PortalException
-
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:
deleteDLFileShortcut
in 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:
deleteDLFileShortcut
in 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:
deleteFileShortcut
in interfaceDLFileShortcutLocalService
- Throws:
PortalException
-
deleteFileShortcut
- Specified by:
deleteFileShortcut
in interfaceDLFileShortcutLocalService
- Throws:
PortalException
-
deleteFileShortcut
- Specified by:
deleteFileShortcut
in interfaceDLFileShortcutLocalService
- Throws:
PortalException
-
deleteFileShortcuts
- Specified by:
deleteFileShortcuts
in interfaceDLFileShortcutLocalService
- Throws:
PortalException
-
deleteFileShortcuts
- Specified by:
deleteFileShortcuts
in interfaceDLFileShortcutLocalService
- Throws:
PortalException
-
deleteFileShortcuts
public void deleteFileShortcuts(long groupId, long folderId, boolean includeTrashedEntries) throws PortalException - Specified by:
deleteFileShortcuts
in interfaceDLFileShortcutLocalService
- Throws:
PortalException
-
deletePersistedModel
- Specified by:
deletePersistedModel
in interfaceDLFileShortcutLocalService
- Specified by:
deletePersistedModel
in interfacePersistedModelLocalService
- Throws:
PortalException
PortalException
-
deleteRepositoryFileShortcuts
- Specified by:
deleteRepositoryFileShortcuts
in interfaceDLFileShortcutLocalService
- Throws:
PortalException
-
disableFileShortcuts
public void disableFileShortcuts(long toFileEntryId) - Specified by:
disableFileShortcuts
in interfaceDLFileShortcutLocalService
-
dslQuery
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQuery
in interfaceDLFileShortcutLocalService
- Specified by:
dslQuery
in interfacePersistedModelLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCount
in interfaceDLFileShortcutLocalService
- Specified by:
dslQueryCount
in interfacePersistedModelLocalService
-
dynamicQuery
- Specified by:
dynamicQuery
in interfaceDLFileShortcutLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQuery
in 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.portlet.documentlibrary.model.impl.DLFileShortcutModelImpl
.- Specified by:
dynamicQuery
in 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.portlet.documentlibrary.model.impl.DLFileShortcutModelImpl
.- Specified by:
dynamicQuery
in 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:
dynamicQueryCount
in 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:
dynamicQueryCount
in 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:
enableFileShortcuts
in interfaceDLFileShortcutLocalService
-
fetchDLFileShortcut
- Specified by:
fetchDLFileShortcut
in interfaceDLFileShortcutLocalService
-
fetchDLFileShortcutByExternalReferenceCode
public DLFileShortcut fetchDLFileShortcutByExternalReferenceCode(String externalReferenceCode, long groupId) - Specified by:
fetchDLFileShortcutByExternalReferenceCode
in interfaceDLFileShortcutLocalService
-
fetchDLFileShortcutByUuidAndGroupId
Returns the document library file shortcut matching the UUID and group.- Specified by:
fetchDLFileShortcutByUuidAndGroupId
in interfaceDLFileShortcutLocalService
- Parameters:
uuid
- the document library file shortcut's UUIDgroupId
- the primary key of the group- Returns:
- the matching document library file shortcut, or
null
if a matching document library file shortcut could not be found
-
getActionableDynamicQuery
- Specified by:
getActionableDynamicQuery
in interfaceDLFileShortcutLocalService
-
getDLFileShortcut
Returns the document library file shortcut with the primary key.- Specified by:
getDLFileShortcut
in 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:
getDLFileShortcutByExternalReferenceCode
in 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:
getDLFileShortcutByUuidAndGroupId
in 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.portlet.documentlibrary.model.impl.DLFileShortcutModelImpl
.- Specified by:
getDLFileShortcuts
in 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:
getDLFileShortcutsByUuidAndCompanyId
in 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:
getDLFileShortcutsByUuidAndCompanyId
in 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:
getDLFileShortcutsCount
in interfaceDLFileShortcutLocalService
- Returns:
- the number of document library file shortcuts
-
getExportActionableDynamicQuery
public ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext) - Specified by:
getExportActionableDynamicQuery
in interfaceDLFileShortcutLocalService
-
getFileShortcut
- Specified by:
getFileShortcut
in interfaceDLFileShortcutLocalService
- Throws:
PortalException
-
getFileShortcuts
- Specified by:
getFileShortcuts
in interfaceDLFileShortcutLocalService
-
getFileShortcuts
- Specified by:
getFileShortcuts
in interfaceDLFileShortcutLocalService
-
getFileShortcuts
public List<DLFileShortcut> getFileShortcuts(long groupId, long folderId, boolean active, int status, int start, int end) - Specified by:
getFileShortcuts
in interfaceDLFileShortcutLocalService
-
getFileShortcutsCount
public int getFileShortcutsCount(long groupId, long folderId, boolean active, int status) - Specified by:
getFileShortcutsCount
in interfaceDLFileShortcutLocalService
-
getGroupFileShortcuts
- Specified by:
getGroupFileShortcuts
in interfaceDLFileShortcutLocalService
-
getIndexableActionableDynamicQuery
- Specified by:
getIndexableActionableDynamicQuery
in interfaceDLFileShortcutLocalService
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifier
in interfaceDLFileShortcutLocalService
- Returns:
- the OSGi service identifier
-
getPersistedModel
- Specified by:
getPersistedModel
in interfaceDLFileShortcutLocalService
- Specified by:
getPersistedModel
in interfacePersistedModelLocalService
- Throws:
PortalException
PortalException
-
rebuildTree
- Specified by:
rebuildTree
in interfaceDLFileShortcutLocalService
- Throws:
PortalException
-
setTreePaths
- Specified by:
setTreePaths
in interfaceDLFileShortcutLocalService
- Throws:
PortalException
-
updateAsset
public void updateAsset(long userId, DLFileShortcut fileShortcut, long[] assetCategoryIds, String[] assetTagNames) throws PortalException - Specified by:
updateAsset
in 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:
updateDLFileShortcut
in 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:
updateFileShortcut
in interfaceDLFileShortcutLocalService
- Throws:
PortalException
-
updateFileShortcuts
public void updateFileShortcuts(long oldToFileEntryId, long newToFileEntryId) - Specified by:
updateFileShortcuts
in interfaceDLFileShortcutLocalService
-
updateFileShortcutsActive
public void updateFileShortcutsActive(long toFileEntryId, boolean active) - Specified by:
updateFileShortcutsActive
in interfaceDLFileShortcutLocalService
-
updateStatus
public DLFileShortcut updateStatus(long userId, long fileShortcutId, int status, ServiceContext serviceContext) throws PortalException - Specified by:
updateStatus
in interfaceDLFileShortcutLocalService
- Throws:
PortalException
-
getBasePersistence
- Specified by:
getBasePersistence
in interfacePersistedModelLocalService
-
getCTPersistence
- Specified by:
getCTPersistence
in interfaceCTService<DLFileShortcut>
- Specified by:
getCTPersistence
in interfaceDLFileShortcutLocalService
-
getModelClass
- Specified by:
getModelClass
in interfaceCTService<DLFileShortcut>
- Specified by:
getModelClass
in interfaceDLFileShortcutLocalService
-
updateWithUnsafeFunction
public <R,E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<CTPersistence<DLFileShortcut>, R, throws EE> updateUnsafeFunction) - Specified by:
updateWithUnsafeFunction
in interfaceCTService<DLFileShortcut>
- Specified by:
updateWithUnsafeFunction
in interfaceDLFileShortcutLocalService
- Throws:
E extends Throwable
-
getWrappedService
- Specified by:
getWrappedService
in interfaceServiceWrapper<DLFileShortcutLocalService>
-
setWrappedService
- Specified by:
setWrappedService
in interfaceServiceWrapper<DLFileShortcutLocalService>
-