public final class ActionPermissionExecutionContext extends Object implements PermissionExecutionContext
ActionPermissionRule
.Constructor and Description |
---|
ActionPermissionExecutionContext() |
ActionPermissionExecutionContext(String serviceName,
com.onwbp.adaptation.Adaptation adaptation,
com.orchestranetworks.service.Session session,
com.orchestranetworks.schema.SchemaNode node) |
Modifier and Type | Method and Description |
---|---|
com.onwbp.adaptation.Adaptation |
getAdaptation()
Returns the
Adaptation . |
com.orchestranetworks.service.ActionPermission |
getDefaultPermission()
Returns the default
ActionPermission which will be used in
case of an exception or no rule configured for the given service. |
com.orchestranetworks.schema.SchemaNode |
getSchemaNode()
Returns the
SchemaNode . |
String |
getServiceName()
Returns the name of service.
|
com.orchestranetworks.service.Session |
getSession()
Returns the
Session . |
void |
setAdaptation(com.onwbp.adaptation.Adaptation adaptation)
Defines the
Adaptation . |
void |
setDefaultPermission(com.orchestranetworks.service.ActionPermission defaultPermission)
Defines the default
ActionPermission which will be used in
case of an exception or no rule configured for the given service. |
void |
setSchemaNode(com.orchestranetworks.schema.SchemaNode node)
Defines the
SchemaNode . |
void |
setServiceName(String serviceName)
Defines the service name.
|
void |
setSession(com.orchestranetworks.service.Session session)
Defines the
Session . |
public ActionPermissionExecutionContext(String serviceName, com.onwbp.adaptation.Adaptation adaptation, com.orchestranetworks.service.Session session, com.orchestranetworks.schema.SchemaNode node)
public ActionPermissionExecutionContext()
public String getServiceName()
public com.orchestranetworks.schema.SchemaNode getSchemaNode()
SchemaNode
.getSchemaNode
in interface PermissionExecutionContext
public com.onwbp.adaptation.Adaptation getAdaptation()
Adaptation
.getAdaptation
in interface PermissionExecutionContext
public com.orchestranetworks.service.Session getSession()
Session
.getSession
in interface PermissionExecutionContext
public com.orchestranetworks.service.ActionPermission getDefaultPermission()
ActionPermission
which will be used in
case of an exception or no rule configured for the given service.public void setSchemaNode(com.orchestranetworks.schema.SchemaNode node)
SchemaNode
.public void setAdaptation(com.onwbp.adaptation.Adaptation adaptation)
Adaptation
.public void setSession(com.orchestranetworks.service.Session session)
Session
.public void setServiceName(String serviceName)
public void setDefaultPermission(com.orchestranetworks.service.ActionPermission defaultPermission)
ActionPermission
which will be used in
case of an exception or no rule configured for the given service.