org.n52.security.enforcement.artifact
Interface Transferable

All Known Implementing Classes:
TransferableImpl

public interface Transferable

Tasks of Interface Transferable.

  1. A Transferable is a Object, wich is Transported between the Backend and Frontend of the System
  2. It holds a PayLoad wich could be writen to different DCPs
  3. It holds a Set of TransferAttributes, wich describe the special aspects of the payload, or holds other special Information for different DCPs

Author:
reiprecht

Method Summary
 void addAttribute(TransferAttribute pAttribute)
          Adds a Attribute to the Set and stores it under pAttribute.getName().
 TransferAttribute getAttribute(java.lang.String pName)
          Gets the TransferAttribute which are stored under pName.
 java.util.Collection getAttributeNames()
          Returns the Collection of keys, under which TransferAttributes.
 java.util.Collection getAttributes()
          Returns the Collection of TransferAttributes which stored in.
 java.lang.Object getAttributeValue(java.lang.String pName)
          Gets the Value of the TransferAttribute which are stored under pName.
 Payload getPayload()
          Gets the PayLoad of this Transferable.
 void setPayload(Payload pPayload)
          Sets the Payload of this Transferable.
 

Method Detail

getPayload

Payload getPayload()
Gets the PayLoad of this Transferable.

Returns:

setPayload

void setPayload(Payload pPayload)
Sets the Payload of this Transferable.


getAttributeNames

java.util.Collection getAttributeNames()
Returns the Collection of keys, under which TransferAttributes. are stored

Returns:

getAttributes

java.util.Collection getAttributes()
Returns the Collection of TransferAttributes which stored in. this Transferable

Returns:

getAttribute

TransferAttribute getAttribute(java.lang.String pName)
Gets the TransferAttribute which are stored under pName.

Parameters:
pName -
Returns:
null <==> (!getAttributeNames.contains(pKey) || pKey==null)

getAttributeValue

java.lang.Object getAttributeValue(java.lang.String pName)
Gets the Value of the TransferAttribute which are stored under pName.

Parameters:
pName -
Returns:
null <==> (!getAttributeNames.contains(pName) || pName==null)
short for getAttribute(pName).getValue();

addAttribute

void addAttribute(TransferAttribute pAttribute)
Adds a Attribute to the Set and stores it under pAttribute.getName().

Parameters:
pAttribute - The Attribute


Copyright © 2004-2009 52north.org. All Rights Reserved.