|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.turbine.services.BaseInitable
org.apache.turbine.services.BaseService
org.apache.turbine.services.TurbineBaseService
org.apache.jetspeed.services.profiler.JetspeedProfilerService
This is an implementation of the Profiler interface.
This implementation maps requests to profiles (PSML resources) based on
request parameters, requesting deviced capabilities, and the device's
language.
This service expects these properties to be set for correct operation:
| Field Summary | |
protected static java.lang.String |
CONFIG_FALLBACK_COUNTRY
|
protected static java.lang.String |
CONFIG_FALLBACK_LANGUAGE
|
protected static java.lang.String |
CONFIG_FALLBACK_TO_ROOT
|
protected static java.lang.String |
CONFIG_GROUP_MERGE
|
protected static java.lang.String |
CONFIG_GROUP_MERGE_CONTROL
|
protected static java.lang.String |
CONFIG_GROUP_MERGE_CONTROLLER
|
protected static java.lang.String |
CONFIG_GROUP_MERGE_SECURITYREF
|
protected static java.lang.String |
CONFIG_NEWGROUP_TEMPLATE
|
protected static java.lang.String |
CONFIG_NEWUSER_MEDIA
|
protected static java.lang.String |
CONFIG_NEWUSER_TEMPLATE
|
protected static java.lang.String |
CONFIG_RESOURCE_DEFAULT
|
protected static java.lang.String |
CONFIG_RESOURCE_EXT
|
protected static java.lang.String |
CONFIG_ROLE_FALLBACK
|
protected static java.lang.String |
CONFIG_ROLE_MERGE
|
protected static java.lang.String |
CONFIG_ROLE_MERGE_CONTROL
|
protected static java.lang.String |
CONFIG_ROLE_MERGE_CONTROLLER
|
protected static java.lang.String |
CONFIG_SECURITY
|
protected static java.lang.String |
DEFAULT_CONFIG_GROUP_MERGE_CONTROL
|
protected static java.lang.String |
DEFAULT_CONFIG_GROUP_MERGE_CONTROLLER
|
protected static java.lang.String |
DEFAULT_CONFIG_NEWGROUP_TEMPLATE
|
protected static java.lang.String[] |
DEFAULT_CONFIG_NEWUSER_MEDIA
|
protected static java.lang.String |
DEFAULT_CONFIG_NEWUSER_TEMPLATE
|
protected static java.lang.String |
DEFAULT_CONFIG_RESOURCE_DEFAULT
|
protected static java.lang.String |
DEFAULT_CONFIG_RESOURCE_EXT
|
protected static boolean |
DEFAULT_CONFIG_ROLE_FALLBACK
|
protected static java.lang.String |
DEFAULT_CONFIG_ROLE_MERGE_CONTROL
|
protected static java.lang.String |
DEFAULT_CONFIG_ROLE_MERGE_CONTROLLER
|
protected static boolean |
DEFAULT_CONFIG_SECURITY
|
protected java.lang.String |
groupmergeControl
|
protected java.lang.String |
groupmergeController
|
protected java.lang.String |
groupmergeSecurityref
|
protected java.lang.Class |
locatorClass
|
protected static JetspeedLogger |
logger
Static initialization of the logger for this class |
protected java.lang.String[] |
mediaTypes
|
protected static java.lang.String |
MSG_MISSING_PARAMETER
|
protected java.lang.String |
newGroupTemplate
|
protected java.lang.String |
newUserTemplate
|
protected static java.lang.String |
PATH_EXTENSION_DELIMITER
|
protected java.lang.Class |
profileClass
|
protected java.lang.String |
resourceDefault
|
protected java.lang.String |
resourceExt
|
protected java.lang.String |
rolemergeControl
|
protected java.lang.String |
rolemergeController
|
protected java.lang.String |
root
|
protected boolean |
useFallbackCountry
|
protected boolean |
useFallbackLanguage
|
protected boolean |
useFallbackToRoot
|
protected boolean |
useGroupMerge
|
protected boolean |
useRoleFallback
|
protected boolean |
useRoleMerge
|
protected boolean |
useSecurity
|
| Fields inherited from class org.apache.turbine.services.BaseService |
configuration, name, properties, serviceBroker |
| Fields inherited from class org.apache.turbine.services.BaseInitable |
initableBroker, isInitialized |
| Fields inherited from interface org.apache.jetspeed.services.profiler.ProfilerService |
SERVICE_NAME |
| Constructor Summary | |
JetspeedProfilerService()
|
|
| Method Summary | |
ProfileLocator |
createLocator()
Creates a new ProfileLocator object that can be successfully managed by the current Profiler implementation |
Profile |
createProfile()
Creates a new Profile object that can be successfully managed by the current Profiler implementation |
Profile |
createProfile(ProfileLocator locator)
Creates a new Profile object for a specific locator. |
Profile |
createProfile(ProfileLocator locator,
Portlets portlets)
Create a new profile given a profile locator This method assumes that you have cloned and regenerated the portlet ids if the portlets come from another profile. |
Profile |
createProfile(org.apache.turbine.util.RunData data,
Profile profile)
This methode creates a wml profile and a html profile for a new user -------------------------------------------------------------------------- last modified: 10/31/01 Andreas Kempf, Siemens ICM S CP PE, Munich mailto: A.Kempf@web.de |
Profile |
createProfile(org.apache.turbine.util.RunData data,
Profile profile,
MimeType mt)
Deprecated. Should be removed when old customizer is removed. |
Profile |
createProfile(org.apache.turbine.util.RunData data,
Profile profile,
java.lang.String contentType,
java.lang.String from)
This methode creates a wml profile and a html profile for a new user |
protected PSMLDocument |
fallback(ProfileLocator locator)
|
protected PSMLDocument |
fallbackList(ProfileLocator original,
org.apache.turbine.util.RunData rundata)
|
protected Profile |
fallbackProfile(org.apache.turbine.util.RunData data,
CapabilityMap cm)
get the Profile object using the Rundata state and capability map this is the mapping functionality of the profiler |
protected Profile |
getGroupProfile(JetspeedRunData rundata,
CapabilityMap cm)
Process group profiles |
protected void |
getLanguageSettings(Profile profile,
org.apache.turbine.util.RunData rundata)
|
protected java.lang.String |
getMediaType(org.apache.turbine.util.RunData rundata,
CapabilityMap cm)
Lookup the media type from the CapabilitMap. |
Profile |
getProfile(ProfileLocator locator)
get the Profile object using a profile locator |
Profile |
getProfile(org.apache.turbine.util.RunData rundata)
get the Profile object using the Rundata state and capability map this is the mapping functionality of the profiler |
Profile |
getProfile(org.apache.turbine.util.RunData data,
CapabilityMap cm)
get the Profile object using the Rundata state and capability map this is the mapping functionality of the profiler |
Profile |
getProfile(org.apache.turbine.util.RunData data,
MimeType mt)
Deprecated. Do not use a profiler method based on MimeType |
protected Profile |
getRoleProfile(JetspeedRunData rundata,
CapabilityMap cm)
Process role profiles |
void |
init(javax.servlet.ServletConfig conf)
This is the early initialization method called by the Turbine Service framework |
protected void |
initConfiguration()
Loads the configuration parameters for this service from the JetspeedResources.properties file. |
org.apache.turbine.util.DynamicURI |
makeDynamicURI(org.apache.turbine.util.RunData data,
ProfileLocator locator)
Builds a dynamic URI based on the current profiler group/role/page |
protected Profile |
mergeGroupProfiles(org.apache.turbine.util.RunData data,
java.util.Vector profiles)
Merge group profiles to create default profile. |
protected Profile |
mergeRoleProfiles(org.apache.turbine.util.RunData data,
java.util.Vector profiles)
Merge role profiles to create default profile. |
java.util.Iterator |
query(QueryLocator locator)
Query for a collection of profiles given a profile locator criteria. |
void |
removeProfile(ProfileLocator locator)
Removes a profile. |
void |
shutdown()
This is the shutdown method called by the Turbine Service framework |
boolean |
useRoleProfileMerging()
Returns status of role profile merging feature |
| Methods inherited from class org.apache.turbine.services.TurbineBaseService |
init, init, init |
| Methods inherited from class org.apache.turbine.services.BaseService |
getConfiguration, getName, getProperties, getServiceBroker, setName, setServiceBroker |
| Methods inherited from class org.apache.turbine.services.BaseInitable |
getInit, getInitableBroker, setInit, setInitableBroker |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.turbine.services.Service |
getConfiguration, getName, getProperties, setName, setServiceBroker |
| Methods inherited from interface org.apache.turbine.services.Initable |
getInit, init, init, setInitableBroker |
| Field Detail |
protected static final JetspeedLogger logger
protected static final java.lang.String CONFIG_RESOURCE_DEFAULT
protected static final java.lang.String CONFIG_RESOURCE_EXT
protected static final java.lang.String CONFIG_SECURITY
protected static final java.lang.String CONFIG_ROLE_FALLBACK
protected static final java.lang.String CONFIG_NEWUSER_TEMPLATE
protected static final java.lang.String CONFIG_NEWGROUP_TEMPLATE
protected static final java.lang.String CONFIG_NEWUSER_MEDIA
protected static final java.lang.String CONFIG_FALLBACK_LANGUAGE
protected static final java.lang.String CONFIG_FALLBACK_COUNTRY
protected static final java.lang.String CONFIG_FALLBACK_TO_ROOT
protected static final java.lang.String CONFIG_ROLE_MERGE
protected static final java.lang.String CONFIG_ROLE_MERGE_CONTROL
protected static final java.lang.String CONFIG_ROLE_MERGE_CONTROLLER
protected static final java.lang.String CONFIG_GROUP_MERGE
protected static final java.lang.String CONFIG_GROUP_MERGE_CONTROL
protected static final java.lang.String CONFIG_GROUP_MERGE_CONTROLLER
protected static final java.lang.String CONFIG_GROUP_MERGE_SECURITYREF
protected static final java.lang.String DEFAULT_CONFIG_RESOURCE_DEFAULT
protected static final java.lang.String DEFAULT_CONFIG_RESOURCE_EXT
protected static final boolean DEFAULT_CONFIG_SECURITY
protected static final boolean DEFAULT_CONFIG_ROLE_FALLBACK
protected static final java.lang.String DEFAULT_CONFIG_NEWUSER_TEMPLATE
protected static final java.lang.String DEFAULT_CONFIG_NEWGROUP_TEMPLATE
protected static final java.lang.String[] DEFAULT_CONFIG_NEWUSER_MEDIA
protected static final java.lang.String DEFAULT_CONFIG_ROLE_MERGE_CONTROL
protected static final java.lang.String DEFAULT_CONFIG_ROLE_MERGE_CONTROLLER
protected static final java.lang.String DEFAULT_CONFIG_GROUP_MERGE_CONTROL
protected static final java.lang.String DEFAULT_CONFIG_GROUP_MERGE_CONTROLLER
protected static final java.lang.String PATH_EXTENSION_DELIMITER
protected static final java.lang.String MSG_MISSING_PARAMETER
protected java.lang.Class profileClass
protected java.lang.Class locatorClass
protected java.lang.String root
protected java.lang.String resourceDefault
protected java.lang.String resourceExt
protected java.lang.String rolemergeControl
protected java.lang.String rolemergeController
protected java.lang.String groupmergeControl
protected java.lang.String groupmergeController
protected java.lang.String groupmergeSecurityref
protected java.lang.String newUserTemplate
protected java.lang.String newGroupTemplate
protected boolean useSecurity
protected boolean useRoleFallback
protected boolean useFallbackLanguage
protected boolean useFallbackCountry
protected boolean useFallbackToRoot
protected boolean useRoleMerge
protected boolean useGroupMerge
protected java.lang.String[] mediaTypes
| Constructor Detail |
public JetspeedProfilerService()
| Method Detail |
public Profile createProfile(org.apache.turbine.util.RunData data,
Profile profile)
throws ProfileException
createProfile in interface ProfilerServiceprofile - The description of the new profile to be created.
ProfileException
public void init(javax.servlet.ServletConfig conf)
throws org.apache.turbine.services.InitializationException
Service framework
conf - The ServletConfig
throws - a InitializationException if the service
fails to initialize
org.apache.turbine.services.InitializationExceptionpublic void shutdown()
Service framework
shutdown in interface org.apache.turbine.services.Initable
public Profile getProfile(org.apache.turbine.util.RunData data,
CapabilityMap cm)
throws ProfileException
getProfile in interface ProfilerServicecm - the CapabilityMap of the current requesting devicedata - The rundata object for the current request.
ProfileException
protected Profile getRoleProfile(JetspeedRunData rundata,
CapabilityMap cm)
throws java.lang.Exception
rundata - cm -
java.lang.Exception
protected Profile mergeRoleProfiles(org.apache.turbine.util.RunData data,
java.util.Vector profiles)
throws java.lang.Exception
data - profiles - Vector of profiles for all roles user is part of
java.lang.Exception
protected Profile getGroupProfile(JetspeedRunData rundata,
CapabilityMap cm)
throws java.lang.Exception
rundata - cm -
java.lang.Exception
protected Profile mergeGroupProfiles(org.apache.turbine.util.RunData data,
java.util.Vector profiles)
throws java.lang.Exception
data - profiles - Vector of profiles for all groups user is part of
java.lang.Exception
protected Profile fallbackProfile(org.apache.turbine.util.RunData data,
CapabilityMap cm)
throws ProfileException
cm - the CapabilityMap of the current requesting device
ProfileException
public Profile getProfile(org.apache.turbine.util.RunData rundata)
throws ProfileException
getProfile in interface ProfilerServicerundata - the rundata object for the current request
ProfileException
public Profile getProfile(org.apache.turbine.util.RunData data,
MimeType mt)
throws ProfileException
getProfile in interface ProfilerServicemt - the MimeType of the current requesting device
ProfileException
public Profile getProfile(ProfileLocator locator)
throws ProfileException
getProfile in interface ProfilerServicelocator - The locator containing criteria describing the profile.
ProfileException
protected void getLanguageSettings(Profile profile,
org.apache.turbine.util.RunData rundata)
protected PSMLDocument fallbackList(ProfileLocator original,
org.apache.turbine.util.RunData rundata)
protected PSMLDocument fallback(ProfileLocator locator)
protected java.lang.String getMediaType(org.apache.turbine.util.RunData rundata,
CapabilityMap cm)
cm - The CapabilityMap of the current requesting device.
protected void initConfiguration()
throws org.apache.turbine.services.InitializationException
throws - a InitializationException if the service
fails to initialize
org.apache.turbine.services.InitializationException
public org.apache.turbine.util.DynamicURI makeDynamicURI(org.apache.turbine.util.RunData data,
ProfileLocator locator)
throws ProfileException
makeDynamicURI in interface ProfilerServicedata - The rundata object for the current request.locator - The description of the profile.
ProfileExceptionpublic Profile createProfile()
createProfile in interface ProfilerServicepublic Profile createProfile(ProfileLocator locator)
createProfile in interface ProfilerServicelocator - The description of the profile.
public ProfileLocator createLocator()
createLocator in interface ProfilerService
public Profile createProfile(ProfileLocator locator,
Portlets portlets)
throws ProfileException
createProfile in interface ProfilerServicelocator - The description of the new profile to be created.portlets - The PSML tree
ProfileException
public Profile createProfile(org.apache.turbine.util.RunData data,
Profile profile,
java.lang.String contentType,
java.lang.String from)
throws ProfileException
ProfileException
public Profile createProfile(org.apache.turbine.util.RunData data,
Profile profile,
MimeType mt)
throws ProfileException
createProfile in interface ProfilerServiceprofile - The description of the new profile to be created.mt - The specific mime type, which is converted to a mediatype.
ProfileExceptionpublic void removeProfile(ProfileLocator locator)
removeProfile in interface ProfilerServicelocator - The profile locator criteria.public java.util.Iterator query(QueryLocator locator)
query in interface ProfilerServicelocator - The profile locator criteria.
public boolean useRoleProfileMerging()
ProfilerService
useRoleProfileMerging in interface ProfilerServiceProfilerService.useRoleProfileMerging()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||