|
||||||||||
| 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.User
User instead
@Deprecated public class User
Entity to represent an actual User of the system. The user is backed by Crowd's Embedded Service.
| Field Summary |
|---|
| Fields inherited from class com.opensymphony.user.Entity |
|---|
mutable, name |
| Constructor Summary | |
|---|---|
User(String name,
ProviderAccessor providerAccessor,
com.atlassian.crowd.embedded.api.CrowdService crowdService)
Deprecated. Constructor is only called by UserManager. |
|
User(com.atlassian.crowd.embedded.api.User crowdUser,
com.atlassian.crowd.embedded.api.CrowdService crowdService)
Deprecated. |
|
| Method Summary | |
|---|---|
boolean |
addToGroup(Group group)
Deprecated. Add this User as a member to supplied Group. |
boolean |
authenticate(String password)
Deprecated. Verify that the supplied password matches the stored password for the user. |
int |
compareTo(com.atlassian.crowd.embedded.api.User other)
Deprecated. |
boolean |
equals(Object o)
Deprecated. Compare name. |
long |
getDirectoryId()
Deprecated. |
String |
getDisplayName()
Deprecated. |
String |
getEmail()
Deprecated. Please use getEmailAddress(). |
String |
getEmailAddress()
Deprecated. |
String |
getFullName()
Deprecated. Please call getDisplayName() |
List<String> |
getGroups()
Deprecated. List all Groups that User is a member of. |
int |
hashCode()
Deprecated. Hashcode of name. |
boolean |
inGroup(Group group)
Deprecated. Determine whether User is member of supplied Group. |
boolean |
inGroup(String groupName)
Deprecated. Determine whether User is member of supplied Group. |
boolean |
isActive()
Deprecated. |
void |
remove()
Deprecated. Remove User from CredentialsProvider (providing it is mutable). |
boolean |
removeFromGroup(Group group)
Deprecated. Remove this User as a member from supplied Group. |
void |
setEmail(String email)
Deprecated. Convenience method to access property. |
void |
setFullName(String fullName)
Deprecated. Convenience method to access property. |
void |
setPassword(String password)
Deprecated. Change the User's password. |
void |
store()
Deprecated. Force update to underlying data-stores. |
protected void |
update()
Deprecated. Persists the current user in the embedded Crowd back-end. |
| Methods inherited from class com.opensymphony.user.Entity |
|---|
getAccessProvider, getCredentialsProvider, getName, getProfileProvider, getPropertySet, getUserManager, isMutable, 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 |
| Constructor Detail |
|---|
public User(com.atlassian.crowd.embedded.api.User crowdUser,
com.atlassian.crowd.embedded.api.CrowdService crowdService)
public User(String name,
ProviderAccessor providerAccessor,
com.atlassian.crowd.embedded.api.CrowdService crowdService)
name - username.providerAccessor - accessors.crowdService - service| Method Detail |
|---|
public void setEmail(String email)
email - new email address.public String getEmail()
getEmailAddress().
public void setFullName(String fullName)
fullName - new display name.public String getFullName()
getDisplayName()
public List<String> getGroups()
public void setPassword(String password)
throws ImmutableException
password - new password.
ImmutableException - should never be thrown as all users from this implementation are "mutable".public boolean addToGroup(Group group)
group - group to add membership.
true if membership added successfully.public boolean authenticate(String password)
password - current password.
true if the authentication was successful.public boolean inGroup(Group group)
group - group to check membership.
true if the user is a member of the group.public boolean inGroup(String groupName)
groupName - name of group to check membership.
true if the user is a member of the group.
public void remove()
throws ImmutableException
remove in class EntityImmutableExceptionpublic boolean removeFromGroup(Group group)
group - group to remove membership.
true if user successfully removed from group.
public void store()
throws ImmutableException
store in class EntityImmutableExceptionprotected void update()
public long getDirectoryId()
getDirectoryId in interface com.atlassian.crowd.embedded.api.Userpublic boolean isActive()
isActive in interface com.atlassian.crowd.embedded.api.Userpublic String getEmailAddress()
getEmailAddress in interface com.atlassian.crowd.embedded.api.Userpublic String getDisplayName()
getDisplayName in interface com.atlassian.crowd.embedded.api.Userpublic boolean equals(Object o)
Entity
equals in interface com.atlassian.crowd.embedded.api.Userequals in interface Principalequals in class Entitypublic int hashCode()
Entity
hashCode in interface com.atlassian.crowd.embedded.api.UserhashCode in interface PrincipalhashCode in class Entitypublic int compareTo(com.atlassian.crowd.embedded.api.User other)
compareTo in interface com.atlassian.crowd.embedded.api.UsercompareTo in interface Comparable<com.atlassian.crowd.embedded.api.User>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||