it.eng.rdlab.soa3.pm.connector.beans
Class Obligation

java.lang.Object
  extended by it.eng.rdlab.soa3.pm.connector.beans.Obligation

public class Obligation
extends Object

A bean representing an obligation

Author:
Ciro Formisano (ENG)

Constructor Summary
Obligation()
           
 
Method Summary
 void addAttribute(String name, String datatype, String value)
          Adds an obligation attribute
 Map<String,Map<String,String>> getAttributes()
          Gets all the attributes
 String getObligationScope()
          Gives the obligation scope
 String getValue()
          Gets the obligatio id
 boolean isFulfillOn()
          Tells if the obligation will be executed at a permit or a deny
 void setActionScope(boolean actionScope)
          Sets the obligation scope
 void setFulfillOn(boolean fulfillOn)
          Sets the fulfill value
 void setValue(String value)
          Sets the obligation id
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Obligation

public Obligation()
Method Detail

addAttribute

public void addAttribute(String name,
                         String datatype,
                         String value)
Adds an obligation attribute

Parameters:
name -
datatype -
value -

getValue

public String getValue()
Gets the obligatio id

Returns:
the obligation id

setValue

public void setValue(String value)
Sets the obligation id

Parameters:
value -

getAttributes

public Map<String,Map<String,String>> getAttributes()
Gets all the attributes

Returns:
the obligation attributes

isFulfillOn

public boolean isFulfillOn()
Tells if the obligation will be executed at a permit or a deny

Returns:
true if is "permitted", false otherwise

setFulfillOn

public void setFulfillOn(boolean fulfillOn)
Sets the fulfill value

Parameters:
fulfillOn - true if permit, false otherwise

getObligationScope

public String getObligationScope()
Gives the obligation scope

Returns:
action or resource

setActionScope

public void setActionScope(boolean actionScope)
Sets the obligation scope

Parameters:
actionScope: - true if is an action scope, false if it's a resource scope


Copyright © 2013. All Rights Reserved.