public class DefaultAccessControlManager extends Object implements AccessControlManager
Default access control manager implementation.
Constructor and Description |
---|
DefaultAccessControlManager()
Class constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addAccessControlType(AccessControlParser parser)
Add an access control parser to the list of available access control types.
|
int |
checkAccessControl(SrvSession sess,
SharedDevice share)
Check if the session has access to the shared device.
|
AccessControl |
createAccessControl(String type,
org.springframework.extensions.config.ConfigElement params)
Create an access control.
|
SharedDeviceList |
filterShareList(SrvSession sess,
SharedDeviceList shares)
Filter the list of shared devices to return a list that contains only the shares that
are visible or accessible by the session.
|
boolean |
hasDebug()
Determine if debug output is enabled
|
void |
initialize(ServerConfiguration config,
org.springframework.extensions.config.ConfigElement params)
Initialize the access control manager
|
void |
setDebug(boolean dbg)
Enable/disable debug output
|
public DefaultAccessControlManager()
public int checkAccessControl(SrvSession sess, SharedDevice share)
checkAccessControl
in interface AccessControlManager
sess
- SrvSessionshare
- SharedDevicepublic SharedDeviceList filterShareList(SrvSession sess, SharedDeviceList shares)
filterShareList
in interface AccessControlManager
sess
- SrvSessionshares
- SharedDeviceListpublic void initialize(ServerConfiguration config, org.springframework.extensions.config.ConfigElement params) throws InvalidConfigurationException
initialize
in interface AccessControlManager
config
- ServerConfigurationparams
- ConfigElementInvalidConfigurationException
public AccessControl createAccessControl(String type, org.springframework.extensions.config.ConfigElement params) throws ACLParseException, InvalidACLTypeException
createAccessControl
in interface AccessControlManager
type
- Stringparams
- ConfigElementACLParseException
InvalidACLTypeException
public void addAccessControlType(AccessControlParser parser)
addAccessControlType
in interface AccessControlManager
parser
- AccessControlParserpublic final boolean hasDebug()
public final void setDebug(boolean dbg)
dbg
- booleanCopyright © 2005–2018 Alfresco Software. All rights reserved.