|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--au.edu.swin.synergy.plugin.userdb.BPrivileged
Anything that has privileges extends this class. It contains various generic privilege settings that may be applied to such classes as users and groups.
Field Summary | |
static int |
kAdministrator
The constant identifying the privilage "administrator" |
static int |
kUser
The constant identifying the privilage "user" |
Constructor Summary | |
BPrivileged()
Creates a new privileged object with no values. |
|
BPrivileged(Long uniqueID,
String name)
Creates an object with the given name and the ip address of the client machine Please complete the missing tags for BPrivileged |
|
BPrivileged(String name)
Creates a privileged object with the given name and the ip address of the client machine Please complete the missing tags for BPrivileged |
Method Summary | |
void |
addMember(String newMember)
Adds the new member to the list of members |
boolean |
equals(Object item)
Determines whether this item is equal to the item passed in. |
String |
getComments()
Supplies the comments associated with this |
Vector |
getMembers()
Returns the Vector containing the list of memberships relating to this item. |
String |
getName()
Gets the name of this item |
int |
getPrivilege()
Supplies the privilage associated with this |
Long |
getUniqueID()
Gets the unique id of this item |
boolean |
isNew()
Indicates whether this requires a unique ID or not. |
void |
removeAllMembers()
This will remove all references to other members in this privileged item. |
void |
removeMember(String oldMember)
Removes the member from the list of members. |
void |
setComments(String comments)
Sets the comments of this to that specified |
void |
setMembers(Vector members)
Takes the Vector containing the list of memberships relating to this item. |
void |
setName(String name)
Sets the name to that specified |
void |
setPrivilege(int privilege)
Sets the privilage of this to that specified |
void |
setUniqueID(Long newID)
Sets the unique id of this item |
String |
toString()
Returns a representation of this as a string |
Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final int kUser
public static final int kAdministrator
Constructor Detail |
public BPrivileged()
- public BPrivileged(String name) throws BInvalidPropertyException
- public BPrivileged(Long uniqueID, String name) throws BInvalidPropertyException
- Method Detail |
public final String getName()
- public final void setName(String name) throws BInvalidPropertyException
name
- The name of this item
Please complete the missing tags for setNamepublic final Long getUniqueID()
- public final void setUniqueID(Long newID)
The
- unique id identifying this item
Please complete the missing tags for setUniqueIDpublic final int getPrivilege()
- public final void setPrivilege(int privilege) throws BInvalidPropertyException
privilage
- The new privilage of this
Please complete the missing tags for setPrivilegepublic final String getComments()
- public final void setComments(String comments)
comments
- The new comments of this
Please complete the missing tags for setCommentspublic final Vector getMembers()
- public final void setMembers(Vector members)
- public boolean isNew()
- public final void addMember(String newMember)
newMember
- The new member for this privileged item
Please complete the missing tags for addMemberpublic final void removeAllMembers()
- public final void removeMember(String oldMember)
oldMember
- The member to be removed from this privileged item
Please complete the missing tags for removeMemberpublic String toString()
- public final boolean equals(Object item)
user
- The user to compare
Please complete the missing tags for equals
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |