Qizx/db 2.1 API

com.qizx.api.util.accesscontrol
Class UnixStyleAccessControl.User

java.lang.Object
  extended bycom.qizx.api.util.accesscontrol.UnixStyleAccessControl.User
All Implemented Interfaces:
User
Enclosing class:
UnixStyleAccessControl

public static class UnixStyleAccessControl.User
extends Object
implements User

Simple model of a Unix-style User.

This user has a name and default permissions for a new Library object.


Constructor Summary
UnixStyleAccessControl.User(String name, String displayName)
          Constructs a new user with its internal nameand display name.
 
Method Summary
 int getDefaultMask()
          Returns the current permissions used by default for new Library members.
 String getDisplayName()
          Returns a displayable name for the User.
 String getName()
          Returns the identifier of the user, used for checking rights.
 void setDefaultMask(int defaultMask)
          Sets the permissions used by default for new Library members (Documents and Collections).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnixStyleAccessControl.User

public UnixStyleAccessControl.User(String name,
                                   String displayName)
Constructs a new user with its internal nameand display name.

Parameters:
name - unique name of a User, used for access control
displayName - name of a User, used for display purpose
Method Detail

getName

public String getName()
Returns the identifier of the user, used for checking rights.

Returns:
the identifier of the user

getDisplayName

public String getDisplayName()
Description copied from interface: User
Returns a displayable name for the User.

Specified by:
getDisplayName in interface User
Returns:
a String representing the display name of the user

getDefaultMask

public int getDefaultMask()
Returns the current permissions used by default for new Library members.


setDefaultMask

public void setDefaultMask(int defaultMask)
Sets the permissions used by default for new Library members (Documents and Collections).


© 2008 Axyana Software