public class ProtocolAccessControl extends AccessControl
Allow/disallow access to a share based on the protocol type.
| Constructor and Description |
|---|
ProtocolAccessControl(java.lang.String protList,
java.lang.String type,
int access)
Class constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
allowsAccess(SrvSession sess,
SharedDevice share,
AccessControlManager mgr)
Check if the protocol matches the access control protocol list and return the allowed access.
|
static boolean |
validateProtocolList(java.lang.String protList)
Validate the protocol list
|
asAccessString, getAccess, getAccessString, getName, getType, indexFromList, listFromString, setName, setType, toStringpublic ProtocolAccessControl(java.lang.String protList,
java.lang.String type,
int access)
protList - Stringtype - Stringaccess - intpublic int allowsAccess(SrvSession sess, SharedDevice share, AccessControlManager mgr)
allowsAccess in class AccessControlsess - SrvSessionshare - SharedDevicemgr - AccessControlManagerpublic static final boolean validateProtocolList(java.lang.String protList)
protList - StringCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.