@StableMinor(version="12.3", sinceVersion="4.0") public class WorkflowPermission extends Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
WorkflowPermission() |
Modifier and Type | Method and Description |
---|---|
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.
|
public static final int PERMISSION_TYPE_ALLOW
public static final int PERMISSION_TYPE_DENY
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
LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.