org.apache.jetspeed.services
Class Profiler

java.lang.Object
  extended byorg.apache.jetspeed.services.Profiler

public class Profiler
extends java.lang.Object

This is a commodity static accessor class around the ProfilerService interface

Version:
$Id: Profiler.java,v 1.21 2004/02/23 04:00:57 jford Exp $
Author:
David Sean Taylor, Mark Orciuch
See Also:
Profiler, ProfilerService

Field Summary
static java.lang.String DEFAULT_EXTENSION
           
static java.lang.String DEFAULT_PROFILE
           
static java.lang.String FULL_DEFAULT_PROFILE
           
static java.lang.String PARAM_ANON
           
static java.lang.String PARAM_COUNTRY
           
static java.lang.String PARAM_GROUP
           
static java.lang.String PARAM_LANGUAGE
           
static java.lang.String PARAM_MEDIA_TYPE
           
static java.lang.String PARAM_PAGE
           
static java.lang.String PARAM_ROLE
           
static java.lang.String PARAM_USER
           
 
Constructor Summary
Profiler()
           
 
Method Summary
static ProfileLocator createLocator()
           
static Profile createProfile()
           
static Profile createProfile(ProfileLocator locator)
           
static Profile createProfile(ProfileLocator locator, Portlets portlets)
           
static Profile createProfile(org.apache.turbine.util.RunData data, Profile profile)
           
static Profile createProfile(org.apache.turbine.util.RunData data, Profile profile, MimeType mt)
           
static Profile getProfile(ProfileLocator locator)
          get the Profile object using a profile locator
static Profile getProfile(org.apache.turbine.util.RunData rundata)
           
static Profile getProfile(org.apache.turbine.util.RunData rundata, CapabilityMap cm)
          get the Profile object using the Rundata state and capability map this is the mapping functionality of the profiler
static Profile getProfile(org.apache.turbine.util.RunData data, MimeType mt)
          Deprecated. Do not use a profiler method based on MimeType
static org.apache.turbine.util.DynamicURI makeDynamicURI(org.apache.turbine.util.RunData data, ProfileLocator locator)
           
static java.util.Iterator query(QueryLocator locator)
           
static void removeProfile(ProfileLocator locator)
           
static boolean useRoleProfileMerging()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARAM_MEDIA_TYPE

public static final java.lang.String PARAM_MEDIA_TYPE
See Also:
Constant Field Values

PARAM_ROLE

public static final java.lang.String PARAM_ROLE
See Also:
Constant Field Values

PARAM_GROUP

public static final java.lang.String PARAM_GROUP
See Also:
Constant Field Values

PARAM_PAGE

public static final java.lang.String PARAM_PAGE
See Also:
Constant Field Values

PARAM_USER

public static final java.lang.String PARAM_USER
See Also:
Constant Field Values

PARAM_ANON

public static final java.lang.String PARAM_ANON
See Also:
Constant Field Values

PARAM_LANGUAGE

public static final java.lang.String PARAM_LANGUAGE
See Also:
Constant Field Values

PARAM_COUNTRY

public static final java.lang.String PARAM_COUNTRY
See Also:
Constant Field Values

DEFAULT_PROFILE

public static final java.lang.String DEFAULT_PROFILE
See Also:
Constant Field Values

FULL_DEFAULT_PROFILE

public static final java.lang.String FULL_DEFAULT_PROFILE
See Also:
Constant Field Values

DEFAULT_EXTENSION

public static final java.lang.String DEFAULT_EXTENSION
See Also:
Constant Field Values
Constructor Detail

Profiler

public Profiler()
Method Detail

getProfile

public static Profile getProfile(org.apache.turbine.util.RunData rundata,
                                 CapabilityMap cm)
                          throws ProfileException
get the Profile object using the Rundata state and capability map this is the mapping functionality of the profiler

Parameters:
rundata - The rundata object for the current request.
cm - The device capability map for the current request.
Returns:
a Profile object if found by the manager or null
Throws:
ProfileException

getProfile

public static Profile getProfile(org.apache.turbine.util.RunData rundata)
                          throws ProfileException
Throws:
ProfileException
See Also:
ProfilerService.getProfile(org.apache.turbine.util.RunData, org.apache.jetspeed.capability.CapabilityMap)

getProfile

public static Profile getProfile(org.apache.turbine.util.RunData data,
                                 MimeType mt)
                          throws ProfileException
Deprecated. Do not use a profiler method based on MimeType

Throws:
ProfileException
See Also:
ProfilerService.getProfile(org.apache.turbine.util.RunData, org.apache.jetspeed.capability.CapabilityMap)

getProfile

public static Profile getProfile(ProfileLocator locator)
                          throws ProfileException
get the Profile object using a profile locator

Parameters:
locator - The locator containing criteria describing the profile.
Returns:
a new Profile object
Throws:
ProfileException

makeDynamicURI

public static org.apache.turbine.util.DynamicURI makeDynamicURI(org.apache.turbine.util.RunData data,
                                                                ProfileLocator locator)
                                                         throws ProfileException
Throws:
ProfileException
See Also:
ProfilerService.makeDynamicURI(org.apache.turbine.util.RunData, org.apache.jetspeed.om.profile.ProfileLocator)

createProfile

public static Profile createProfile()
See Also:
ProfilerService.createProfile()

createProfile

public static Profile createProfile(ProfileLocator locator)
See Also:
ProfilerService.createProfile()

createLocator

public static ProfileLocator createLocator()
See Also:
ProfilerService.createProfile()

createProfile

public static Profile createProfile(org.apache.turbine.util.RunData data,
                                    Profile profile)
                             throws ProfileException
Throws:
ProfileException
See Also:
ProfilerService.createProfile()

createProfile

public static Profile createProfile(org.apache.turbine.util.RunData data,
                                    Profile profile,
                                    MimeType mt)
                             throws ProfileException
Throws:
ProfileException
See Also:
ProfilerService.createProfile()

createProfile

public static Profile createProfile(ProfileLocator locator,
                                    Portlets portlets)
                             throws ProfileException
Throws:
ProfileException
See Also:
ProfilerService.createProfile()

removeProfile

public static void removeProfile(ProfileLocator locator)
                          throws ProfileException
Throws:
ProfileException
See Also:
ProfilerService.removeProfile(org.apache.jetspeed.om.profile.ProfileLocator)

query

public static java.util.Iterator query(QueryLocator locator)
See Also:
ProfilerService.query(org.apache.jetspeed.om.profile.QueryLocator)

useRoleProfileMerging

public static boolean useRoleProfileMerging()
See Also:
ProfilerService.useRoleProfileMerging()


Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.