public class DelegateACLFileManager extends java.lang.Object implements ACLFileManager
Constructor and Description |
---|
DelegateACLFileManager() |
Modifier and Type | Method and Description |
---|---|
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
|
protected ACLFileManager |
getDelegate() |
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
|
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
|
com.dtolabs.rundeck.core.authorization.RuleSetValidation<com.dtolabs.rundeck.core.authorization.providers.PolicyCollection> |
validatePolicyFile(java.lang.String fname) |
public com.dtolabs.rundeck.core.authorization.providers.BaseValidator getValidator()
getValidator
in interface ACLFileManager
public void addListener(ACLFileManagerListener listener)
ACLFileManager
addListener
in interface ACLFileManager
public void removeListener(ACLFileManagerListener listener)
ACLFileManager
removeListener
in interface ACLFileManager
public long storePolicyFile(java.lang.String fileName, java.io.InputStream input) throws java.io.IOException
ACLFileManager
storePolicyFile
in interface ACLFileManager
fileName
- name without pathinput
- input streamjava.io.IOException
public boolean deletePolicyFile(java.lang.String fileName) throws java.io.IOException
ACLFileManager
deletePolicyFile
in interface ACLFileManager
java.io.IOException
public long storePolicyFileContents(java.lang.String fileName, java.lang.String fileText) throws java.io.IOException
ACLFileManager
storePolicyFileContents
in interface ACLFileManager
fileName
- name without pathfileText
- contentsjava.io.IOException
public AclPolicyFile getAclPolicy(java.lang.String fileName)
ACLFileManager
getAclPolicy
in interface ACLFileManager
fileName
- name without pathpublic java.lang.String getPolicyFileContents(java.lang.String fileName) throws java.io.IOException
getPolicyFileContents
in interface ACLFileManager
fileName
- name of policy file, without pathjava.io.IOException
public long loadPolicyFileContents(java.lang.String fileName, java.io.OutputStream outputStream) throws java.io.IOException
ACLFileManager
loadPolicyFileContents
in interface ACLFileManager
fileName
- name of policy file, without pathjava.io.IOException
public boolean existsPolicyFile(java.lang.String file)
existsPolicyFile
in interface ACLFileManager
file
- name without pathpublic com.dtolabs.rundeck.core.authorization.RuleSetValidation<com.dtolabs.rundeck.core.authorization.providers.PolicyCollection> validatePolicyFile(java.lang.String fname) throws java.io.IOException
validatePolicyFile
in interface ACLFileManager
java.io.IOException
public java.util.List<java.lang.String> listStoredPolicyFiles()
ACLFileManager
listStoredPolicyFiles
in interface ACLFileManager
protected ACLFileManager getDelegate()