ProfileIdentity Class
- public class ProfileIdentity
extends Object
implements Serializable
Lightweight object to represent a profile's identity. This will contain
some combination of username and groupname. If both are provided, the
profile represents the user's profile, and the group is used as an
explicit successor. If only a username is provided, it simply represents
the user's profile. If only a groupname is proivded, it represents
the group's profile.
Related Topics
ProfileWrapper
-
Hierarchy
-
Object
ProfileIdentity
-
All Implemented Interfaces
-
Serializable
equals(Object) Method
public boolean equals(Object
other)
-
Overrides
-
Object.equals(Object)
Returns
- true if the argument is a ProfileIdentity that is equal to this one
getGroupname() Method
public String
getGroupname()
retrieve the groupname
getProfileType() Method
public ProfileType
getProfileType()
Determine whether this user is anonymous, tracked, or registered
Returns
- Returns ProfileType.REGISTERED if the user has registered and has a valid username.
Returns ProfileType.ANONYMOUS if the user is anonymous. Anonymous users have no
username or groupname.
Returns ProfileType.TRACKED if the user is tracked. The username will actually
be the trackingId on the AnonymousProfileWrapper or TrackedProfileWrapper.
Related Topics
ProfileType
getUsername() Method
public String
getUsername()
retrieve the username
hashCode() Method
public int hashCode()
-
Overrides
-
Object.hashCode()
Returns
- a hashCode based on the string representation
toString() Method
public String
toString()
-
Overrides
-
Object.toString()
Returns
- a string representation