Overview | Package | Class | Tree | Deprecated | Index | Help
| © 2004 BEA Systems, Inc.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.bea.p13n.usermgmt.profile
Class ProfileIdentity

    java.lang.Object
      com.bea.p13n.usermgmt.profile.ProfileIdentity

All Implemented Interfaces:
  Serializable

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.

See Also:
  `ProfileWrapper`, Serialized Form

Method Summary
`boolean` | `equals(Object other)`
`String` | `getGroupname()` retrieve the groupname
`ProfileType` | `getProfileType()` Determine whether this user is anonymous, tracked, or registered
`String` | `getUsername()` retrieve the username
`int` | `hashCode()`
`String` | `toString()`

Methods inherited from class java.lang.Object
`clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

Method Detail

### equals

    public boolean equals(Object other)

  Returns:
    true if the argument is a ProfileIdentity that is equal to this one

### getGroupname

    public String getGroupname()

  retrieve the groupname

### getProfileType

    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.
  See Also:
    `ProfileType`

### getUsername

    public String getUsername()

  retrieve the username

### hashCode

    public int hashCode()

  Returns:
    a hashCode based on the string representation

### toString

    public String toString()

  Returns:
    a string representation

Overview | Package | Class | Tree | Deprecated | Index | Help
| © 2004 BEA Systems, Inc.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004 BEA Systems, Inc. All Rights Reserved