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) voidcheckRepository(long repositoryId) createPersistedModel(Serializable primaryKeyObj) createRepository(long repositoryId) Creates a new repository with the primary key.deletePersistedModel(PersistedModel persistedModel) voiddeleteRepositories(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> 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.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.intReturns 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) voidsetWrappedService(RepositoryLocalService repositoryLocalService) voidupdateRepository(long repositoryId, UnicodeProperties typeSettingsUnicodeProperties) voidupdateRepository(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, waitMethods 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:
addRepositoryin 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:
addRepositoryin interfaceRepositoryLocalService- Throws:
PortalException
-
checkRepository
public void checkRepository(long repositoryId) - Specified by:
checkRepositoryin interfaceRepositoryLocalService
-
createPersistedModel
- Specified by:
createPersistedModelin interfacePersistedModelLocalService- Specified by:
createPersistedModelin interfaceRepositoryLocalService- Throws:
PortalExceptionPortalException
-
createRepository
Creates a new repository with the primary key. Does not add the repository to the database.- Specified by:
createRepositoryin interfaceRepositoryLocalService- Parameters:
repositoryId- the primary key for the new repository- Returns:
- the new repository
-
deletePersistedModel
- Specified by:
deletePersistedModelin interfacePersistedModelLocalService- Specified by:
deletePersistedModelin interfaceRepositoryLocalService- Throws:
PortalExceptionPortalException
-
deleteRepositories
- Specified by:
deleteRepositoriesin 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:
deleteRepositoryin 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:
deleteRepositoryin interfaceRepositoryLocalService- Parameters:
repository- the repository- Returns:
- the repository that was removed
- Throws:
PortalExceptionPortalException
-
dslQuery
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryin interfacePersistedModelLocalService- Specified by:
dslQueryin interfaceRepositoryLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCountin interfacePersistedModelLocalService- Specified by:
dslQueryCountin interfaceRepositoryLocalService
-
dynamicQuery
- Specified by:
dynamicQueryin interfaceRepositoryLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQueryin 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 - 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.portal.model.impl.RepositoryModelImpl.- Specified by:
dynamicQueryin 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 - 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.portal.model.impl.RepositoryModelImpl.- Specified by:
dynamicQueryin 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:
dynamicQueryCountin 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:
dynamicQueryCountin 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:
fetchRepositoryin interfaceRepositoryLocalService
-
fetchRepository
- Specified by:
fetchRepositoryin interfaceRepositoryLocalService
-
fetchRepository
- Specified by:
fetchRepositoryin interfaceRepositoryLocalService
-
fetchRepositoryByExternalReferenceCode
public Repository fetchRepositoryByExternalReferenceCode(String externalReferenceCode, long groupId) - Specified by:
fetchRepositoryByExternalReferenceCodein interfaceRepositoryLocalService
-
fetchRepositoryByUuidAndGroupId
Returns the repository matching the UUID and group.- Specified by:
fetchRepositoryByUuidAndGroupIdin interfaceRepositoryLocalService- Parameters:
uuid- the repository's UUIDgroupId- the primary key of the group- Returns:
- the matching repository, or
nullif a matching repository could not be found
-
getActionableDynamicQuery
- Specified by:
getActionableDynamicQueryin interfaceRepositoryLocalService
-
getExportActionableDynamicQuery
public ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext) - Specified by:
getExportActionableDynamicQueryin interfaceRepositoryLocalService
-
getGroupRepositories
- Specified by:
getGroupRepositoriesin interfaceRepositoryLocalService
-
getIndexableActionableDynamicQuery
- Specified by:
getIndexableActionableDynamicQueryin interfaceRepositoryLocalService
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifierin interfaceRepositoryLocalService- Returns:
- the OSGi service identifier
-
getPersistedModel
- Specified by:
getPersistedModelin interfacePersistedModelLocalService- Specified by:
getPersistedModelin interfaceRepositoryLocalService- Throws:
PortalExceptionPortalException
-
getRepositories
Returns a range of all the repositories.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.portal.model.impl.RepositoryModelImpl.- Specified by:
getRepositoriesin 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:
getRepositoriesByUuidAndCompanyIdin 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:
getRepositoriesByUuidAndCompanyIdin 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:
getRepositoriesCountin interfaceRepositoryLocalService- Returns:
- the number of repositories
-
getRepository
Returns the repository with the primary key.- Specified by:
getRepositoryin 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:
getRepositoryin interfaceRepositoryLocalService- Throws:
PortalException
-
getRepository
- Specified by:
getRepositoryin interfaceRepositoryLocalService- Throws:
PortalException
-
getRepositoryByExternalReferenceCode
public Repository getRepositoryByExternalReferenceCode(String externalReferenceCode, long groupId) throws PortalException - Specified by:
getRepositoryByExternalReferenceCodein interfaceRepositoryLocalService- Throws:
PortalException
-
getRepositoryByUuidAndGroupId
Returns the repository matching the UUID and group.- Specified by:
getRepositoryByUuidAndGroupIdin 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:
getTypeSettingsPropertiesin interfaceRepositoryLocalService- Throws:
PortalException
-
updateRepository
public void updateRepository(long repositoryId, String name, String description) throws PortalException - Specified by:
updateRepositoryin interfaceRepositoryLocalService- Throws:
PortalException
-
updateRepository
public void updateRepository(long repositoryId, UnicodeProperties typeSettingsUnicodeProperties) throws PortalException - Specified by:
updateRepositoryin 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:
updateRepositoryin interfaceRepositoryLocalService- Parameters:
repository- the repository- Returns:
- the repository that was updated
-
getBasePersistence
- Specified by:
getBasePersistencein interfacePersistedModelLocalService
-
getCTPersistence
- Specified by:
getCTPersistencein interfaceCTService<Repository>- Specified by:
getCTPersistencein interfaceRepositoryLocalService
-
getModelClass
- Specified by:
getModelClassin interfaceCTService<Repository>- Specified by:
getModelClassin interfaceRepositoryLocalService
-
updateWithUnsafeFunction
public <R,E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<CTPersistence<Repository>, R, throws EE> updateUnsafeFunction) - Specified by:
updateWithUnsafeFunctionin interfaceCTService<Repository>- Specified by:
updateWithUnsafeFunctionin interfaceRepositoryLocalService- Throws:
E extends Throwable
-
getWrappedService
- Specified by:
getWrappedServicein interfaceServiceWrapper<RepositoryLocalService>
-
setWrappedService
- Specified by:
setWrappedServicein interfaceServiceWrapper<RepositoryLocalService>
-