Package com.liferay.portal.service.impl
Class RepositoryLocalServiceImpl
Object
com.liferay.portal.kernel.service.BaseLocalServiceImpl
com.liferay.portal.service.base.RepositoryLocalServiceBaseImpl
com.liferay.portal.service.impl.RepositoryLocalServiceImpl
- All Implemented Interfaces:
com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService
,com.liferay.portal.kernel.service.BaseLocalService
,com.liferay.portal.kernel.service.change.tracking.CTService<com.liferay.portal.kernel.model.Repository>
,com.liferay.portal.kernel.service.PersistedModelLocalService
,com.liferay.portal.kernel.service.RepositoryLocalService
- Author:
- Alexander Chow
-
Field Summary
Fields inherited from class com.liferay.portal.service.base.RepositoryLocalServiceBaseImpl
counterLocalService, repositoryLocalService, repositoryPersistence
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.liferay.portal.kernel.model.Repository
addRepository
(String externalReferenceCode, long userId, long groupId, long classNameId, long parentFolderId, String name, String description, String portletId, com.liferay.portal.kernel.util.UnicodeProperties typeSettingsUnicodeProperties, boolean hidden, com.liferay.portal.kernel.service.ServiceContext serviceContext) void
checkRepository
(long repositoryId) void
deleteRepositories
(long groupId) com.liferay.portal.kernel.model.Repository
deleteRepository
(long repositoryId) Deletes the repository with the primary key from the database.com.liferay.portal.kernel.model.Repository
deleteRepository
(com.liferay.portal.kernel.model.Repository repository) Deletes the repository from the database.com.liferay.portal.kernel.model.Repository
fetchRepository
(long groupId, String portletId) com.liferay.portal.kernel.model.Repository
fetchRepository
(long groupId, String name, String portletId) protected long
getDLFolderId
(com.liferay.portal.kernel.model.User user, long groupId, long repositoryId, long parentFolderId, String name, String description, boolean hidden, com.liferay.portal.kernel.service.ServiceContext serviceContext) List<com.liferay.portal.kernel.model.Repository>
getGroupRepositories
(long groupId) com.liferay.portal.kernel.model.Repository
getRepository
(long groupId, String portletId) com.liferay.portal.kernel.model.Repository
getRepository
(long groupId, String name, String portletId) com.liferay.portal.kernel.util.UnicodeProperties
getTypeSettingsProperties
(long repositoryId) void
updateRepository
(long repositoryId, com.liferay.portal.kernel.util.UnicodeProperties typeSettingsUnicodeProperties) void
updateRepository
(long repositoryId, String name, String description) Methods inherited from class com.liferay.portal.service.base.RepositoryLocalServiceBaseImpl
addRepository, afterPropertiesSet, createPersistedModel, createRepository, deletePersistedModel, destroy, dslQuery, dslQueryCount, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, fetchRepository, fetchRepositoryByExternalReferenceCode, fetchRepositoryByUuidAndGroupId, getActionableDynamicQuery, getBasePersistence, getCounterLocalService, getCTPersistence, getExportActionableDynamicQuery, getIndexableActionableDynamicQuery, getModelClass, getModelClassName, getOSGiServiceIdentifier, getPersistedModel, getRepositories, getRepositoriesByUuidAndCompanyId, getRepositoriesByUuidAndCompanyId, getRepositoriesCount, getRepository, getRepositoryByExternalReferenceCode, getRepositoryByUuidAndGroupId, getRepositoryLocalService, getRepositoryPersistence, initActionableDynamicQuery, runSQL, setCounterLocalService, setRepositoryLocalService, setRepositoryPersistence, updateRepository, updateWithUnsafeFunction
Methods inherited from class com.liferay.portal.kernel.service.BaseLocalServiceImpl
getClassLoader, getLocalizationMap
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
-
RepositoryLocalServiceImpl
public RepositoryLocalServiceImpl()
-
-
Method Details
-
addRepository
public com.liferay.portal.kernel.model.Repository addRepository(String externalReferenceCode, long userId, long groupId, long classNameId, long parentFolderId, String name, String description, String portletId, com.liferay.portal.kernel.util.UnicodeProperties typeSettingsUnicodeProperties, boolean hidden, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
checkRepository
public void checkRepository(long repositoryId) -
deleteRepositories
public void deleteRepositories(long groupId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteRepository
public com.liferay.portal.kernel.model.Repository deleteRepository(long repositoryId) throws com.liferay.portal.kernel.exception.PortalException Description copied from class:RepositoryLocalServiceBaseImpl
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 interfacecom.liferay.portal.kernel.service.RepositoryLocalService
- Overrides:
deleteRepository
in classRepositoryLocalServiceBaseImpl
- Parameters:
repositoryId
- the primary key of the repository- Returns:
- the repository that was removed
- Throws:
com.liferay.portal.kernel.exception.PortalException
- if a repository with the primary key could not be found
-
deleteRepository
@SystemEvent(action=1, type=1) public com.liferay.portal.kernel.model.Repository deleteRepository(com.liferay.portal.kernel.model.Repository repository) throws com.liferay.portal.kernel.exception.PortalException Description copied from class:RepositoryLocalServiceBaseImpl
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 interfacecom.liferay.portal.kernel.service.RepositoryLocalService
- Overrides:
deleteRepository
in classRepositoryLocalServiceBaseImpl
- Parameters:
repository
- the repository- Returns:
- the repository that was removed
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
fetchRepository
-
fetchRepository
-
getGroupRepositories
-
getRepository
public com.liferay.portal.kernel.model.Repository getRepository(long groupId, String portletId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getRepository
public com.liferay.portal.kernel.model.Repository getRepository(long groupId, String name, String portletId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getTypeSettingsProperties
public com.liferay.portal.kernel.util.UnicodeProperties getTypeSettingsProperties(long repositoryId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateRepository
public void updateRepository(long repositoryId, String name, String description) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateRepository
public void updateRepository(long repositoryId, com.liferay.portal.kernel.util.UnicodeProperties typeSettingsUnicodeProperties) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getDLFolderId
protected long getDLFolderId(com.liferay.portal.kernel.model.User user, long groupId, long repositoryId, long parentFolderId, String name, String description, boolean hidden, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-