| org.apache.cocoon.portal.profile.impl.AbstractProfileManager org.apache.cocoon.portal.profile.impl.GroupBasedProfileManager
GroupBasedProfileManager | public class GroupBasedProfileManager extends AbstractProfileManager implements Parameterizable,Contextualizable,Initializable,Disposable(Code) | | This profile manager uses a group based approach:
The coplet-base-data and the coplet-data are global, these are shared
between all users.
If the user has is own set of coplet-instance-datas/layouts these are
loaded.
If the user has not an own set, the group set is loaded - therefore
each user has belong to exactly one group.
In the case that the user does not belong to a group, a global
profile is loaded.
This profile manager does not check for changes of the profile,
which means for example once a global profile is loaded, it is
used until Cocoon is restarted. (This will be changed later on)
THIS IS A WORK IN PROGRESS - IT'S NOT FINISHED/WORKING YET
author: Carsten Ziegeler version: CVS $Id: AbstractUserProfileManager.java 37123 2004-08-27 12:11:53Z cziegeler $ |
Inner Class :final protected static class ProfileInfo | |
Method Summary | |
protected Map | buildKey(String category, String profileType, UserInfo info, boolean load) | public void | contextualize(Context context) | public void | dispose() | public CopletData | getCopletData(String copletDataId) | public Collection | getCopletDatas() | public CopletInstanceData | getCopletInstanceData(String copletID) | public List | getCopletInstanceData(CopletData data) | public Collection | getCopletInstanceDatas() | protected boolean | getCopletInstanceDatas(ProfileLS loader, UserProfile profile, UserInfo info, PortalService service, String category) | protected Map | getGlobalBaseDatas(ProfileLS loader, UserInfo info, PortalService service) | protected Map | getGlobalDatas(ProfileLS loader, UserInfo info, PortalService service, UserProfile profile) | protected boolean | getLayout(ProfileLS loader, UserProfile profile, UserInfo info, PortalService service, String category) | public Layout | getPortalLayout(String layoutKey, String layoutId) | public PortalUser | getUser() | protected UserProfile | getUserProfile(String layoutKey) | public void | initialize() | protected UserProfile | loadProfile(String layoutKey, PortalService service) | public void | login() | public void | logout() | public void | parameterize(Parameters params) | protected void | prepareObject(Object object, PortalService service) Prepares the object by using the specified factory. | public void | register(CopletInstanceData coplet) | public void | register(Layout layout) | protected void | removeUserProfiles() | public void | saveUserCopletInstanceDatas(String layoutKey) | public void | saveUserLayout(String layoutKey) | public void | storeProfile(Layout rootLayout, String layoutKey) | protected void | storeUserProfile(String layoutKey, PortalService service, UserProfile profile) | public void | unregister(CopletInstanceData coplet) | public void | unregister(Layout layout) |
CATEGORY_GLOBAL | final public static String CATEGORY_GLOBAL(Code) | | |
CATEGORY_GROUP | final public static String CATEGORY_GROUP(Code) | | |
context | protected Context context(Code) | | The component context
|
copletBaseDatas | protected ProfileInfo copletBaseDatas(Code) | | |
copletDatas | protected ProfileInfo copletDatas(Code) | | |
provider | protected UserInfoProvider provider(Code) | | The userinfo provider - the connection to the authentication mechanism
|
userInfoProviderClassName | protected String userInfoProviderClassName(Code) | | The class name of the userinfo provider
|
contextualize | public void contextualize(Context context) throws ContextException(Code) | | |
dispose | public void dispose()(Code) | | |
login | public void login()(Code) | | |
logout | public void logout()(Code) | | |
parameterize | public void parameterize(Parameters params) throws ParameterException(Code) | | |
removeUserProfiles | protected void removeUserProfiles()(Code) | | |
Fields inherited from org.apache.cocoon.portal.profile.impl.AbstractProfileManager | protected ServiceManager manager(Code)(Java Doc)
|
|
|