Class RepositoryLocalServiceWrapper
- All Implemented Interfaces:
BaseLocalService
,CTService<Repository>
,PersistedModelLocalService
,RepositoryLocalService
,ServiceWrapper<RepositoryLocalService>
RepositoryLocalService
.- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Constructor Summary
ConstructorsConstructorDescriptionRepositoryLocalServiceWrapper
(RepositoryLocalService repositoryLocalService) -
Method Summary
Modifier and TypeMethodDescriptionaddRepository
(Repository repository) Adds the repository to the database.addRepository
(String externalReferenceCode, long userId, long groupId, long classNameId, long parentFolderId, String name, String description, String portletId, UnicodeProperties typeSettingsUnicodeProperties, boolean hidden, ServiceContext serviceContext) void
checkRepository
(long repositoryId) createPersistedModel
(Serializable primaryKeyObj) createRepository
(long repositoryId) Creates a new repository with the primary key.deletePersistedModel
(PersistedModel persistedModel) void
deleteRepositories
(long groupId) deleteRepository
(long repositoryId) Deletes the repository with the primary key from the database.deleteRepository
(Repository repository) Deletes the repository from the database.<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.fetchRepository
(long repositoryId) fetchRepository
(long groupId, String portletId) fetchRepository
(long groupId, String name, String portletId) fetchRepositoryByExternalReferenceCode
(String externalReferenceCode, long groupId) fetchRepositoryByUuidAndGroupId
(String uuid, long groupId) Returns the repository matching the UUID and group.getExportActionableDynamicQuery
(PortletDataContext portletDataContext) getGroupRepositories
(long groupId) Returns the OSGi service identifier.getPersistedModel
(Serializable primaryKeyObj) getRepositories
(int start, int end) Returns a range of all the repositories.getRepositoriesByUuidAndCompanyId
(String uuid, long companyId) Returns all the repositories matching the UUID and company.getRepositoriesByUuidAndCompanyId
(String uuid, long companyId, int start, int end, OrderByComparator<Repository> orderByComparator) Returns a range of repositories matching the UUID and company.int
Returns the number of repositories.getRepository
(long repositoryId) Returns the repository with the primary key.getRepository
(long groupId, String portletId) getRepository
(long groupId, String name, String portletId) getRepositoryByExternalReferenceCode
(String externalReferenceCode, long groupId) getRepositoryByUuidAndGroupId
(String uuid, long groupId) Returns the repository matching the UUID and group.getTypeSettingsProperties
(long repositoryId) void
setWrappedService
(RepositoryLocalService repositoryLocalService) void
updateRepository
(long repositoryId, UnicodeProperties typeSettingsUnicodeProperties) void
updateRepository
(long repositoryId, String name, String description) updateRepository
(Repository repository) Updates the repository in the database or adds it if it does not yet exist.<R,
E extends Throwable>
RupdateWithUnsafeFunction
(com.liferay.petra.function.UnsafeFunction<CTPersistence<Repository>, 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
-
RepositoryLocalServiceWrapper
public RepositoryLocalServiceWrapper() -
RepositoryLocalServiceWrapper
-
-
Method Details
-
addRepository
Adds the repository to the database. Also notifies the appropriate model listeners.Important: Inspect RepositoryLocalServiceImpl 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:
addRepository
in interfaceRepositoryLocalService
- Parameters:
repository
- the repository- Returns:
- the repository that was added
-
addRepository
public Repository addRepository(String externalReferenceCode, long userId, long groupId, long classNameId, long parentFolderId, String name, String description, String portletId, UnicodeProperties typeSettingsUnicodeProperties, boolean hidden, ServiceContext serviceContext) throws PortalException - Specified by:
addRepository
in interfaceRepositoryLocalService
- Throws:
PortalException
-
checkRepository
public void checkRepository(long repositoryId) - Specified by:
checkRepository
in interfaceRepositoryLocalService
-
createPersistedModel
- Specified by:
createPersistedModel
in interfacePersistedModelLocalService
- Specified by:
createPersistedModel
in interfaceRepositoryLocalService
- Throws:
PortalException
PortalException
-
createRepository
Creates a new repository with the primary key. Does not add the repository to the database.- Specified by:
createRepository
in interfaceRepositoryLocalService
- Parameters:
repositoryId
- the primary key for the new repository- Returns:
- the new repository
-
deletePersistedModel
- Specified by:
deletePersistedModel
in interfacePersistedModelLocalService
- Specified by:
deletePersistedModel
in interfaceRepositoryLocalService
- Throws:
PortalException
PortalException
-
deleteRepositories
- Specified by:
deleteRepositories
in interfaceRepositoryLocalService
- Throws:
PortalException
-
deleteRepository
Deletes the repository with the primary key from the database. Also notifies the appropriate model listeners.Important: Inspect RepositoryLocalServiceImpl 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:
deleteRepository
in interfaceRepositoryLocalService
- Parameters:
repositoryId
- the primary key of the repository- Returns:
- the repository that was removed
- Throws:
PortalException
- if a repository with the primary key could not be foundPortalException
-
deleteRepository
Deletes the repository from the database. Also notifies the appropriate model listeners.Important: Inspect RepositoryLocalServiceImpl 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:
deleteRepository
in interfaceRepositoryLocalService
- Parameters:
repository
- the repository- Returns:
- the repository that was removed
- Throws:
PortalException
PortalException
-
dslQuery
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQuery
in interfacePersistedModelLocalService
- Specified by:
dslQuery
in interfaceRepositoryLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCount
in interfacePersistedModelLocalService
- Specified by:
dslQueryCount
in interfaceRepositoryLocalService
-
dynamicQuery
- Specified by:
dynamicQuery
in interfaceRepositoryLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQuery
in interfaceRepositoryLocalService
- 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.portal.model.impl.RepositoryModelImpl
.- Specified by:
dynamicQuery
in interfaceRepositoryLocalService
- 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.portal.model.impl.RepositoryModelImpl
.- Specified by:
dynamicQuery
in interfaceRepositoryLocalService
- 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 interfaceRepositoryLocalService
- 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 interfaceRepositoryLocalService
- Parameters:
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
fetchRepository
- Specified by:
fetchRepository
in interfaceRepositoryLocalService
-
fetchRepository
- Specified by:
fetchRepository
in interfaceRepositoryLocalService
-
fetchRepository
- Specified by:
fetchRepository
in interfaceRepositoryLocalService
-
fetchRepositoryByExternalReferenceCode
public Repository fetchRepositoryByExternalReferenceCode(String externalReferenceCode, long groupId) - Specified by:
fetchRepositoryByExternalReferenceCode
in interfaceRepositoryLocalService
-
fetchRepositoryByUuidAndGroupId
Returns the repository matching the UUID and group.- Specified by:
fetchRepositoryByUuidAndGroupId
in interfaceRepositoryLocalService
- Parameters:
uuid
- the repository's UUIDgroupId
- the primary key of the group- Returns:
- the matching repository, or
null
if a matching repository could not be found
-
getActionableDynamicQuery
- Specified by:
getActionableDynamicQuery
in interfaceRepositoryLocalService
-
getExportActionableDynamicQuery
public ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext) - Specified by:
getExportActionableDynamicQuery
in interfaceRepositoryLocalService
-
getGroupRepositories
- Specified by:
getGroupRepositories
in interfaceRepositoryLocalService
-
getIndexableActionableDynamicQuery
- Specified by:
getIndexableActionableDynamicQuery
in interfaceRepositoryLocalService
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifier
in interfaceRepositoryLocalService
- Returns:
- the OSGi service identifier
-
getPersistedModel
- Specified by:
getPersistedModel
in interfacePersistedModelLocalService
- Specified by:
getPersistedModel
in interfaceRepositoryLocalService
- Throws:
PortalException
PortalException
-
getRepositories
Returns a range of all the repositories.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.portal.model.impl.RepositoryModelImpl
.- Specified by:
getRepositories
in interfaceRepositoryLocalService
- Parameters:
start
- the lower bound of the range of repositoriesend
- the upper bound of the range of repositories (not inclusive)- Returns:
- the range of repositories
-
getRepositoriesByUuidAndCompanyId
Returns all the repositories matching the UUID and company.- Specified by:
getRepositoriesByUuidAndCompanyId
in interfaceRepositoryLocalService
- Parameters:
uuid
- the UUID of the repositoriescompanyId
- the primary key of the company- Returns:
- the matching repositories, or an empty list if no matches were found
-
getRepositoriesByUuidAndCompanyId
public List<Repository> getRepositoriesByUuidAndCompanyId(String uuid, long companyId, int start, int end, OrderByComparator<Repository> orderByComparator) Returns a range of repositories matching the UUID and company.- Specified by:
getRepositoriesByUuidAndCompanyId
in interfaceRepositoryLocalService
- Parameters:
uuid
- the UUID of the repositoriescompanyId
- the primary key of the companystart
- the lower bound of the range of repositoriesend
- the upper bound of the range of repositories (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the range of matching repositories, or an empty list if no matches were found
-
getRepositoriesCount
public int getRepositoriesCount()Returns the number of repositories.- Specified by:
getRepositoriesCount
in interfaceRepositoryLocalService
- Returns:
- the number of repositories
-
getRepository
Returns the repository with the primary key.- Specified by:
getRepository
in interfaceRepositoryLocalService
- Parameters:
repositoryId
- the primary key of the repository- Returns:
- the repository
- Throws:
PortalException
- if a repository with the primary key could not be foundPortalException
-
getRepository
- Specified by:
getRepository
in interfaceRepositoryLocalService
- Throws:
PortalException
-
getRepository
- Specified by:
getRepository
in interfaceRepositoryLocalService
- Throws:
PortalException
-
getRepositoryByExternalReferenceCode
public Repository getRepositoryByExternalReferenceCode(String externalReferenceCode, long groupId) throws PortalException - Specified by:
getRepositoryByExternalReferenceCode
in interfaceRepositoryLocalService
- Throws:
PortalException
-
getRepositoryByUuidAndGroupId
Returns the repository matching the UUID and group.- Specified by:
getRepositoryByUuidAndGroupId
in interfaceRepositoryLocalService
- Parameters:
uuid
- the repository's UUIDgroupId
- the primary key of the group- Returns:
- the matching repository
- Throws:
PortalException
- if a matching repository could not be foundPortalException
-
getTypeSettingsProperties
- Specified by:
getTypeSettingsProperties
in interfaceRepositoryLocalService
- Throws:
PortalException
-
updateRepository
public void updateRepository(long repositoryId, String name, String description) throws PortalException - Specified by:
updateRepository
in interfaceRepositoryLocalService
- Throws:
PortalException
-
updateRepository
public void updateRepository(long repositoryId, UnicodeProperties typeSettingsUnicodeProperties) throws PortalException - Specified by:
updateRepository
in interfaceRepositoryLocalService
- Throws:
PortalException
-
updateRepository
Updates the repository in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.Important: Inspect RepositoryLocalServiceImpl 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:
updateRepository
in interfaceRepositoryLocalService
- Parameters:
repository
- the repository- Returns:
- the repository that was updated
-
getBasePersistence
- Specified by:
getBasePersistence
in interfacePersistedModelLocalService
-
getCTPersistence
- Specified by:
getCTPersistence
in interfaceCTService<Repository>
- Specified by:
getCTPersistence
in interfaceRepositoryLocalService
-
getModelClass
- Specified by:
getModelClass
in interfaceCTService<Repository>
- Specified by:
getModelClass
in interfaceRepositoryLocalService
-
updateWithUnsafeFunction
public <R,E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<CTPersistence<Repository>, R, throws EE> updateUnsafeFunction) - Specified by:
updateWithUnsafeFunction
in interfaceCTService<Repository>
- Specified by:
updateWithUnsafeFunction
in interfaceRepositoryLocalService
- Throws:
E extends Throwable
-
getWrappedService
- Specified by:
getWrappedService
in interfaceServiceWrapper<RepositoryLocalService>
-
setWrappedService
- Specified by:
setWrappedService
in interfaceServiceWrapper<RepositoryLocalService>
-