com.webify.wsf.engine.policy
Interface PolicyManager


public interface PolicyManager

The policy manager is responsible for building policies based on contextual information and for customizing policies for personalization purposes.
See buildPolicy(Context) for details about how various well defined policy dimensions are treated.

Version:
$Revision: $
Author:
msanchez
See Also:
Context

Field Summary
static java.lang.String ACCESS_SERVICE
          Deprecated. No replacement planned.
static java.lang.String APPLICATION
          Context property for the Application policy dimenision.
static java.lang.String APPLICATION_SUITE
          Context property for the ApplicationSuite policy dimenision.
static java.lang.String CHANNEL
          Context property for the Channel policy dimenision.
static java.lang.String ENVIRONMENT
          Context property for the Environment policy dimenision.
static java.lang.String FABRIC_NAMESPACE
          Context property for the (Fabric) Namespace policy dimenision.
static java.lang.String FABRIC_PROJECT
          Context property for the FabricProject policy dimenision.
static java.lang.String GROUP
          Context property for the Group policy dimenision.
static java.lang.String INSTANT
          Context property used to indicate the instant in time that a policy should be built for.
static java.lang.String ORGANIZATION
          Context property for the Organization policy dimenision.
static java.lang.String ROLE
          Context property for the Role policy dimenision.
static java.lang.String SERVICE_LEVEL
          Context property for the Service Level policy dimenision.
static java.lang.String SUBSCRIBABLE_SERVICE
          Context property for the SubscribableService policy dimenision.
static java.lang.String USER
          Context property for the User policy dimenision.
static java.lang.String WEB_SERVICE
          Context property for the WebService policy dimenision.
 
Method Summary
 Policy buildPolicy(Context context)
          Builds a policy for the specified context.
 

Field Detail

FABRIC_PROJECT

static final java.lang.String FABRIC_PROJECT
Context property for the FabricProject policy dimenision. Value should be the URI of a FabricProject instance.

See Also:
Constant Field Values

FABRIC_NAMESPACE

static final java.lang.String FABRIC_NAMESPACE
Context property for the (Fabric) Namespace policy dimenision. Value should be the URI of a Namespace instance.

See Also:
Constant Field Values

APPLICATION_SUITE

static final java.lang.String APPLICATION_SUITE
Context property for the ApplicationSuite policy dimenision. Value should be the URI of an ApplicationSuite instance.

See Also:
Constant Field Values

APPLICATION

static final java.lang.String APPLICATION
Context property for the Application policy dimenision. Value should be the URI of an Application instance.

See Also:
Constant Field Values

ACCESS_SERVICE

static final java.lang.String ACCESS_SERVICE
Deprecated. No replacement planned.
Context property for the AccessService policy dimenision. Value should be the URI of an AccessService instance.

See Also:
Constant Field Values

SUBSCRIBABLE_SERVICE

static final java.lang.String SUBSCRIBABLE_SERVICE
Context property for the SubscribableService policy dimenision. Value should be the URI of a SubscribableService instance.

See Also:
Constant Field Values

CHANNEL

static final java.lang.String CHANNEL
Context property for the Channel policy dimenision. Value should be the URI of a Channel instance.

See Also:
Constant Field Values

WEB_SERVICE

static final java.lang.String WEB_SERVICE
Context property for the WebService policy dimenision. With WBSF 6.0, this was the URI of a WebService instance. In 6.0.2, this should point to the URI of a ServiceInterface.

See Also:
Constant Field Values

ENVIRONMENT

static final java.lang.String ENVIRONMENT
Context property for the Environment policy dimenision. Value should be the URI of a Environment instance.

See Also:
Constant Field Values

SERVICE_LEVEL

static final java.lang.String SERVICE_LEVEL
Context property for the Service Level policy dimenision. Value should be the URI of a ServiceLevel instance.

See Also:
Constant Field Values

ORGANIZATION

static final java.lang.String ORGANIZATION
Context property for the Organization policy dimenision. Value should be the URI of a Organization instance.

See Also:
Constant Field Values

ROLE

static final java.lang.String ROLE
Context property for the Role policy dimenision. Value can be the URI of a Role class or a Role instance. In the former case, rules written for the specified class or any of its supertypes are considered. In the latter case, rules written specifically for the role instance are considered in addition to those about the role's type and supertypes.

See Also:
Constant Field Values

GROUP

static final java.lang.String GROUP
Context property for the Group policy dimenision. Value should be the URI of a Group instance.

See Also:
Constant Field Values

USER

static final java.lang.String USER
Context property for the User policy dimenision. Value should be the URI of a User instance.

See Also:
Constant Field Values

INSTANT

static final java.lang.String INSTANT
Context property used to indicate the instant in time that a policy should be built for. The value should be the number of milliseconds since January 1, 1970, 00:00:00 GMT.

See Also:
Constant Field Values
Method Detail

buildPolicy

Policy buildPolicy(Context context)
                   throws PolicyException,
                          InvalidContextException
Builds a policy for the specified context.

The context must contain properties of the form:

 URI_of_ontology_class = URI_of_ontology_instance
 URI_of_content_property = content_property_value (URI or simple type)
 

Some common context property keys are defined as constants on this interface. Their natural ordering, from most general to most specific, is:

Parameters:
context - the context
Returns:
the policy for the given context
Throws:
PolicyException - to signal that an error retrieving the policy has occurred
InvalidContextException - to indicate that the specified context is not valid for policy construction


Copyright © 2002-2009 IBM. All Rights Reserved.