|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ace.moab.api.acl.ACL
public class ACL
This class represents the complete access control list for a given object.
This is a collection of ACLRule
classes that describe the rules of
access to an object inside of Moab.
Constructor Summary | |
---|---|
ACL()
Initializes a new ACL class with no behavior. |
|
ACL(java.util.Collection<ACLRule> acl)
Initializes a new ACL class with the collection of ACLRule
classes describing the ACL's behavior. |
Method Summary | |
---|---|
void |
addACLRule(ACLRule aclObject)
Adds an ACLRule to the collection describing access. |
void |
clearACL()
Removes all rules from the access control list. |
int |
compareTo(ACL o)
|
boolean |
contains(ACLRule aclObject)
Returns true if the access control list contains the ACLRule rule. |
boolean |
equals(java.lang.Object o)
|
java.util.Set<java.lang.String> |
getAccountsInACL()
Returns a set of account names in alphabetical order that are found in this ACL. |
java.util.Set<java.lang.String> |
getClassesInACL()
Returns a set of user names in alphabetical order that are found in this ACL. |
java.util.Set<java.lang.String> |
getGroupsInACL()
Returns a set of group names in alphabetical order that are found in this ACL. |
java.util.Set<java.lang.String> |
getQOSInACL()
Returns a set of QoS names in alphabetical order that are found in this ACL. |
java.util.Set<java.lang.String> |
getUsersInACL()
Returns a set of user names in alphabetical order that are found in this ACL. |
boolean |
hasAccess(Credential cred)
Check to see if the user represented by the Credential object parameter has access to the this ACL object (or the object that owns this ACL). |
java.util.Iterator<ACLRule> |
iterator()
|
void |
removeACLRule(ACLRule aclObject)
Removes a specified ACLRule from the collection describing access. |
int |
size()
Returns the number of rules inside the access control list. |
java.lang.String |
toMoabVPCCommandString()
Builds a string representation of the VPC ACL for use in Moab commands. |
java.util.Set<ACLRule> |
toSet()
Returns a set of the rules describing the access control list. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ACL()
public ACL(java.util.Collection<ACLRule> acl)
ACLRule
classes describing the ACL's behavior.
acl
- the collection describing the ACL's behavior.Method Detail |
---|
public void addACLRule(ACLRule aclObject)
aclObject
- the ACLRule rule ot add.public void removeACLRule(ACLRule aclObject)
Removes a specified ACLRule from the collection describing access.
If the ACLRule is not part of the ACL, the remove request is ignored.
aclObject
- the ACLRule rule to remove.public void clearACL()
public boolean contains(ACLRule aclObject)
aclObject
- the rule to check if in access control list.
public int size()
public java.util.Set<ACLRule> toSet()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toMoabVPCCommandString()
public java.util.Iterator<ACLRule> iterator()
iterator
in interface java.lang.Iterable<ACLRule>
public java.util.Set<java.lang.String> getUsersInACL()
Returns a set of user names in alphabetical order that are found in this ACL.
If no users are found in the ACL, an empty set is returned.
public java.util.Set<java.lang.String> getClassesInACL()
Returns a set of user names in alphabetical order that are found in this ACL.
If no users are found in the ACL, an empty set is returned.
public java.util.Set<java.lang.String> getAccountsInACL()
Returns a set of account names in alphabetical order that are found in this ACL.
If no accounts are found in the ACL, an empty set is returned.
public java.util.Set<java.lang.String> getQOSInACL()
Returns a set of QoS names in alphabetical order that are found in this ACL.
If no QoSes are found in the ACL, an empty set is returned.
public java.util.Set<java.lang.String> getGroupsInACL()
Returns a set of group names in alphabetical order that are found in this ACL.
If no groups are found in the ACL, an empty set is returned.
public boolean hasAccess(Credential cred)
cred
- The current user credential
public int compareTo(ACL o)
compareTo
in interface java.lang.Comparable<ACL>
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |