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, toStringpublic int allowsAccess(SrvSession sess, SharedDevice share, AccessControlManager mgr)
allowsAccess in class AccessControlsess - SrvSessionshare - SharedDevicemgr - AccessControlManagerpublic static final boolean validateProtocolList(String protList)
protList - StringCopyright © 2005–2020 Alfresco Software. All rights reserved.