public class DefaultAccessControl extends Object implements AccessControl
| Constructor and Description |
|---|
DefaultAccessControl(String name,
EventLoggerProvider eventLogger) |
| Modifier and Type | Method and Description |
|---|---|
Result |
authorise(Operation operation,
ObjectType objectType,
ObjectProperties properties)
Check if an operation is authorised by asking the configuration object about the access
control rules granted to the current thread's
Subject. |
void |
close()
Called to close any resources required by the implementation.
|
Result |
getDefault()
Default result for
AccessControl.authorise(Operation, ObjectType, ObjectProperties). |
void |
onCreate()
Called when first creating (but not when recovering after startup) to allow
creating any resources required by the implementation.
|
void |
onDelete()
Called when deleting to allow clearing any resources used by the implementation.
|
void |
open()
Called to open any resources required by the implementation.
|
boolean |
validate() |
public DefaultAccessControl(String name, EventLoggerProvider eventLogger)
public void open()
AccessControlopen in interface AccessControlpublic boolean validate()
validate in interface AccessControlpublic void close()
AccessControlclose in interface AccessControlpublic void onDelete()
AccessControlonDelete in interface AccessControlpublic void onCreate()
AccessControlonCreate in interface AccessControlpublic Result getDefault()
AccessControlAccessControl.authorise(Operation, ObjectType, ObjectProperties).getDefault in interface AccessControlpublic Result authorise(Operation operation, ObjectType objectType, ObjectProperties properties)
Subject. If there is no current
user the plugin will abstain.authorise in interface AccessControlCopyright © 2006–2016 The Apache Software Foundation. All rights reserved.