JAFS API v2

org.openafs.jafs
Interface PTSEntry

All Known Implementing Classes:
Group, User

public interface PTSEntry

An interface representation of a PTS entry as it applies to AFS users and groups. This interface is implemented in both User and Group object abstractions.

Version:
1.0, 3/31/02
See Also:
User, Group

Field Summary
static short PTS_GROUP
          Constant for Group object implementers, used with getType()
static short PTS_USER
          Constant for User object implementers, used with getType()
 
Method Summary
 Cell getCell()
          Returns the Cell this PTS user or group belongs to.
 PTSEntry getCreator()
          Returns the creator of this PTS user or group.
 String getName()
          Returns the name of this PTS user or group.
 PTSEntry getOwner()
          Returns the owner of this PTS user or group.
 short getType()
          Returns the type of PTS entry the implementing object represents.
 int getUID()
          Returns the numeric AFS id of this user or group.
 

Field Detail

PTS_USER

public static final short PTS_USER
Constant for User object implementers, used with getType()

See Also:
Constant Field Values

PTS_GROUP

public static final short PTS_GROUP
Constant for Group object implementers, used with getType()

See Also:
Constant Field Values
Method Detail

getCell

public Cell getCell()
Returns the Cell this PTS user or group belongs to.

Returns:
the Cell this PTS user or group belongs to

getCreator

public PTSEntry getCreator()
                    throws AFSException
Returns the creator of this PTS user or group.

Returns:
the creator of this PTS user or group
Throws:
AFSException - If an error occurs in the native code

getName

public String getName()
Returns the name of this PTS user or group.

Returns:
the name of this PTS user or group

getOwner

public PTSEntry getOwner()
                  throws AFSException
Returns the owner of this PTS user or group.

Returns:
the owner of this PTS user or group
Throws:
AFSException - If an error occurs in the native code

getType

public short getType()
Returns the type of PTS entry the implementing object represents.

Possible values are:

Returns:
the name of this PTS user or group

getUID

public int getUID()
           throws AFSException
Returns the numeric AFS id of this user or group.

Returns:
the AFS id of this user/group
Throws:
AFSException - If an error occurs in the native code

JAFS API v2