public class UidAccessControl extends AccessControl
Allow/disallow access to a shared device by checking the Unix user id of the client.
Constructor and Description |
---|
UidAccessControl(java.lang.String uidStr,
int uid,
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 session is an RPC session (NFS/mount) and the client has the required Unix user id.
|
asAccessString, getAccess, getAccessString, getName, getType, indexFromList, listFromString, setName, setType, toString
public UidAccessControl(java.lang.String uidStr, int uid, java.lang.String type, int access)
uidStr
- Stringuid
- inttype
- Stringaccess
- intpublic int allowsAccess(SrvSession sess, SharedDevice share, AccessControlManager mgr)
allowsAccess
in class AccessControl
sess
- SrvSessionshare
- SharedDevicemgr
- AccessControlManagerCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.