@ProviderType public class KaleoDraftDefinitionLocalServiceWrapper extends java.lang.Object implements KaleoDraftDefinitionLocalService, com.liferay.portal.kernel.service.ServiceWrapper<KaleoDraftDefinitionLocalService>
KaleoDraftDefinitionLocalService
.KaleoDraftDefinitionLocalService
Constructor and Description |
---|
KaleoDraftDefinitionLocalServiceWrapper(KaleoDraftDefinitionLocalService kaleoDraftDefinitionLocalService) |
Modifier and Type | Method and Description |
---|---|
KaleoDraftDefinition |
addKaleoDraftDefinition(KaleoDraftDefinition kaleoDraftDefinition)
Adds the kaleo draft definition to the database.
|
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.
|
KaleoDraftDefinition |
createKaleoDraftDefinition(long kaleoDraftDefinitionId)
Creates a new kaleo draft definition with the primary key.
|
KaleoDraftDefinition |
deleteKaleoDraftDefinition(KaleoDraftDefinition kaleoDraftDefinition)
Deletes the kaleo draft definition from the database.
|
KaleoDraftDefinition |
deleteKaleoDraftDefinition(long kaleoDraftDefinitionId)
Deletes the kaleo draft definition with the primary key from the database.
|
KaleoDraftDefinition |
deleteKaleoDraftDefinition(java.lang.String name,
int version,
int draftVersion,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Deletes the Kaleo draft definition and its resources matching the name,
published version, and draft version.
|
void |
deleteKaleoDraftDefinitions(java.lang.String name,
int version,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Deletes the kaleo draft definition and its resources matching the name
and version.
|
com.liferay.portal.kernel.model.PersistedModel |
deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) |
com.liferay.portal.kernel.dao.orm.DynamicQuery |
dynamicQuery() |
<T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
<T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows.
|
<T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows.
|
long |
dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.
|
long |
dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
com.liferay.portal.kernel.dao.orm.Projection projection)
Returns the number of rows matching the dynamic query.
|
KaleoDraftDefinition |
fetchKaleoDraftDefinition(long kaleoDraftDefinitionId) |
com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery |
getActionableDynamicQuery() |
com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
KaleoDraftDefinition |
getKaleoDraftDefinition(long kaleoDraftDefinitionId)
Returns the kaleo draft definition with the primary key.
|
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(int start,
int end)
Returns a range of all the kaleo draft definitions.
|
java.util.List<KaleoDraftDefinition> |
getKaleoDraftDefinitions(java.lang.String name,
int version,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Returns an ordered range of the Kaleo draft definitions matching the name
and version.
|
int |
getKaleoDraftDefinitionsCount()
Returns the number of kaleo draft definitions.
|
int |
getKaleoDraftDefinitionsCount(java.lang.String name,
int version,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Returns the number of Kaleo draft definition matching the name and
version.
|
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, keywords, and version.
|
int |
getLatestKaleoDraftDefinitionsCount(long companyId,
int version)
Returns the number of Kaleo draft definitions matching the company and
version.
|
int |
getLatestKaleoDraftDefinitionsCount(long companyId,
java.lang.String keywords,
int version)
Returns the number of Kaleo draft definitions matching the company,
keywords, and version.
|
java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
com.liferay.portal.kernel.model.PersistedModel |
getPersistedModel(java.io.Serializable primaryKeyObj) |
KaleoDraftDefinitionLocalService |
getWrappedService() |
KaleoDraftDefinition |
incrementKaleoDraftDefinitionDraftVersion(long userId,
java.lang.String name,
int version,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Adds a Kaleo draft definition with a draft version increment.
|
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(KaleoDraftDefinitionLocalService kaleoDraftDefinitionLocalService) |
KaleoDraftDefinition |
updateKaleoDraftDefinition(KaleoDraftDefinition kaleoDraftDefinition)
Updates the kaleo draft definition in the database or adds it if it does not yet exist.
|
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 KaleoDraftDefinitionLocalServiceWrapper(KaleoDraftDefinitionLocalService kaleoDraftDefinitionLocalService)
public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
getActionableDynamicQuery
in interface KaleoDraftDefinitionLocalService
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
dynamicQuery
in interface KaleoDraftDefinitionLocalService
public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
getIndexableActionableDynamicQuery
in interface KaleoDraftDefinitionLocalService
public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException
deletePersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
deletePersistedModel
in interface KaleoDraftDefinitionLocalService
PortalException
public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
getPersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
getPersistedModel
in interface KaleoDraftDefinitionLocalService
com.liferay.portal.kernel.exception.PortalException
public KaleoDraftDefinition addKaleoDraftDefinition(KaleoDraftDefinition kaleoDraftDefinition)
addKaleoDraftDefinition
in interface KaleoDraftDefinitionLocalService
kaleoDraftDefinition
- the kaleo draft definitionpublic 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 KaleoDraftDefinitionLocalService
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 a portal exception occurredpublic KaleoDraftDefinition createKaleoDraftDefinition(long kaleoDraftDefinitionId)
createKaleoDraftDefinition
in interface KaleoDraftDefinitionLocalService
kaleoDraftDefinitionId
- the primary key for the new kaleo draft definitionpublic KaleoDraftDefinition deleteKaleoDraftDefinition(KaleoDraftDefinition kaleoDraftDefinition) throws com.liferay.portal.kernel.exception.PortalException
deleteKaleoDraftDefinition
in interface KaleoDraftDefinitionLocalService
kaleoDraftDefinition
- the kaleo draft definitionPortalException
public KaleoDraftDefinition deleteKaleoDraftDefinition(java.lang.String name, int version, int draftVersion, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
deleteKaleoDraftDefinition
in interface KaleoDraftDefinitionLocalService
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 a portal exception occurredpublic KaleoDraftDefinition deleteKaleoDraftDefinition(long kaleoDraftDefinitionId) throws com.liferay.portal.kernel.exception.PortalException
deleteKaleoDraftDefinition
in interface KaleoDraftDefinitionLocalService
kaleoDraftDefinitionId
- the primary key of the kaleo draft definitionPortalException
- if a kaleo draft definition with the primary key could not be foundpublic KaleoDraftDefinition fetchKaleoDraftDefinition(long kaleoDraftDefinitionId)
fetchKaleoDraftDefinition
in interface KaleoDraftDefinitionLocalService
public 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 KaleoDraftDefinitionLocalService
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 a portal exception occurredpublic KaleoDraftDefinition getKaleoDraftDefinition(long kaleoDraftDefinitionId) throws com.liferay.portal.kernel.exception.PortalException
getKaleoDraftDefinition
in interface KaleoDraftDefinitionLocalService
kaleoDraftDefinitionId
- the primary key of the kaleo draft definitionPortalException
- if a kaleo draft definition with the primary key could not be foundpublic 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 KaleoDraftDefinitionLocalService
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
foundpublic KaleoDraftDefinition incrementKaleoDraftDefinitionDraftVersion(long userId, java.lang.String name, int version, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
incrementKaleoDraftDefinitionDraftVersion
in interface KaleoDraftDefinitionLocalService
userId
- the primary key of the Kaleo draft definition's
creator/ownername
- 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
deifnition.PortalException
- if a portal exception occurredpublic 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 KaleoDraftDefinitionLocalService
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 Kaleo 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(KaleoDraftDefinition kaleoDraftDefinition)
updateKaleoDraftDefinition
in interface KaleoDraftDefinitionLocalService
kaleoDraftDefinition
- the kaleo draft definitionpublic 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 KaleoDraftDefinitionLocalService
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 int getKaleoDraftDefinitionsCount()
getKaleoDraftDefinitionsCount
in interface KaleoDraftDefinitionLocalService
public int getKaleoDraftDefinitionsCount(java.lang.String name, int version, com.liferay.portal.kernel.service.ServiceContext serviceContext)
getKaleoDraftDefinitionsCount
in interface KaleoDraftDefinitionLocalService
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.public int getLatestKaleoDraftDefinitionsCount(long companyId, int version)
getLatestKaleoDraftDefinitionsCount
in interface KaleoDraftDefinitionLocalService
companyId
- the primary key of the Kaleo draft definition's companyversion
- the Kaleo draft definition's published versionpublic int getLatestKaleoDraftDefinitionsCount(long companyId, java.lang.String keywords, int version)
getLatestKaleoDraftDefinitionsCount
in interface KaleoDraftDefinitionLocalService
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 versionpublic java.lang.String getOSGiServiceIdentifier()
getOSGiServiceIdentifier
in interface KaleoDraftDefinitionLocalService
public <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery
in interface KaleoDraftDefinitionLocalService
dynamicQuery
- the dynamic querypublic <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from com.liferay.portal.workflow.kaleo.designer.model.impl.KaleoDraftDefinitionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
dynamicQuery
in interface KaleoDraftDefinitionLocalService
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)public <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from com.liferay.portal.workflow.kaleo.designer.model.impl.KaleoDraftDefinitionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
dynamicQuery
in interface KaleoDraftDefinitionLocalService
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 (optionally null
)public java.util.List<KaleoDraftDefinition> getKaleoDraftDefinitions(int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from com.liferay.portal.workflow.kaleo.designer.model.impl.KaleoDraftDefinitionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
getKaleoDraftDefinitions
in interface KaleoDraftDefinitionLocalService
start
- the lower bound of the range of kaleo draft definitionsend
- the upper bound of the range of kaleo draft definitions (not inclusive)public java.util.List<KaleoDraftDefinition> getKaleoDraftDefinitions(java.lang.String name, int version, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, com.liferay.portal.kernel.service.ServiceContext serviceContext)
getKaleoDraftDefinitions
in interface KaleoDraftDefinitionLocalService
name
- the Kaleo draft definition's nameversion
- 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
definitionsserviceContext
- the service context to be applied. This can set
guest permissions and group permissions for the Kaleo draft
definition.public java.util.List<KaleoDraftDefinition> getLatestKaleoDraftDefinitions(long companyId, int version, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
getLatestKaleoDraftDefinitions
in interface KaleoDraftDefinitionLocalService
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 Kaleo draft definitions to
return (not inclusive)orderByComparator
- the comparator to order the Kaleo draft
definitionspublic java.util.List<KaleoDraftDefinition> getLatestKaleoDraftDefinitions(long companyId, java.lang.String keywords, int version, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
getLatestKaleoDraftDefinitions
in interface KaleoDraftDefinitionLocalService
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
definitionspublic long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQueryCount
in interface KaleoDraftDefinitionLocalService
dynamicQuery
- the dynamic querypublic long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection)
dynamicQueryCount
in interface KaleoDraftDefinitionLocalService
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the querypublic 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 KaleoDraftDefinitionLocalService
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 portal exception occurredpublic KaleoDraftDefinitionLocalService getWrappedService()
getWrappedService
in interface com.liferay.portal.kernel.service.ServiceWrapper<KaleoDraftDefinitionLocalService>
public void setWrappedService(KaleoDraftDefinitionLocalService kaleoDraftDefinitionLocalService)
setWrappedService
in interface com.liferay.portal.kernel.service.ServiceWrapper<KaleoDraftDefinitionLocalService>