gov.lanl.RAD.Impl
Class DynAttrSerImpl

java.lang.Object
  |
  +--org.omg.PortableServer.Servant
        |
        +--org.omg.DfResourceAccessDecision.DynamicAttributeServicePOA
              |
              +--gov.lanl.RAD.AbstractDynamicAttributeService
                    |
                    +--gov.lanl.RAD.Impl.DynAttrSerImpl
All Implemented Interfaces:
org.omg.DfResourceAccessDecision.DynamicAttributeServiceOperations, org.omg.CORBA.portable.InvokeHandler

public class DynAttrSerImpl
extends AbstractDynamicAttributeService

Returns Dynamic Attributes of the user. Currently dynamic attributes are generated based only on patient-user relationship. They can be generated based on other mechanisms also (eg. time of day etc).

 

Field Summary
 
Fields inherited from class gov.lanl.RAD.AbstractDynamicAttributeService
name, orb, props
 
Constructor Summary
DynAttrSerImpl()
           
DynAttrSerImpl(java.lang.String name, java.lang.String configFile)
          Creates a RelationShipService object which it needs to consult to return dynamic attributes
 
Method Summary
 org.omg.Security.SecAttribute[] get_dynamic_attributes(org.omg.Security.SecAttribute[] attribute_list, org.omg.DfResourceAccessDecision.ResourceName resource_name, java.lang.String operation)
          Returns dynamic attributes along with the input static attributes.
 void setProperties(java.lang.String file)
          In addition to set the Properties (in the abstract class) create the RelationShip Service used in this service
 
Methods inherited from class gov.lanl.RAD.AbstractDynamicAttributeService
setName, setOrb
 
Methods inherited from class org.omg.DfResourceAccessDecision.DynamicAttributeServicePOA
_all_interfaces, _invoke, _this, _this
 
Methods inherited from class org.omg.PortableServer.Servant
_default_POA, _get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynAttrSerImpl

public DynAttrSerImpl()

DynAttrSerImpl

public DynAttrSerImpl(java.lang.String name,
                      java.lang.String configFile)
Creates a RelationShipService object which it needs to consult to return dynamic attributes

Method Detail

setProperties

public void setProperties(java.lang.String file)
In addition to set the Properties (in the abstract class) create the RelationShip Service used in this service

Overrides:
setProperties in class AbstractDynamicAttributeService
Parameters:
file -

get_dynamic_attributes

public org.omg.Security.SecAttribute[] get_dynamic_attributes(org.omg.Security.SecAttribute[] attribute_list,
                                                              org.omg.DfResourceAccessDecision.ResourceName resource_name,
                                                              java.lang.String operation)
                                                       throws org.omg.DfResourceAccessDecision.RadComponentError
Returns dynamic attributes along with the input static attributes. The dynamic attributes are generated based on Patient-User relationship

org.omg.DfResourceAccessDecision.RadComponentError
Parameters:
attribute_list - is the list of static attributes
resource_name - is the resource being requested
operation - states whether the resource is requested for READ/ADD/EDIT
Returns:
SecAttribute[] which contains the original static attributes as well as the newly generated dynamic attributes