com.tivoli.twg.engine
Interface TWGProtectedGetSetInterface

All Superinterfaces:
TWGGetSetInterface
All Known Implementing Classes:
TWGUser

public interface TWGProtectedGetSetInterface
extends TWGGetSetInterface

Interface class for protected attribute get/set interface for objects: requests include TWGUser object of user requesting action, allowing rejection of unauthorized requests.


Method Summary
 DataValue getAttributeValue(java.lang.String id, java.util.Locale loc, TWGUser usr)
          Get value of attribute with given ID
 boolean setAttributeValue(java.lang.String id, DataValue val, TWGUser usr)
          Set value of attribute with given ID
 
Methods inherited from interface com.tivoli.twg.engine.TWGGetSetInterface
getAttributeIDList, getAttributeType, getAttributeValue, setAttributeValue
 

Method Detail

getAttributeValue

public DataValue getAttributeValue(java.lang.String id,
                                   java.util.Locale loc,
                                   TWGUser usr)
                            throws UserNotAuthorizedException
Get value of attribute with given ID

Parameters:
id - - attribute ID requested
loc - - locale to use for value, if applicable
usr - - user requesting attribute
Returns:
value object, or null if no value
Throws:
UserNotAuthorizedException - if request not allowed

setAttributeValue

public boolean setAttributeValue(java.lang.String id,
                                 DataValue val,
                                 TWGUser usr)
                          throws UserNotAuthorizedException
Set value of attribute with given ID

Parameters:
id - - attribute ID to be set
val - - attribute value to be set
usr - - user setting attribute
Returns:
true if set successful, false if not successful
Throws:
UserNotAuthorizedException - if request not allowed