|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avalon.framework.logger.AbstractLogEnabled org.apache.cocoon.portal.profile.impl.AbstractProfileManager org.apache.cocoon.portal.profile.impl.SiteProfileManager
public class SiteProfileManager
Nested Class Summary | |
---|---|
protected static class |
SiteProfileManager.ProfileInfo
|
protected static class |
SiteProfileManager.UserProfileInfo
|
Field Summary | |
---|---|
static String |
CATEGORY_GLOBAL
|
protected Context |
context
The component context |
protected SiteProfileManager.ProfileInfo |
copletBaseDatas
|
protected SiteProfileManager.ProfileInfo |
copletDatas
|
protected Map |
profiles
The per site profiles. |
protected UserInfoProvider |
provider
The userinfo provider - the connection to the authentication mechanism |
protected String |
siteExpression
Site expression to detect the current site. |
protected String |
userInfoProviderClassName
The class name of the userinfo provider |
protected VariableResolverFactory |
variableFactory
Variable resolver factory. |
protected VariableResolver |
variableResolver
Variable resolver. |
Fields inherited from class org.apache.cocoon.portal.profile.impl.AbstractProfileManager |
---|
manager |
Fields inherited from interface org.apache.cocoon.portal.profile.ProfileManager |
---|
ROLE |
Constructor Summary | |
---|---|
SiteProfileManager()
|
Method Summary | |
---|---|
protected Map |
buildKey(String category,
String profileType,
UserInfo info,
boolean load)
|
void |
contextualize(Context context)
|
void |
dispose()
|
CopletData |
getCopletData(String copletDataId)
Return the coplet data object |
Collection |
getCopletDatas()
Get all coplets |
List |
getCopletInstanceData(CopletData data)
|
CopletInstanceData |
getCopletInstanceData(String copletID)
|
Collection |
getCopletInstanceDatas()
Get all instances |
protected Map |
getGlobalBaseDatas(ProfileLS loader,
UserInfo info,
PortalService service)
|
protected Map |
getGlobalDatas(ProfileLS loader,
UserInfo info,
PortalService service,
UserProfile profile)
|
Layout |
getPortalLayout(String layoutKey,
String layoutId)
Get the portal layout defined by the layout key. |
protected String |
getSiteName()
|
protected void |
getSiteProfile(ProfileLS loader,
UserInfo info,
PortalService service,
SiteProfileManager.UserProfileInfo storedProfile)
|
PortalUser |
getUser()
Get current user information |
protected UserProfile |
getUserProfile(String layoutKey)
|
void |
initialize()
|
protected UserProfile |
loadProfile(String layoutKey)
Load the profile |
void |
login()
This method is invoked when the user logs into the portal. |
void |
parameterize(Parameters params)
|
protected void |
prepareObject(Object object,
PortalService service)
Prepares the object by using the specified factory. |
void |
register(CopletInstanceData coplet)
New coplet instance datas have to be registered using this method. |
void |
register(Layout layout)
New layouts have to be registered using this method. |
void |
service(ServiceManager manager)
|
void |
storeProfile(Layout rootLayout,
String layoutKey)
Store the provided profile under the layoutKey. |
void |
unregister(CopletInstanceData coplet)
Removed coplet instance datas have to be unregistered using this method. |
void |
unregister(Layout layout)
New layouts have to be unregistered using this method. |
Methods inherited from class org.apache.cocoon.portal.profile.impl.AbstractProfileManager |
---|
logout, saveUserCopletInstanceDatas, saveUserLayout, saveUserProfiles |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CATEGORY_GLOBAL
protected SiteProfileManager.ProfileInfo copletBaseDatas
protected SiteProfileManager.ProfileInfo copletDatas
protected UserInfoProvider provider
protected String userInfoProviderClassName
protected Context context
protected final Map profiles
protected String siteExpression
protected VariableResolverFactory variableFactory
protected VariableResolver variableResolver
Constructor Detail |
---|
public SiteProfileManager()
Method Detail |
---|
public void contextualize(Context context) throws ContextException
contextualize
in interface Contextualizable
ContextException
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
service
in class AbstractProfileManager
ServiceException
AbstractProfileManager.service(org.apache.avalon.framework.service.ServiceManager)
public void parameterize(Parameters params) throws ParameterException
parameterize
in interface Parameterizable
ParameterException
public void initialize() throws Exception
initialize
in interface Initializable
Exception
public void dispose()
dispose
in interface Disposable
protected String getSiteName()
protected UserProfile getUserProfile(String layoutKey)
protected void prepareObject(Object object, PortalService service) throws ProcessingException
ProcessingException
public void login()
ProfileManager
login
in interface ProfileManager
login
in class AbstractProfileManager
public CopletInstanceData getCopletInstanceData(String copletID)
getCopletInstanceData
in interface ProfileManager
public CopletData getCopletData(String copletDataId)
ProfileManager
getCopletData
in interface ProfileManager
public List getCopletInstanceData(CopletData data)
getCopletInstanceData
in interface ProfileManager
public void register(CopletInstanceData coplet)
ProfileManager
register
in interface ProfileManager
register
in class AbstractProfileManager
public void unregister(CopletInstanceData coplet)
ProfileManager
unregister
in interface ProfileManager
unregister
in class AbstractProfileManager
public void register(Layout layout)
ProfileManager
register
in interface ProfileManager
register
in class AbstractProfileManager
public void unregister(Layout layout)
ProfileManager
unregister
in interface ProfileManager
unregister
in class AbstractProfileManager
public Layout getPortalLayout(String layoutKey, String layoutId)
ProfileManager
getPortalLayout
in interface ProfileManager
layoutKey
- A key describing the layout or null for the defaultlayoutId
- The id of a layout object or null for the root object
public Collection getCopletDatas()
ProfileManager
getCopletDatas
in interface ProfileManager
public Collection getCopletInstanceDatas()
ProfileManager
getCopletInstanceDatas
in interface ProfileManager
protected UserProfile loadProfile(String layoutKey) throws Exception
Exception
protected Map getGlobalBaseDatas(ProfileLS loader, UserInfo info, PortalService service) throws Exception
Exception
protected Map getGlobalDatas(ProfileLS loader, UserInfo info, PortalService service, UserProfile profile) throws Exception
Exception
protected void getSiteProfile(ProfileLS loader, UserInfo info, PortalService service, SiteProfileManager.UserProfileInfo storedProfile) throws Exception
Exception
protected Map buildKey(String category, String profileType, UserInfo info, boolean load)
public void storeProfile(Layout rootLayout, String layoutKey)
ProfileManager
storeProfile
in interface ProfileManager
public PortalUser getUser()
ProfileManager
getUser
in interface ProfileManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |