idman.neg.impl
Class AppelRulesetHandler

java.lang.Object
  |
  +--idman.neg.impl.AppelRulesetHandler

class AppelRulesetHandler
extends java.lang.Object

Handlerclass for the ruleset. Splits the ruleset in rules and performs the evaluation.

Since:
11.07.2002
Version:
$Id: AppelRulesetHandler.java,v 1.24 2004/01/29 09:40:30 tk4 Exp $
Author:
Sven Doering

Field Summary
static boolean debug
          debugflag
 
Constructor Summary
(package private) AppelRulesetHandler(org.w3c.dom.Document ruleset)
          Creates the object.
 
Method Summary
(package private)  boolean describesAll(java.util.Collection c)
           
 void evaluateDocument(org.w3c.dom.Element p3pdocument, java.util.Map receivedRecipient, java.util.Map receivedPurpose, idman.neg.impl.NegotiationHandlerImpl callback, NegotiationHandlerImpl.Mapper mapper)
          Evaluates the given p3p-document within this RulesetHandler.
 java.util.List getAllowedData()
          Returns accessible data in a List (means data in actual p3p-document allowed to access).
(package private)  java.lang.String[] getPurpose(java.lang.String key, java.lang.String retention)
           
(package private)  java.lang.String[] getRecipient(java.lang.String key, java.lang.String retention)
           
 java.util.List getRequiredData()
          Returns a List with required data for disclosure of further data.
(package private)  java.lang.String[] getRetention(java.lang.String key)
           
 boolean hasBlockRuleFired()
          Returns true if at least one rule with behavior "block" fired.
protected  void print(org.w3c.dom.Element e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debug

public static boolean debug
debugflag

Constructor Detail

AppelRulesetHandler

AppelRulesetHandler(org.w3c.dom.Document ruleset)
              throws java.lang.Exception
Creates the object.

Parameters:
ruleset - Rules for data disclosure
Method Detail

getRetention

java.lang.String[] getRetention(java.lang.String key)

getRecipient

java.lang.String[] getRecipient(java.lang.String key,
                                java.lang.String retention)

getPurpose

java.lang.String[] getPurpose(java.lang.String key,
                              java.lang.String retention)

describesAll

boolean describesAll(java.util.Collection c)

evaluateDocument

public void evaluateDocument(org.w3c.dom.Element p3pdocument,
                             java.util.Map receivedRecipient,
                             java.util.Map receivedPurpose,
                             idman.neg.impl.NegotiationHandlerImpl callback,
                             NegotiationHandlerImpl.Mapper mapper)
                      throws java.lang.Exception
Evaluates the given p3p-document within this RulesetHandler.

Parameters:
p3pdocument - Document with request or response
receivedRecipient - received recipients
receivedPurpose - received purposes
callback - where to ask if sending is allowed by user
mapper - additional info for callback
java.lang.Exception

getAllowedData

public java.util.List getAllowedData()
Returns accessible data in a List (means data in actual p3p-document allowed to access).

Returns:
Lisst accessible data

getRequiredData

public java.util.List getRequiredData()
Returns a List with required data for disclosure of further data. Eg. "#user.jobtitle" requires PersonalData{"user.name"}.

Returns:
List negotiateconditions

hasBlockRuleFired

public boolean hasBlockRuleFired()
Returns true if at least one rule with behavior "block" fired.

Returns:
boolean true, if atleast one block-rule fired; false, if none fired.

print

protected void print(org.w3c.dom.Element e)
              throws java.lang.Exception
java.lang.Exception


Copyright © 2003 DRIM Team. All Rights Reserved.