Package lumis.content.workflow
Class ContentWorkflowMetaData
- java.lang.Object
-
- lumis.content.workflow.ContentWorkflowMetaData
-
- All Implemented Interfaces:
Cloneable
@StableMinor(version="14.0", sinceVersion="4.2") public class ContentWorkflowMetaData extends Object implements Cloneable
Value class for a content's workflow metadata.- Since:
- 4.0.0
- Version:
- $Revision: 24476 $ $Date: 2021-04-28 11:28:23 -0300 (Wed, 28 Apr 2021) $
-
-
Constructor Summary
Constructors Constructor Description ContentWorkflowMetaData()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ContentWorkflowMetaData
clone()
Returns a clone of this ContentWorkflowMetaData instance.String
getAssignedTo()
Returns the principal identifier to which the content is assigned to.PrincipalConfig
getAssignedToPrincipal()
Utility method that returns thePrincipalConfig
in current transaction that corresponds to thegetAssignedTo()
stored in this ContentWorkflowMetaData.ContentLocale
getContentLocale()
Utility method that returns theContentLocale
in current transaction that corresponds to thegetContentLocaleId()
stored in this ContentWorkflowMetaData.String
getContentLocaleId()
The identifier of theContentLocale
this workflow metadata belongs to.String
getMetaDataId()
Deprecated.Since 4.2.0, replaced bygetContentLocaleId()
.WorkflowStateConfig
getState()
Utility method that returns theWorkflowStateConfig
that corresponds to thegetContentLocaleId()
andgetStateId()
stored in this ContentWorkflowMetaData, based on the current transaction.String
getStateId()
Returns the identifier of the workflow state the content is currently in.String
getWorkflowMetaDataId()
Returns the identifier of this workflow metadata.void
setAssignedTo(String assignedTo)
Sets the principal identifier to which the content is assigned to.void
setContentLocaleId(String contentLocaleId)
Sets theContentLocale
this workflow metadata belongs to.void
setMetaDataId(String metaDataId)
Deprecated.Since 4.2.0, replaced bysetContentLocaleId(String)
.void
setStateId(String stateId)
Sets the workflow state the content is currently in.void
setWorkflowMetaDataId(String workflowMetaDataId)
Sets the identifier for this workflow metadata.
-
-
-
Method Detail
-
getContentLocaleId
public String getContentLocaleId()
The identifier of theContentLocale
this workflow metadata belongs to.- Returns:
- the content locale identifier.
- Since:
- 4.2.0
-
setContentLocaleId
public void setContentLocaleId(String contentLocaleId)
Sets theContentLocale
this workflow metadata belongs to.- Parameters:
contentLocaleId
- the content locale identifier.- Since:
- 4.2.0
-
getMetaDataId
public String getMetaDataId()
Deprecated.Since 4.2.0, replaced bygetContentLocaleId()
.The metadata identifier.- Returns:
- the metadata identifier.
- See Also:
MetaDataConfig
-
setMetaDataId
@Deprecated public void setMetaDataId(String metaDataId)
Deprecated.Since 4.2.0, replaced bysetContentLocaleId(String)
.Sets the metadata identifier.- Parameters:
metaDataId
- the metadata identifier.- See Also:
getContentLocaleId()
-
getWorkflowMetaDataId
public String getWorkflowMetaDataId()
Returns the identifier of this workflow metadata.- Returns:
- the identifier of this workflow metadata.
-
setWorkflowMetaDataId
public void setWorkflowMetaDataId(String workflowMetaDataId)
Sets the identifier for this workflow metadata.- Parameters:
workflowMetaDataId
- the identifier to set.
-
getAssignedTo
public String getAssignedTo()
Returns the principal identifier to which the content is assigned to. Returnsnull
if the content is not assigned to any principal.- Returns:
- the principal identifier to which the content is assigned to, or
null
if the content is not assigned to any principal.
-
setAssignedTo
public void setAssignedTo(String assignedTo)
Sets the principal identifier to which the content is assigned to.- Parameters:
assignedTo
- the principal identifier, ornull
to leave the content unassigned.
-
getStateId
public String getStateId()
Returns the identifier of the workflow state the content is currently in.- Returns:
- the identifier of the workflow state the content is currently in.
-
setStateId
public void setStateId(String stateId)
Sets the workflow state the content is currently in.- Parameters:
stateId
- the workflow state's identifier.
-
getContentLocale
public ContentLocale getContentLocale()
Utility method that returns theContentLocale
in current transaction that corresponds to thegetContentLocaleId()
stored in this ContentWorkflowMetaData.- Returns:
- the
ContentLocale
instance or,null
ifgetContentLocaleId()
isnull
. - Since:
- 10.0.0
-
getState
public WorkflowStateConfig getState()
Utility method that returns theWorkflowStateConfig
that corresponds to thegetContentLocaleId()
andgetStateId()
stored in this ContentWorkflowMetaData, based on the current transaction.- Returns:
- the
WorkflowStateConfig
instance, ornull
ifgetStateId()
isnull
. - Since:
- 10.0.0
-
getAssignedToPrincipal
public PrincipalConfig getAssignedToPrincipal()
Utility method that returns thePrincipalConfig
in current transaction that corresponds to thegetAssignedTo()
stored in this ContentWorkflowMetaData.- Returns:
- the
PrincipalConfig
instance, ornull
ifgetAssignedTo()
isnull
. - Since:
- 10.0.0
-
clone
public ContentWorkflowMetaData clone()
Returns a clone of this ContentWorkflowMetaData instance.
-
-