public interface ACLFileManager
Modifier and Type | Method and Description |
---|---|
default void |
addListener(ACLFileManagerListener listener)
Receive notification of changes
|
boolean |
deletePolicyFile(java.lang.String fileName)
Delete a policy file
|
boolean |
existsPolicyFile(java.lang.String file) |
AclPolicyFile |
getAclPolicy(java.lang.String fileName)
Retrieve a system policy
|
java.lang.String |
getPolicyFileContents(java.lang.String fileName) |
com.dtolabs.rundeck.core.authorization.providers.BaseValidator |
getValidator() |
java.util.List<java.lang.String> |
listStoredPolicyFiles()
List the system aclpolicy file names, not including the dir path
|
long |
loadPolicyFileContents(java.lang.String fileName,
java.io.OutputStream outputStream)
Load content to output stream
|
default void |
removeListener(ACLFileManagerListener listener)
Remove a listener
|
long |
storePolicyFile(java.lang.String fileName,
java.io.InputStream input)
Store a system policy file
|
long |
storePolicyFileContents(java.lang.String fileName,
java.lang.String fileText)
Store a system policy file
|
default com.dtolabs.rundeck.core.authorization.RuleSetValidation<com.dtolabs.rundeck.core.authorization.providers.PolicyCollection> |
validatePolicyFile(java.lang.String fname) |
com.dtolabs.rundeck.core.authorization.providers.BaseValidator getValidator()
default void addListener(ACLFileManagerListener listener)
listener
- default void removeListener(ACLFileManagerListener listener)
listener
- long storePolicyFile(java.lang.String fileName, java.io.InputStream input) throws java.io.IOException
fileName
- name without pathinput
- input streamjava.io.IOException
boolean deletePolicyFile(java.lang.String fileName) throws java.io.IOException
java.io.IOException
long storePolicyFileContents(java.lang.String fileName, java.lang.String fileText) throws java.io.IOException
fileName
- name without pathfileText
- contentsjava.io.IOException
AclPolicyFile getAclPolicy(java.lang.String fileName)
fileName
- name without pathjava.lang.String getPolicyFileContents(java.lang.String fileName) throws java.io.IOException
fileName
- name of policy file, without pathjava.io.IOException
long loadPolicyFileContents(java.lang.String fileName, java.io.OutputStream outputStream) throws java.io.IOException
fileName
- name of policy file, without pathjava.io.IOException
boolean existsPolicyFile(java.lang.String file)
file
- name without pathdefault com.dtolabs.rundeck.core.authorization.RuleSetValidation<com.dtolabs.rundeck.core.authorization.providers.PolicyCollection> validatePolicyFile(java.lang.String fname) throws java.io.IOException
java.io.IOException
java.util.List<java.lang.String> listStoredPolicyFiles()