|
||||||||||
| 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. Use CrowdService.addUserToGroup(com.atlassian.crowd.embedded.api.User, com.atlassian.crowd.embedded.api.Group) instead. Since v4.4. |
boolean |
authenticate(String password)
Deprecated. Use CrowdService.authenticate(String, String) instead. Since v4.4. |
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. Use getEmailAddress() instead. Since v4.3. |
String |
getEmailAddress()
Deprecated. |
String |
getFullName()
Deprecated. Use getDisplayName() instead. Since v4.3. |
List<String> |
getGroups()
Deprecated. Use GroupManager.getGroupNamesForUser(String) instead. Since v4.4. |
int |
hashCode()
Deprecated. Hashcode of name. |
boolean |
inGroup(Group group)
Deprecated. Use GroupManager.isUserInGroup(com.atlassian.crowd.embedded.api.User, com.atlassian.crowd.embedded.api.Group) instead. Since v4.4. |
boolean |
inGroup(String groupName)
Deprecated. Use GroupManager.isUserInGroup(String, String) instead. Since v4.4. |
boolean |
isActive()
Deprecated. |
void |
remove()
Deprecated. Use CrowdService.removeUser(com.atlassian.crowd.embedded.api.User) instead. Since v4.4. |
boolean |
removeFromGroup(Group group)
Deprecated. Use CrowdService.removeUserFromGroup(com.atlassian.crowd.embedded.api.User, com.atlassian.crowd.embedded.api.Group)} instead. Since v4.4. |
void |
setEmail(String email)
Deprecated. Use CrowdService.updateUser(com.atlassian.crowd.embedded.api.User) instead. Since v4.4. |
void |
setFullName(String fullName)
Deprecated. Use CrowdService.updateUser(com.atlassian.crowd.embedded.api.User) instead. Since v4.4. |
void |
setPassword(String password)
Deprecated. Use CrowdService.updateUserCredential(com.atlassian.crowd.embedded.api.User, String) instead. Since v4.4. |
void |
store()
Deprecated. Use CrowdService.updateUser(com.atlassian.crowd.embedded.api.User) for mutating users. Since v4.4. |
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)
CrowdService.updateUser(com.atlassian.crowd.embedded.api.User) instead. Since v4.4.
email - new email address.public String getEmail()
getEmailAddress() instead. Since v4.3.
public void setFullName(String fullName)
CrowdService.updateUser(com.atlassian.crowd.embedded.api.User) instead. Since v4.4.
fullName - new display name.public String getFullName()
getDisplayName() instead. Since v4.3.
public List<String> getGroups()
GroupManager.getGroupNamesForUser(String) instead. Since v4.4.
public void setPassword(String password)
throws ImmutableException
CrowdService.updateUserCredential(com.atlassian.crowd.embedded.api.User, String) instead. Since v4.4.
password - new password.
ImmutableException - should never be thrown as all users from this implementation are "mutable".public boolean addToGroup(Group group)
CrowdService.addUserToGroup(com.atlassian.crowd.embedded.api.User, com.atlassian.crowd.embedded.api.Group) instead. Since v4.4.
group - group to add membership.
true if membership added successfully.public boolean authenticate(String password)
CrowdService.authenticate(String, String) instead. Since v4.4.
password - current password.
true if the authentication was successful.public boolean inGroup(Group group)
GroupManager.isUserInGroup(com.atlassian.crowd.embedded.api.User, com.atlassian.crowd.embedded.api.Group) instead. Since v4.4.
group - group to check membership.
true if the user is a member of the group.public boolean inGroup(String groupName)
GroupManager.isUserInGroup(String, String) instead. Since v4.4.
groupName - name of group to check membership.
true if the user is a member of the group.
public void remove()
throws ImmutableException
CrowdService.removeUser(com.atlassian.crowd.embedded.api.User) instead. Since v4.4.
remove in class EntityImmutableExceptionpublic boolean removeFromGroup(Group group)
CrowdService.removeUserFromGroup(com.atlassian.crowd.embedded.api.User, com.atlassian.crowd.embedded.api.Group)} instead. Since v4.4.
group - group to remove membership.
true if user successfully removed from group.
public void store()
throws ImmutableException
CrowdService.updateUser(com.atlassian.crowd.embedded.api.User) for mutating users. Since v4.4.
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 | |||||||||