public class Capability
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
Capability.Type
Enum for capability types
|
Constructor and Description |
---|
Capability()
Default constructor for eclipse-link.
|
Capability(java.lang.String actionName,
java.lang.String resourceName,
boolean scoped)
Constructor for the Capability
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getActionName()
Getter for the action name.
|
java.lang.String |
getCapabilityId()
getter for capability id
|
java.util.List |
getDeniedAttributes() |
java.lang.String |
getOESApplicationRole()
getter for the OES application role.
|
java.lang.String |
getResourceName()
getter for resource name
|
java.lang.String |
getType() |
int |
hashCode() |
boolean |
isAssociatedWithPolicy() |
boolean |
isSame(PolicyConstants.Resources resourceType,
PolicyConstants.Actions action) |
boolean |
isScoped()
getter for scoped.
|
boolean |
isVisible() |
void |
setActionName(java.lang.String actionName)
setter for actionName
|
void |
setAssociatedWithPolicy(boolean associatedWithPolicy) |
void |
setCapabilityId(java.lang.String capabilityId)
setter for capability Id
|
void |
setDeniedAttributes(java.util.List deniedAttributes) |
void |
setOESApplicationRoleName(java.lang.String OESApplicationRoleName) |
void |
setResourceName(java.lang.String resourceName)
setter for resource name
|
void |
setScoped(boolean scoped)
setter for scoped
|
void |
setType(java.lang.String type) |
void |
setVisible(boolean visible) |
java.lang.String |
toString() |
public Capability()
public Capability(java.lang.String actionName, java.lang.String resourceName, boolean scoped)
actionName
- the permission nameresourceName
- the entity namescoped
- if the capability is scoped or not.public final java.lang.String getActionName()
public java.lang.String getOESApplicationRole()
public java.lang.String getCapabilityId()
public void setCapabilityId(java.lang.String capabilityId)
capabilityId
- public java.lang.String getResourceName()
public void setResourceName(java.lang.String resourceName)
resourceName
- public void setActionName(java.lang.String actionName)
actionName
- public boolean isScoped()
public void setScoped(boolean scoped)
scoped
- public boolean isSame(PolicyConstants.Resources resourceType, PolicyConstants.Actions action)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public void setOESApplicationRoleName(java.lang.String OESApplicationRoleName)
public void setDeniedAttributes(java.util.List deniedAttributes)
public java.util.List getDeniedAttributes()
public void setAssociatedWithPolicy(boolean associatedWithPolicy)
public boolean isAssociatedWithPolicy()
public java.lang.String getType()
public void setType(java.lang.String type)
public boolean isVisible()
public void setVisible(boolean visible)