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


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.util.regex.Pattern> getGroupPatterns()
          Return regexes for group matching
 java.util.Set<java.lang.String> getGroups()
          Return a list of group objects associated with this policy.
 java.util.Set<java.util.regex.Pattern> getUsernamePatterns()
          Return regexes for username matching
 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.

Returns:
usernames

getUsernamePatterns

java.util.Set<java.util.regex.Pattern> getUsernamePatterns()
Return regexes for username matching

Returns:

getGroups

java.util.Set<java.lang.String> getGroups()
Return a list of group objects associated with this policy.

Returns:
groups

getGroupPatterns

java.util.Set<java.util.regex.Pattern> getGroupPatterns()
Return regexes for group matching

Returns:

getEnvironment

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