Class RepositoryServiceUtil
Object
com.liferay.portal.kernel.service.RepositoryServiceUtil
Provides the remote service utility for Repository. This utility wraps
com.liferay.portal.service.impl.RepositoryServiceImpl
and is an
access point for service operations in application layer code running on a
remote server. Methods of this service are expected to have security checks
based on the propagated JAAS credentials because this service can be
accessed remotely.- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Repository
addRepository
(String externalReferenceCode, long groupId, long classNameId, long parentFolderId, String name, String description, String portletId, UnicodeProperties typeSettingsUnicodeProperties, ServiceContext serviceContext) static void
checkRepository
(long repositoryId) static void
deleteRepository
(long repositoryId) static String
Returns the OSGi service identifier.static Repository
getRepository
(long repositoryId) static Repository
getRepository
(long groupId, String portletId) static RepositoryService
static UnicodeProperties
getTypeSettingsProperties
(long repositoryId) static void
setService
(RepositoryService service) static void
updateRepository
(long repositoryId, String name, String description)
-
Constructor Details
-
RepositoryServiceUtil
public RepositoryServiceUtil()
-
-
Method Details
-
addRepository
public static Repository addRepository(String externalReferenceCode, long groupId, long classNameId, long parentFolderId, String name, String description, String portletId, UnicodeProperties typeSettingsUnicodeProperties, ServiceContext serviceContext) throws PortalException - Throws:
PortalException
-
checkRepository
- Throws:
PortalException
-
deleteRepository
- Throws:
PortalException
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Returns:
- the OSGi service identifier
-
getRepository
- Throws:
PortalException
-
getRepository
- Throws:
PortalException
-
getTypeSettingsProperties
- Throws:
PortalException
-
updateRepository
public static void updateRepository(long repositoryId, String name, String description) throws PortalException - Throws:
PortalException
-
getService
-
setService
-