@ProviderType public class KaleoDraftDefinitionServiceWrapper extends java.lang.Object implements KaleoDraftDefinitionService, com.liferay.portal.kernel.service.ServiceWrapper<KaleoDraftDefinitionService>
KaleoDraftDefinitionService
.KaleoDraftDefinitionService
Constructor and Description |
---|
KaleoDraftDefinitionServiceWrapper(KaleoDraftDefinitionService kaleoDraftDefinitionService) |
Modifier and Type | Method and Description |
---|---|
KaleoDraftDefinition |
addKaleoDraftDefinition(long userId,
long groupId,
java.lang.String name,
java.util.Map<java.util.Locale,java.lang.String> titleMap,
java.lang.String content,
int version,
int draftVersion,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Adds a Kaleo draft definition.
|
void |
deleteKaleoDraftDefinitions(java.lang.String name,
int version,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Deletes the Kaleo draft definition and its resources.
|
KaleoDraftDefinition |
getKaleoDraftDefinition(java.lang.String name,
int version,
int draftVersion,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Returns the Kaleo draft definition matching the name, published version,
and draft version.
|
java.util.List<KaleoDraftDefinition> |
getKaleoDraftDefinitions()
Returns the Kaleo draft definitions.
|
KaleoDraftDefinition |
getLatestKaleoDraftDefinition(java.lang.String name,
int version,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Returns the latest Kaleo draft definition matching the name and version.
|
java.util.List<KaleoDraftDefinition> |
getLatestKaleoDraftDefinitions(long companyId,
int version,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns an ordered range of the latest Kaleo draft definitions matching
the company and version.
|
java.util.List<KaleoDraftDefinition> |
getLatestKaleoDraftDefinitions(long companyId,
java.lang.String keywords,
int version,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns an ordered range of the latest Kaleo draft definitions matching
the company, version, and keywords.
|
java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
KaleoDraftDefinitionService |
getWrappedService() |
KaleoDraftDefinition |
publishKaleoDraftDefinition(long userId,
long groupId,
java.lang.String name,
java.util.Map<java.util.Locale,java.lang.String> titleMap,
java.lang.String content,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Publishes the Kaleo draft definition.
|
void |
setWrappedService(KaleoDraftDefinitionService kaleoDraftDefinitionService) |
KaleoDraftDefinition |
updateKaleoDraftDefinition(long userId,
java.lang.String name,
java.util.Map<java.util.Locale,java.lang.String> titleMap,
java.lang.String content,
int version,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Updates the Kaleo draft definition by replacing its content and title and
incrementing the draft version.
|
public KaleoDraftDefinitionServiceWrapper(KaleoDraftDefinitionService kaleoDraftDefinitionService)
public KaleoDraftDefinition addKaleoDraftDefinition(long userId, long groupId, java.lang.String name, java.util.Map<java.util.Locale,java.lang.String> titleMap, java.lang.String content, int version, int draftVersion, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
addKaleoDraftDefinition
in interface KaleoDraftDefinitionService
userId
- the primary key of the Kaleo draft definition's
creator/ownergroupId
- the primary key of the Kaleo draft definition's groupname
- the Kaleo draft definition's nametitleMap
- the Kaleo draft definition's locales and localized
titlescontent
- the content wrapped in XMLversion
- the Kaleo draft definition's published versiondraftVersion
- the Kaleo draft definition's draft versionserviceContext
- the service context to be applied. This can set
guest permissions and group permissions for the Kaleo draft
definition.PortalException
- if the user did not have the required permissions
to create the Kaleo draft definition or if a portal exception
occurredpublic KaleoDraftDefinition getKaleoDraftDefinition(java.lang.String name, int version, int draftVersion, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
getKaleoDraftDefinition
in interface KaleoDraftDefinitionService
name
- the Kaleo draft definition's nameversion
- the Kaleo draft definition's published versiondraftVersion
- the Kaleo draft definition's draft versionserviceContext
- the service context to be applied. This can set
guest permissions and group permissions for the Kaleo draft
definition.PortalException
- if the user did not have the required permissions
to access the Kaleo draft definition or if a portal exception
occurredpublic KaleoDraftDefinition getLatestKaleoDraftDefinition(java.lang.String name, int version, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
getLatestKaleoDraftDefinition
in interface KaleoDraftDefinitionService
name
- the Kaleo draft definition's nameversion
- the Kaleo draft definition's published versionserviceContext
- the service context to be applied. This can set
guest permissions and group permissions for the Kaleo draft
definition.PortalException
- if a matching kaleo draft definition could not be
found or if the user did not have the required permissions to
access the Kaleo draft definitionpublic KaleoDraftDefinition publishKaleoDraftDefinition(long userId, long groupId, java.lang.String name, java.util.Map<java.util.Locale,java.lang.String> titleMap, java.lang.String content, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
publishKaleoDraftDefinition
in interface KaleoDraftDefinitionService
userId
- the primary key of the Kaleo draft definition's
creator/ownergroupId
- the primary key of the Kaleo draft definition's groupname
- the Kaleo draft definition's nametitleMap
- the Kaleo draft definition's locales and localized
titlescontent
- the content wrapped in XMLserviceContext
- the service context to be applied. This can set
guest permissions and group permissions for the Kkaleo draft
definition.PortalException
- if the user did not have the required permissions
to publish the Kaleo draft definition or if a portal exception
occurredpublic KaleoDraftDefinition updateKaleoDraftDefinition(long userId, java.lang.String name, java.util.Map<java.util.Locale,java.lang.String> titleMap, java.lang.String content, int version, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
updateKaleoDraftDefinition
in interface KaleoDraftDefinitionService
userId
- the primary key of the Kaleo draft definition's
creator/ownername
- the Kaleo draft definition's nametitleMap
- the Kaleo draft definition's locales and localized
titlescontent
- the content wrapped in XMLversion
- the Kaleo draft definition's published versionserviceContext
- the service context to be applied. This can set
guest permissions and group permissions for the Kaleo draft
definition.PortalException
- if the user did not have the required permissions
to update the Kaleo draft definition or if a portal exception
occurredpublic java.lang.String getOSGiServiceIdentifier()
getOSGiServiceIdentifier
in interface KaleoDraftDefinitionService
public java.util.List<KaleoDraftDefinition> getKaleoDraftDefinitions() throws com.liferay.portal.kernel.exception.PortalException
getKaleoDraftDefinitions
in interface KaleoDraftDefinitionService
PortalException
- if a portal exception occurredpublic java.util.List<KaleoDraftDefinition> getLatestKaleoDraftDefinitions(long companyId, int version, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.PortalException
getLatestKaleoDraftDefinitions
in interface KaleoDraftDefinitionService
companyId
- the primary key of the Kaleo draft definition's companyversion
- the Kaleo draft definition's published versionstart
- the lower bound of the range of Kaleo draft definitions to
returnend
- the upper bound of the range of Kkaleo draft definitions to
return (not inclusive)orderByComparator
- the comparator to order the Kaleo draft
definitionsPortalException
- if a portal exception occurredpublic java.util.List<KaleoDraftDefinition> getLatestKaleoDraftDefinitions(long companyId, java.lang.String keywords, int version, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.PortalException
getLatestKaleoDraftDefinitions
in interface KaleoDraftDefinitionService
companyId
- the primary key of the Kaleo draft definition's companykeywords
- the Kaleo draft definition's name or titleversion
- the Kaleo draft definition's published versionstart
- the lower bound of the range of Kaleo draft definitions to
returnend
- the upper bound of the range of Kaleo draft definitions to
return (not inclusive)orderByComparator
- the comparator to order the Kaleo draft
definitionsPortalException
- if a portal exception occurredpublic void deleteKaleoDraftDefinitions(java.lang.String name, int version, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
deleteKaleoDraftDefinitions
in interface KaleoDraftDefinitionService
name
- the Kaleo draft definition's nameversion
- the Kaleo draft definition's published versionserviceContext
- the service context to be applied. This can set
guest permissions and group permissions for the Kaleo draft
definition.PortalException
- if the user did not have the required permissions
to delete the Kaleo draft definition or if a portal exception
occurredpublic KaleoDraftDefinitionService getWrappedService()
getWrappedService
in interface com.liferay.portal.kernel.service.ServiceWrapper<KaleoDraftDefinitionService>
public void setWrappedService(KaleoDraftDefinitionService kaleoDraftDefinitionService)
setWrappedService
in interface com.liferay.portal.kernel.service.ServiceWrapper<KaleoDraftDefinitionService>