com.dtolabs.rundeck.core.authorization.providers
Interface Policy

All Known Implementing Classes:
PolicyNode

public interface Policy

Policy is contains a set of AclContext with corresponding usernames and/or groups associated with the each Acl. The policy is a reference to a phycial policy stored on persistantly.


Method Summary
 AclContext getContext()
          Return the AclContext for this policy representation.
 EnvironmentalContext getEnvironment()
          Return the environmental context to test the Policy against an input environment
 java.util.Set<java.lang.Object> getGroups()
          Return a list of group objects associated with this policy.
 java.util.Set<java.lang.String> getUsernames()
          Return a list of usernames as strings associated with this policy.
 

Method Detail

getContext

AclContext getContext()
Return the AclContext for this policy representation.

Returns:
context

getUsernames

java.util.Set<java.lang.String> getUsernames()
Return a list of usernames as strings associated with this policy. The backing set should rely on the natural sorting order of HashSet otherwise unexpect behavior will occur. See Collections.disjoint(java.util.Collection, java.util.Collection) if you need to muck with the ordering.

Returns:
usernames

getGroups

java.util.Set<java.lang.Object> getGroups()
Return a list of group objects associated with this policy. The backing set should rely on the natural sorting order of HashSet otherwise unexpect behavior will occur. See Collections.disjoint(java.util.Collection, java.util.Collection) if you need to muck with the ordering.

Returns:
groups

getEnvironment

EnvironmentalContext getEnvironment()
Return the environmental context to test the Policy against an input environment