public class GidAccessControl extends AccessControl
Allow/disallow access to a shared device by checking the Unix group ids of the client.
Constructor and Description |
---|
GidAccessControl(java.lang.String gidStr,
int gid,
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 is a member of the required
group.
|
asAccessString, getAccess, getAccessString, getName, getType, indexFromList, listFromString, setName, setType, toString
public GidAccessControl(java.lang.String gidStr, int gid, java.lang.String type, int access)
gidStr
- Stringgid
- 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.