|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.astrogrid.community.User
A bean to hold what is passed in the "community snippet". Note that the current interpretation of this is that the account contains an identifier of the form user@community - The group relates to the group that the user wishes to use for its credentials, this may be a cross community group. note that this should really be merged with the @link org.astrogrid.community.common.util.CommunityMessage class, which effectively does xml deserializtion (should be deprecated From iteration 5 - use @link org.astrogrid.community.beans.v1.Credentials, but may still be needed)
| Field Summary | |
static User |
ANONYMOUS
|
| Constructor Summary | |
User()
Default constructor - creates null user |
|
User(java.lang.String snippet)
Creates a user from "community snippet" representation. |
|
User(java.lang.String givenAccount,
java.lang.String givenGroup,
java.lang.String givenToken)
Creates a user from the given account group & token. |
|
User(java.lang.String userId,
java.lang.String community,
java.lang.String group,
java.lang.String token)
|
|
| Method Summary | |
boolean |
equals(User user)
Checks to see if this user refers to the same account as the given user |
java.lang.String |
getAccount()
|
java.lang.String |
getCommunity()
Return the community part of the account string |
java.lang.String |
getGroup()
|
java.lang.String |
getToken()
|
java.lang.String |
getUserId()
gets the userid part of the account string - i.e. |
void |
setAccount(java.lang.String string)
|
void |
setGroup(java.lang.String string)
|
void |
setToken(java.lang.String string)
|
java.lang.String |
toSnippet()
Create a "community snippet" from this User. |
java.lang.String |
toString()
Returns a string with the 'normal' representation of account@community |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final User ANONYMOUS
| Constructor Detail |
public User()
public User(java.lang.String givenAccount,
java.lang.String givenGroup,
java.lang.String givenToken)
givenAccount - the account in the form userid@community.givenGroup - The group credential.givenToken - The security token.
public User(java.lang.String userId,
java.lang.String community,
java.lang.String group,
java.lang.String token)
userId - the user part of the accountcommunity - the community part of the accountgroup - the grouptoken - the security tokenpublic User(java.lang.String snippet)
snippet - The community snippet - this is an xml fragment.| Method Detail |
public java.lang.String getAccount()
public java.lang.String getGroup()
public java.lang.String getToken()
public void setAccount(java.lang.String string)
string - public void setGroup(java.lang.String string)
string - public void setToken(java.lang.String string)
string - public boolean equals(User user)
public java.lang.String toString()
public java.lang.String toSnippet()
public java.lang.String getCommunity()
public java.lang.String getUserId()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||