|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.opensymphony.user.Entity
com.opensymphony.user.Group
@Deprecated public class Group
Entity that represents a Group of Users. The group is backed by Crowd's Embedded Service.
| Field Summary |
|---|
| Fields inherited from class com.opensymphony.user.Entity |
|---|
mutable, name |
| Constructor Summary | |
|---|---|
Group(com.atlassian.crowd.embedded.api.Group crowdGroup)
Deprecated. |
|
Group(String name,
ProviderAccessor providerAccessor)
Deprecated. Constructor is only called by UserManager. |
|
| Method Summary | |
|---|---|
boolean |
addMember(Principal user)
Deprecated. Adds the specified member to the group. |
boolean |
addUser(User user)
Deprecated. Add User to members of this Group. |
int |
compareTo(com.atlassian.crowd.embedded.api.Group other)
Deprecated. |
boolean |
containsUser(String user)
Deprecated. Determine whether Group contains supplied User as member. |
boolean |
containsUser(User user)
Deprecated. Determine whether Group contains supplied User as member. |
boolean |
equals(Object o)
Deprecated. Compare name. |
List<String> |
getUsers()
Deprecated. List all Users that Group contains as members. |
int |
hashCode()
Deprecated. Hashcode of name. |
boolean |
isMember(Principal member)
Deprecated. Returns true if the passed principal is a member of the group. |
Enumeration<? extends Principal> |
members()
Deprecated. Returns an enumeration of the members in the group. |
void |
remove()
Deprecated. Remove Group from associated AccessProvider. |
boolean |
removeMember(Principal user)
Deprecated. Removes the specified member from the group. |
boolean |
removeUser(User user)
Deprecated. Remove User from members of this Group. |
| Methods inherited from class com.opensymphony.user.Entity |
|---|
getAccessProvider, getCredentialsProvider, getName, getProfileProvider, getPropertySet, getUserManager, isMutable, store, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.security.Principal |
|---|
getName, toString |
| Methods inherited from interface com.atlassian.crowd.embedded.api.Group |
|---|
getName |
| Constructor Detail |
|---|
public Group(com.atlassian.crowd.embedded.api.Group crowdGroup)
public Group(String name,
ProviderAccessor providerAccessor)
name - groupname.providerAccessor - accessors.| Method Detail |
|---|
public boolean isMember(Principal member)
member - the principal whose membership is to be checked.
public List<String> getUsers()
public boolean addMember(Principal user)
user - the principal to add to this group.
public boolean addUser(User user)
user - the user to add.
true if user is added successfully to the group.public boolean containsUser(User user)
user - the user to check.
true if user is a member of the group.public boolean containsUser(String user)
user - name of the user to check.
true if the user is a member of the group.public Enumeration<? extends Principal> members()
public void remove()
throws ImmutableException
remove in class EntityImmutableExceptionpublic boolean removeMember(Principal user)
user - the principal to remove from this group.
public boolean removeUser(User user)
user - the user to remove from the group.
true if user is successfully removed from the group.public boolean equals(Object o)
Entity
equals in interface com.atlassian.crowd.embedded.api.Groupequals in interface Principalequals in class Entitypublic int hashCode()
Entity
hashCode in interface com.atlassian.crowd.embedded.api.GrouphashCode in interface PrincipalhashCode in class Entitypublic int compareTo(com.atlassian.crowd.embedded.api.Group other)
compareTo in interface com.atlassian.crowd.embedded.api.GroupcompareTo in interface Comparable<com.atlassian.crowd.embedded.api.Group>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||