Package org.rundeck.app.acl
Interface ACLFileManager
-
- All Known Implementing Classes:
ACLStorageFileManager,DelegateACLFileManager,ListenableACLFileManager
public interface ACLFileManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidaddListener(ACLFileManagerListener listener)Receive notification of changesbooleandeletePolicyFile(java.lang.String fileName)Delete a policy filebooleanexistsPolicyFile(java.lang.String file)AclPolicyFilegetAclPolicy(java.lang.String fileName)Retrieve a system policyjava.lang.StringgetPolicyFileContents(java.lang.String fileName)com.dtolabs.rundeck.core.authorization.providers.BaseValidatorgetValidator()java.util.List<java.lang.String>listStoredPolicyFiles()List the system aclpolicy file names, not including the dir pathlongloadPolicyFileContents(java.lang.String fileName, java.io.OutputStream outputStream)Load content to output streamdefault voidremoveListener(ACLFileManagerListener listener)Remove a listenerlongstorePolicyFile(java.lang.String fileName, java.io.InputStream input)Store a system policy filelongstorePolicyFileContents(java.lang.String fileName, java.lang.String fileText)Store a system policy filedefault com.dtolabs.rundeck.core.authorization.RuleSetValidation<com.dtolabs.rundeck.core.authorization.providers.PolicyCollection>validatePolicyFile(java.lang.String fname)
-
-
-
Method Detail
-
getValidator
com.dtolabs.rundeck.core.authorization.providers.BaseValidator getValidator()
-
addListener
default void addListener(ACLFileManagerListener listener)
Receive notification of changes- Parameters:
listener-
-
removeListener
default void removeListener(ACLFileManagerListener listener)
Remove a listener- Parameters:
listener-
-
storePolicyFile
long storePolicyFile(java.lang.String fileName, java.io.InputStream input) throws java.io.IOExceptionStore a system policy file- Parameters:
fileName- name without pathinput- input stream- Returns:
- size of bytes stored
- Throws:
java.io.IOException
-
deletePolicyFile
boolean deletePolicyFile(java.lang.String fileName) throws java.io.IOExceptionDelete a policy file- Returns:
- true if successful
- Throws:
java.io.IOException
-
storePolicyFileContents
long storePolicyFileContents(java.lang.String fileName, java.lang.String fileText) throws java.io.IOExceptionStore a system policy file- Parameters:
fileName- name without pathfileText- contents- Returns:
- size of bytes stored
- Throws:
java.io.IOException
-
getAclPolicy
AclPolicyFile getAclPolicy(java.lang.String fileName)
Retrieve a system policy- Parameters:
fileName- name without path- Returns:
- definition
-
getPolicyFileContents
java.lang.String getPolicyFileContents(java.lang.String fileName) throws java.io.IOException- Parameters:
fileName- name of policy file, without path- Returns:
- text contents of the policy file
- Throws:
java.io.IOException
-
loadPolicyFileContents
long loadPolicyFileContents(java.lang.String fileName, java.io.OutputStream outputStream) throws java.io.IOExceptionLoad content to output stream- Parameters:
fileName- name of policy file, without path- Returns:
- length of output
- Throws:
java.io.IOException
-
existsPolicyFile
boolean existsPolicyFile(java.lang.String file)
- Parameters:
file- name without path- Returns:
- true if the policy file with the given name exists
-
validatePolicyFile
default com.dtolabs.rundeck.core.authorization.RuleSetValidation<com.dtolabs.rundeck.core.authorization.providers.PolicyCollection> validatePolicyFile(java.lang.String fname) throws java.io.IOException- Throws:
java.io.IOException
-
listStoredPolicyFiles
java.util.List<java.lang.String> listStoredPolicyFiles()
List the system aclpolicy file names, not including the dir path
-
-