|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.portal.impl.AbstractComponent
org.apache.cocoon.portal.profile.impl.AbstractProfileManager
Base class for all profile managers.
| Field Summary | |
static String |
USER_ATTRIBUTE
Attribute to store the current user. |
| Fields inherited from class org.apache.cocoon.portal.impl.AbstractComponent |
context, manager, portalService |
| Fields inherited from interface org.apache.cocoon.portal.profile.ProfileManager |
ROLE |
| Constructor Summary | |
AbstractProfileManager()
|
|
| Method Summary | |
Profile |
getProfile(String profileName)
Get the profile for the given profile key. |
void |
inform(UserEvent event,
PortalService service)
Receives any user related event and invokes login, logout etc. |
protected void |
login(PortalUser user)
This method is invoked when a user logs in. |
protected void |
logout(PortalUser user)
This method is invoked when a user logs out. |
void |
register(Layout layout)
New layouts have to be registered using this method. |
void |
saveUserCopletInstanceDatas(String layoutKey)
Save the coplet instance data |
void |
saveUserLayout(String layoutKey)
Save the layout |
void |
saveUserProfiles(String layoutKey)
Save the profile. |
void |
unregister(Layout layout)
New layouts have to be unregistered using this method. |
| Methods inherited from class org.apache.cocoon.portal.impl.AbstractComponent |
contextualize, dispose, initialize, service |
| 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 |
| Methods inherited from interface org.apache.cocoon.portal.profile.ProfileManager |
getCopletData, getCopletDatas, getCopletInstanceData, getCopletInstanceData, getCopletInstanceDatas, getPortalLayout, getUser |
| Field Detail |
public static final String USER_ATTRIBUTE
| Constructor Detail |
public AbstractProfileManager()
| Method Detail |
public void inform(UserEvent event,
PortalService service)
Receiverpublic void register(Layout layout)
ProfileManager
register in interface ProfileManagerProfileManager.register(org.apache.cocoon.portal.layout.Layout)public void saveUserProfiles(String layoutKey)
ProfileManagerProfileManager.saveUserCopletInstanceDatas(String)
and ProfileManager.saveUserLayout(String), but implementations are free to
implement this method in a different way.
saveUserProfiles in interface ProfileManagerlayoutKey - ProfileManager.saveUserProfiles(String)public void saveUserCopletInstanceDatas(String layoutKey)
ProfileManager
saveUserCopletInstanceDatas in interface ProfileManagerlayoutKey - ProfileManager.saveUserCopletInstanceDatas(java.lang.String)public void saveUserLayout(String layoutKey)
ProfileManager
saveUserLayout in interface ProfileManagerlayoutKey - ProfileManager.saveUserLayout(String)public void unregister(Layout layout)
ProfileManager
unregister in interface ProfileManagerProfileManager.unregister(org.apache.cocoon.portal.layout.Layout)protected void login(PortalUser user)
protected void logout(PortalUser user)
public Profile getProfile(String profileName)
ProfileManager
getProfile in interface ProfileManagerProfileManager.getProfile(java.lang.String)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||