|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
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 |
---|
static final java.lang.String FABRIC_PROJECT
static final java.lang.String FABRIC_NAMESPACE
static final java.lang.String APPLICATION_SUITE
static final java.lang.String APPLICATION
static final java.lang.String ACCESS_SERVICE
static final java.lang.String SUBSCRIBABLE_SERVICE
static final java.lang.String CHANNEL
static final java.lang.String WEB_SERVICE
static final java.lang.String ENVIRONMENT
static final java.lang.String SERVICE_LEVEL
static final java.lang.String ORGANIZATION
static final java.lang.String ROLE
static final java.lang.String GROUP
static final java.lang.String USER
static final java.lang.String INSTANT
Method Detail |
---|
Policy buildPolicy(Context context) throws PolicyException, InvalidContextException
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:
FABRIC_PROJECT
- URI of an application suite instanceFABRIC_NAMESPACE
- URI of an application instanceAPPLICATION_SUITE
- URI of an application suite instanceAPPLICATION
- URI of an application instanceSUBSCRIBABLE_SERVICE
- URI of a subscribable business service instanceCHANNEL
- URI of a channel instanceWEB_SERVICE
- URI of a ServiceInterfaceENVIRONMENT
- URI of an Environment instanceSERVICE_LEVEL
- URI of a ServiceLevel instanceORGANIZATION
- URI of an organization instanceROLE
- URI of a role instanceGROUP
- URI of a group instanceUSER
- URI of a user instance
context
- the context
PolicyException
- to signal that an error retrieving the policy has occurred
InvalidContextException
- to indicate that the specified context is not valid for
policy construction
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |