|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.content.workflow.WorkflowPermission
@StableMinor(version="4.1", sinceVersion="4.0") public class WorkflowPermission
A workflow permission, that associates a principal with a role for a given service instance.
Field Summary | |
---|---|
static int |
PERMISSION_TYPE_ALLOW
Constant to indicate the type of the permission is to allow the principal to be granted the role. |
static int |
PERMISSION_TYPE_DENY
Constant to indicate the type of the permission is to deny the principal to be granted the role. |
Constructor Summary | |
---|---|
WorkflowPermission()
|
Method Summary | |
---|---|
void |
deserialize(Node workflowPermissionNode)
Deserializes this permission's attributes from the given node. |
String |
getPrincipalId()
Returns the identifier of the principal this permission instance is granting a role. |
String |
getRole()
Returns the role this permission instance is granting. |
String |
getServiceInstanceId()
Returns the identifier of the service instance this permission applies to. |
int |
getType()
Returns the type of this permission. |
String |
getWorkflowId()
Returns the identifier of the workflow this permission applies to. |
void |
serialize(OutputStream stream)
Serializes this permission through the given stream. |
void |
setPrincipalId(String principalId)
Sets the identifier of the principal this permission instance is granting a role. |
void |
setRole(String role)
Sets the role this permission instance is granting. |
void |
setServiceInstanceId(String serviceInstanceId)
Sets the identifier of the service instance this permission applies to. |
void |
setType(int type)
Sets the type of this permission. |
void |
setWorkflowId(String workflowId)
Sets the workflow this permission applies to. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int PERMISSION_TYPE_ALLOW
public static final int PERMISSION_TYPE_DENY
Constructor Detail |
---|
public WorkflowPermission()
Method Detail |
---|
public String getPrincipalId()
public void setPrincipalId(String principalId)
principalId
- the value to set.public String getRole()
public void setRole(String role)
role
- the role identifier.public String getServiceInstanceId()
public void setServiceInstanceId(String serviceInstanceId)
serviceInstanceId
- the service instance identifier.public String getWorkflowId()
public void setWorkflowId(String workflowId)
workflowId
- the workflow's identifier.public int getType()
public void setType(int type)
type
- the type to set. One of the PERMISSION_TYPE_*
constants in this class.public void serialize(OutputStream stream) throws IOException
stream
- the stream.
IOException
- if an I/O exception occurs while streaming.public void deserialize(Node workflowPermissionNode) throws PortalException
workflowPermissionNode
- the node.
PortalException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |