public interface ContextACLManager<T> extends ContextValidator<T>
Modifier and Type | Method and Description |
---|---|
void |
addListener(T context,
ACLFileManagerListener listener)
Receive notification of changes
|
void |
addListenerMap(java.util.function.Function<T,ACLFileManagerListener> mapping)
Define mapping to add listeners when managers are created
|
boolean |
deletePolicyFile(T context,
java.lang.String fileName)
Delete a policy file
|
boolean |
existsPolicyFile(T context,
java.lang.String file) |
ACLFileManager |
forContext(T context) |
AclPolicyFile |
getAclPolicy(T context,
java.lang.String fileName)
Retrieve a system policy
|
java.lang.String |
getPolicyFileContents(T context,
java.lang.String fileName) |
java.util.List<java.lang.String> |
listStoredPolicyFiles(T context)
List the system aclpolicy file names, not including the dir path
|
long |
loadPolicyFileContents(T context,
java.lang.String fileName,
java.io.OutputStream outputStream)
Load content to output stream
|
void |
removeListener(T context,
ACLFileManagerListener listener)
Remove a listener
|
long |
storePolicyFile(T context,
java.lang.String fileName,
java.io.InputStream input)
Store a system policy file
|
long |
storePolicyFileContents(T context,
java.lang.String fileName,
java.lang.String fileText)
Store a system policy file
|
validatePolicyFile, validateYamlPolicy
ACLFileManager forContext(T context)
void addListenerMap(java.util.function.Function<T,ACLFileManagerListener> mapping)
void addListener(T context, ACLFileManagerListener listener)
void removeListener(T context, ACLFileManagerListener listener)
long storePolicyFile(T context, java.lang.String fileName, java.io.InputStream input) throws java.io.IOException
fileName
- name without pathinput
- input streamjava.io.IOException
boolean deletePolicyFile(T context, java.lang.String fileName) throws java.io.IOException
java.io.IOException
long storePolicyFileContents(T context, java.lang.String fileName, java.lang.String fileText) throws java.io.IOException
fileName
- name without pathfileText
- contentsjava.io.IOException
AclPolicyFile getAclPolicy(T context, java.lang.String fileName)
fileName
- name without pathjava.lang.String getPolicyFileContents(T context, java.lang.String fileName) throws java.io.IOException
fileName
- name of policy file, without pathjava.io.IOException
long loadPolicyFileContents(T context, java.lang.String fileName, java.io.OutputStream outputStream) throws java.io.IOException
fileName
- name of policy file, without pathjava.io.IOException
boolean existsPolicyFile(T context, java.lang.String file)
file
- name without pathjava.util.List<java.lang.String> listStoredPolicyFiles(T context)