|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.soebes.subversion.sapm.Group
public class Group
A group which represents a number of individual users or
groups.
| Field Summary | |
|---|---|
private String |
name
The name of the group. |
private ArrayList<IPrincipal> |
principalList
|
| Constructor Summary | |
|---|---|
Group()
|
|
Group(String name)
|
|
| Method Summary | |
|---|---|
void |
add(IPrincipal principal)
Add a new user or group
to this group. |
boolean |
contains(String user)
Will check to see if the given name is contained in the group if the instance represents a Group
or if the given name is the same if the instance
represents a single User. |
boolean |
contains(User user)
Convenience method to check for a particular user in case you have the User instance instead of the user name as a string. |
String |
getName()
|
ArrayList<IPrincipal> |
getPrincipalList()
Get the whole list of users/groups. |
private void |
init()
|
void |
setName(String name)
|
void |
setPrincipalList(ArrayList<IPrincipal> principalList)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private ArrayList<IPrincipal> principalList
private String name
| Constructor Detail |
|---|
public Group()
public Group(String name)
| Method Detail |
|---|
private void init()
public String getName()
getName in interface IPrincipalpublic void setName(String name)
setName in interface IPrincipalpublic void add(IPrincipal principal)
user or group
to this group.
principal - The instance either user or group.public boolean contains(User user)
user - The User object.
public boolean contains(String user)
IPrincipalGroup
or if the given name is the same if the instance
represents a single User.
contains in interface IPrincipaluser - The name we check for.
public ArrayList<IPrincipal> getPrincipalList()
public void setPrincipalList(ArrayList<IPrincipal> principalList)
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||