|
Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bea.p13n.usermgmt.profile.ProfileFactory
public class ProfileFactory
Factory class for retrieving user and group profiles. This will return an implementation of ProfileWrapper, which is a lightweight object that knows how to access the correct ProfileManager session beans based on the profile identity it is initialized with.
ProfileWrapper
Constructor Summary | |
---|---|
ProfileFactory()
|
Method Summary | |
---|---|
static AnonymousProfileWrapper |
createAnonymousProfile()
Create a new AnonymousProfileWrapper with no possibility of being tracked. |
static CustomProfileIdentity |
createCustomProfileIdentity(String primaryEntity,
String secondaryEntity)
Create a CustomProfileIdentity object. |
static MixedProfileIdentity |
createMixedProfileIdentity(String primaryEntity,
String secondaryEntity,
ProfileType profileType)
Create a MixedProfileIdentity object. |
static ProfileIdentity |
createProfileIdentity(String username,
String groupname)
Create a ProfileIdentity object. |
static PhantomProfileWrapper |
getPhantomProfile(CustomProfileIdentity id)
Create a PhantomProfileWrapper based on a custom identity. |
static PhantomProfileWrapper |
getPhantomProfile(MixedProfileIdentity id)
Create a PhantomProfileWrapper based on a mixed custom identity. |
static PhantomProfileWrapper |
getPhantomProfile(ProfileIdentity id)
Create a PhantomProfileWrapper for the given ProfileIdentity. |
static PhantomProfileWrapper |
getPhantomProfile(String username,
String groupname)
Create a PhantomProfileWrapper for the given username and groupname. |
static ProfileWrapper |
getProfile(CustomProfileIdentity id)
Create a ProfileWrapper based on a custom identity. |
static ProfileWrapper |
getProfile(CustomProfileIdentity id,
boolean validate)
Create a ProfileWrapper based on a custom identity. |
static ProfileWrapper |
getProfile(MixedProfileIdentity id)
Create a ProfileWrapper based on a mixed custom identity. |
static ProfileWrapper |
getProfile(MixedProfileIdentity id,
boolean validate)
Create a ProfileWrapper based on a mixed custom identity. |
static ProfileWrapper |
getProfile(ProfileIdentity id)
Create a ProfileWrapper for the given ProfileIdentity. |
static ProfileWrapper |
getProfile(ProfileIdentity id,
boolean validate)
Create a ProfileWrapper for the given ProfileIdentity. |
static ProfileWrapper |
getProfile(String username,
String groupname)
Create a ProfileWrapper for the given username and groupname. |
static ProfileWrapper |
getProfile(String username,
String groupname,
boolean validate)
Create a ProfileWrapper for the given username and groupname. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProfileFactory()
Method Detail |
---|
public static ProfileIdentity createProfileIdentity(String username, String groupname)
username
- the username of the profilegroupname
- the groupname of the profile
public static CustomProfileIdentity createCustomProfileIdentity(String primaryEntity, String secondaryEntity)
primaryEntity
- the primary custom name of the profilesecondaryEntity
- the optional secondary custom name of the successor profile
public static MixedProfileIdentity createMixedProfileIdentity(String primaryEntity, String secondaryEntity, ProfileType profileType)
primaryEntity
- the user principal of the profilesecondaryEntity
- the optional custom name of the successor profileprofileType
- typically ProfileType.REGISTERED
public static ProfileWrapper getProfile(String username, String groupname) throws RemoteException, ProfileNotFoundException
username
- the username of the profilegroupname
- the groupname of the profile
ProfileNotFoundException
- if the given identity(ies) do not exist
RemoteException
public static ProfileWrapper getProfile(String username, String groupname, boolean validate) throws RemoteException, ProfileNotFoundException
username
- the username of the profilegroupname
- the groupname of the profilevalidate
- if true, validate the ProfileIdentity by confirming entity exists
ProfileNotFoundException
- if the given identity(ies) do not exist
RemoteException
public static ProfileWrapper getProfile(ProfileIdentity id) throws RemoteException, ProfileNotFoundException
id
- the profile identity containg user/group name
ProfileNotFoundException
- if the given identity(ies) do not exist
RemoteException
public static ProfileWrapper getProfile(CustomProfileIdentity id) throws RemoteException, ProfileNotFoundException
id
- the custom profile identity
ProfileNotFoundException
- if the given identity(ies) do not exist
RemoteException
public static ProfileWrapper getProfile(MixedProfileIdentity id) throws RemoteException, ProfileNotFoundException
id
- the mixed profile identity
ProfileNotFoundException
- if the given identity(ies) do not exist
RemoteException
public static ProfileWrapper getProfile(ProfileIdentity id, boolean validate) throws RemoteException, ProfileNotFoundException
id
- the profile identity containg user/group namevalidate
- if true, validate the ProfileIdentity by confirming entity exists
ProfileNotFoundException
- if the given identity(ies) do not exist
RemoteException
public static ProfileWrapper getProfile(CustomProfileIdentity id, boolean validate) throws RemoteException, ProfileNotFoundException
id
- the custom profile identityvalidate
- if true, validate the ProfileIdentity by confirming entity exists
ProfileNotFoundException
- if the given identity(ies) do not exist
RemoteException
public static ProfileWrapper getProfile(MixedProfileIdentity id, boolean validate) throws RemoteException, ProfileNotFoundException
id
- the mixed profile identityvalidate
- validate the CustomProfileIdentity by confirming entitie(s) exist
ProfileNotFoundException
- if the given identity(ies) do not exist
RemoteException
public static PhantomProfileWrapper getPhantomProfile(String username, String groupname)
PhantomProfileWrapper
differs from a normal
ProfileWrapper
in that the user and/or group
do not need to exist to use the wrapper.
username
- the username of the profilegroupname
- the groupname of the profile
public static PhantomProfileWrapper getPhantomProfile(ProfileIdentity id)
PhantomProfileWrapper
differs from a normal
ProfileWrapper
in that the user and/or group
do not need to exist to use the wrapper.
id
- the profile identity containg user/group name
public static PhantomProfileWrapper getPhantomProfile(CustomProfileIdentity id)
id
- the profile identity containg custom entity names
public static PhantomProfileWrapper getPhantomProfile(MixedProfileIdentity id)
id
- the profile identity containg user/group name
public static AnonymousProfileWrapper createAnonymousProfile()
|
Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |