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()
AccessControl
open
in interface AccessControl
public boolean validate()
validate
in interface AccessControl
public void close()
AccessControl
close
in interface AccessControl
public void onDelete()
AccessControl
onDelete
in interface AccessControl
public void onCreate()
AccessControl
onCreate
in interface AccessControl
public Result getDefault()
AccessControl
AccessControl.authorise(Operation, ObjectType, ObjectProperties)
.getDefault
in interface AccessControl
public Result authorise(Operation operation, ObjectType objectType, ObjectProperties properties)
Subject
. If there is no current
user the plugin will abstain.authorise
in interface AccessControl
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.