public class ProtocolAccessControl extends AccessControl
Allow/disallow access to a share based on the protocol type.
Constructor and Description |
---|
ProtocolAccessControl(String protList,
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(String protList)
Validate the protocol list
|
asAccessString, getAccess, getAccessString, getName, getType, indexFromList, listFromString, setName, setType, toString
public int allowsAccess(SrvSession sess, SharedDevice share, AccessControlManager mgr)
allowsAccess
in class AccessControl
sess
- SrvSessionshare
- SharedDevicemgr
- AccessControlManagerpublic static final boolean validateProtocolList(String protList)
protList
- StringCopyright © 2005–2017 Alfresco Software. All rights reserved.