public class DefaultAccessControlManager extends java.lang.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(java.lang.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 AccessControlManagersess - SrvSessionshare - SharedDevicepublic SharedDeviceList filterShareList(SrvSession sess, SharedDeviceList shares)
filterShareList in interface AccessControlManagersess - SrvSessionshares - SharedDeviceListpublic void initialize(ServerConfiguration config, org.springframework.extensions.config.ConfigElement params) throws InvalidConfigurationException
initialize in interface AccessControlManagerconfig - ServerConfigurationparams - ConfigElementInvalidConfigurationExceptionpublic AccessControl createAccessControl(java.lang.String type, org.springframework.extensions.config.ConfigElement params) throws ACLParseException, InvalidACLTypeException
createAccessControl in interface AccessControlManagertype - Stringparams - ConfigElementACLParseExceptionInvalidACLTypeExceptionpublic void addAccessControlType(AccessControlParser parser)
addAccessControlType in interface AccessControlManagerparser - AccessControlParserpublic final boolean hasDebug()
public final void setDebug(boolean dbg)
dbg - booleanCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.