|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
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 profilepublic static CustomProfileIdentity createCustomProfileIdentity(String primaryEntity, String secondaryEntity)
primaryEntity
- the primary custom name of the profilesecondaryEntity
- the optional secondary custom name of the successor profilepublic 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.REGISTEREDpublic static ProfileWrapper getProfile(String username, String groupname) throws RemoteException, ProfileNotFoundException
username
- the username of the profilegroupname
- the groupname of the profileProfileNotFoundException
- if the given identity(ies) do not existRemoteException
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 existsProfileNotFoundException
- if the given identity(ies) do not existRemoteException
public static ProfileWrapper getProfile(ProfileIdentity id) throws RemoteException, ProfileNotFoundException
id
- the profile identity containg user/group nameProfileNotFoundException
- if the given identity(ies) do not existRemoteException
public static ProfileWrapper getProfile(CustomProfileIdentity id) throws RemoteException, ProfileNotFoundException
id
- the custom profile identityProfileNotFoundException
- if the given identity(ies) do not existRemoteException
public static ProfileWrapper getProfile(MixedProfileIdentity id) throws RemoteException, ProfileNotFoundException
id
- the mixed profile identityProfileNotFoundException
- if the given identity(ies) do not existRemoteException
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 existsProfileNotFoundException
- if the given identity(ies) do not existRemoteException
public static ProfileWrapper getProfile(CustomProfileIdentity id, boolean validate) throws RemoteException, ProfileNotFoundException
id
- the custom profile identityvalidate
- if true, validate the ProfileIdentity by confirming entity existsProfileNotFoundException
- if the given identity(ies) do not existRemoteException
public static ProfileWrapper getProfile(MixedProfileIdentity id, boolean validate) throws RemoteException, ProfileNotFoundException
id
- the mixed profile identityvalidate
- validate the CustomProfileIdentity by confirming entitie(s) existProfileNotFoundException
- if the given identity(ies) do not existRemoteException
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 profilepublic 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 namepublic static PhantomProfileWrapper getPhantomProfile(CustomProfileIdentity id)
id
- the profile identity containg custom entity namespublic static PhantomProfileWrapper getPhantomProfile(MixedProfileIdentity id)
id
- the profile identity containg user/group namepublic static AnonymousProfileWrapper createAnonymousProfile()
|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2010, Oracle. All rights reserved.