public class UserAccessControl extends AccessControl
Allow/disallow access to a shared device by checking the user name.
Constructor and Description |
---|
UserAccessControl(String userName,
String type,
int access)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
int |
allowsAccess(SrvSession sess,
SharedDevice share,
AccessControlManager mgr)
Check if the user name matches the access control user name and return the allowed access.
|
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
- AccessControlManagerCopyright © 2005–2018 Alfresco Software. All rights reserved.