|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bea.ales.management.AbstractPolicy
Base class of AuthorizationPolicy and MembershipRule. It abstracts all common properties for an ALES policy. Users should not inherit from this class to implement your own policies.
Field Summary | |
static java.util.List |
builtinDecls
|
Method Summary | |
void |
addResource(Resource resource)
Add a resource to the policy. |
void |
addResources(java.util.List resources)
Add a list of resources to the policy |
void |
addSubject(java.lang.Object subject)
Add a subject to the policy. |
void |
addSubjects(java.util.List subjects)
Add a list of subjects to the policy. |
java.lang.String |
getConstraint()
Get the constraint of the policy. if the policy has no constraint, null will be return. |
User |
getDelegator()
Get the delegator. |
java.lang.String |
getDelegatorString()
Get the name of delegator. |
java.lang.String |
getDescription()
Get the description of the policy |
java.lang.String |
getDisplayName()
Get the display name of the policy |
PolicyEffectType |
getEffect()
Get the effect of the policy. |
java.lang.String |
getHtmlSourceOfResources()
Deprecated. |
java.lang.String |
getHtmlSourceOfSubjects()
Deprecated. |
java.util.List |
getResources()
Get all resources of the policy. |
java.util.List |
getSubjects()
Get all subjects of the policy. |
void |
removeResource(Resource resource)
Remove a resource from the policy. |
void |
removeResources(java.util.List resources)
Remove resources from the policy. |
void |
removeSubject(java.lang.Object subject)
Remove a subject from the policy. |
void |
removeSubjects(java.util.List subjects)
Remove subjects from the policy. |
void |
setConstraint(java.lang.String constraint)
Set the constrain to the policy. |
void |
setDelegator(User delegator)
Set the delegator of the policy. |
void |
setDescription(java.lang.String description)
Set the description of the policy |
void |
setDisplayName(java.lang.String displayName)
Set the display name of the policy |
void |
setEffect(PolicyEffectType effect)
Set the effect of the policy. |
void |
setResources(java.util.List resources)
Set resources to the policy. |
void |
setSubjects(java.util.List subjects)
Set subjects of the policy. |
abstract java.lang.String |
toScopedString()
Converts the policy to a scoped string value. |
abstract java.lang.String |
toString()
Converts the policy to a string value. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final java.util.List builtinDecls
Method Detail |
public PolicyEffectType getEffect()
public void setEffect(PolicyEffectType effect) throws java.lang.IllegalArgumentException, ManagementException
effect
- desired effect of this policy. This method only accepts
grant or deny effects. To set delegate effect, use setDelegator method.public java.util.List getResources()
Resource
.public void setResources(java.util.List resources) throws java.lang.IllegalArgumentException, ManagementException
resources
- list of resources as Resource
.Resource
.public void addResources(java.util.List resources) throws java.lang.IllegalArgumentException, ManagementException
resources
- list of resources as Resource
.
It can not be null or empty.Resource
public void removeResources(java.util.List resources) throws java.lang.IllegalArgumentException, ManagementException
resources
- list of resources as Resource
to be removed. It can not be null or empty.Resource
public void addResource(Resource resource) throws java.lang.IllegalArgumentException, ManagementException
resource
- the resource to be added.public void removeResource(Resource resource) throws java.lang.IllegalArgumentException, ManagementException
resource
- the resource to be removed.public java.util.List getSubjects()
User
, Group
or com.bea.ales.management.RBAC_Role
public void setSubjects(java.util.List subjects) throws java.lang.IllegalArgumentException, ManagementException
subjects
- list of subjects. The type of elements can be
User
, Group
or
Role
. But all elements in 'subjects' list must
have the same type.public void addSubjects(java.util.List subjects) throws java.lang.IllegalArgumentException, ManagementException
subjects
- List of subjects. The type of elements can be
User
, Group
or
Role
.public void removeSubjects(java.util.List subjects) throws java.lang.IllegalArgumentException, ManagementException
subjects
- List of subjects to be removed. The type of elements can be
User
, Group
or
Role
.public void addSubject(java.lang.Object subject) throws java.lang.IllegalArgumentException, ManagementException
subject
- the subject to be added. The type of the subject can be
User
, Group
or
Role
.public void removeSubject(java.lang.Object subject) throws java.lang.IllegalArgumentException, ManagementException
subject
- the subject to be removed. The type of subject can be
User
, Group
or
Role
.public User getDelegator() throws java.lang.IllegalStateException
public java.lang.String getDelegatorString()
public void setDelegator(User delegator) throws java.lang.IllegalStateException, java.lang.IllegalArgumentException, ManagementException
delegator
- delegator to be set.public java.lang.String getConstraint()
public void setConstraint(java.lang.String constraint) throws ManagementException
constraint
- the constraint to be set. If it is null or empty string, the existing constraint will be removed.public abstract java.lang.String toString() throws java.lang.IllegalStateException
public abstract java.lang.String toScopedString() throws java.lang.IllegalStateException
public void setDisplayName(java.lang.String displayName) throws ManagementException
displayName
- public java.lang.String getDisplayName() throws ManagementException
public void setDescription(java.lang.String description) throws ManagementException
description
- public java.lang.String getDescription() throws ManagementException
public java.lang.String getHtmlSourceOfResources()
public java.lang.String getHtmlSourceOfSubjects()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |