org.glite.authz.pep.obligation.eesmap
Class EESObligationHandler

java.lang.Object
  extended by org.glite.authz.pep.obligation.BaseObligationHandler
      extended by org.glite.authz.pep.obligation.eesmap.EESObligationHandler
All Implemented Interfaces:
org.glite.authz.pep.obligation.ObligationHandler

public class EESObligationHandler
extends BaseObligationHandler
implements org.glite.authz.pep.obligation.ObligationHandler

TODO documentation


Constructor Summary
EESObligationHandler(java.lang.String name, java.lang.String obligationId, java.lang.String endPoint)
          Constructor.
 
Method Summary
 boolean evaluateObligation(org.glite.authz.common.model.Request request, org.glite.authz.common.model.Result result)
           
protected  org.glite.authz.common.model.Response extractResponseFromMessageContext(org.glite.authz.common.context.DecisionRequestContext messageContext)
          TODO DOC extracts EES Response object from the message context inbound message (SOAP response)
 java.lang.String getEESEndpoint()
           
 java.lang.String getEntityId()
           
protected  org.glite.authz.common.model.Request mixObligationsInRequest(org.glite.authz.common.model.Request request, org.glite.authz.common.model.Result result)
          TODO EXPLAIN THE BLACK MAGIC!!!!!!
protected  boolean resultContainsHandledObligationId(org.glite.authz.common.model.Result result)
          Returns true iff the result contains at least one handled obligation
protected  void sendRequestToEES(org.glite.authz.common.context.DecisionRequestContext messageContext, org.glite.authz.common.model.Request request)
          Sends the "special" request to the EES server
 void setEntityId(java.lang.String entityId)
          Sets the OH entity ID
 
Methods inherited from class org.glite.authz.pep.obligation.BaseObligationHandler
equals, getHandlerPrecedence, getId, getObligationId, hashCode, setId
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.glite.authz.pep.obligation.ObligationHandler
getHandlerPrecedence, getId, getObligationId
 

Constructor Detail

EESObligationHandler

public EESObligationHandler(java.lang.String name,
                            java.lang.String obligationId,
                            java.lang.String endPoint)
Constructor.

Parameters:
name - The obligation handler name
obligationId - The ID of the handled obligation
endPoint - The EES endpoint URL
Method Detail

setEntityId

public void setEntityId(java.lang.String entityId)
Sets the OH entity ID

Parameters:
entityId -

mixObligationsInRequest

protected org.glite.authz.common.model.Request mixObligationsInRequest(org.glite.authz.common.model.Request request,
                                                                       org.glite.authz.common.model.Result result)
TODO EXPLAIN THE BLACK MAGIC!!!!!!

Parameters:
request -
result -
Returns:

getEntityId

public java.lang.String getEntityId()
Returns:
the OH entityID

getEESEndpoint

public java.lang.String getEESEndpoint()
Returns:
the EES endpoint URL

evaluateObligation

public boolean evaluateObligation(org.glite.authz.common.model.Request request,
                                  org.glite.authz.common.model.Result result)
                           throws org.glite.authz.pep.obligation.ObligationProcessingException
Specified by:
evaluateObligation in interface org.glite.authz.pep.obligation.ObligationHandler
Throws:
org.glite.authz.pep.obligation.ObligationProcessingException

resultContainsHandledObligationId

protected boolean resultContainsHandledObligationId(org.glite.authz.common.model.Result result)
Returns true iff the result contains at least one handled obligation

Parameters:
result - the result
Returns:
true iff the result contains at least one handled obligation

extractResponseFromMessageContext

protected org.glite.authz.common.model.Response extractResponseFromMessageContext(org.glite.authz.common.context.DecisionRequestContext messageContext)
                                                                           throws EESObligationHandlerException
TODO DOC extracts EES Response object from the message context inbound message (SOAP response)

Parameters:
messageContext -
Returns:
Throws:
EESObligationHandlerException

sendRequestToEES

protected void sendRequestToEES(org.glite.authz.common.context.DecisionRequestContext messageContext,
                                org.glite.authz.common.model.Request request)
                         throws EESObligationHandlerException
Sends the "special" request to the EES server

Parameters:
messageContext - the message context
request - the request to send
Throws:
EESObligationHandlerException - if an error occurs while sending the request


Copyright © 2008-2012 EMI - European Middleware Initiative. All Rights Reserved.