info.magnolia.module.exchangesimple
Class ActivationContent

java.lang.Object
  extended by info.magnolia.module.exchangesimple.ActivationContent
All Implemented Interfaces:
Cloneable

public class ActivationContent
extends Object
implements Cloneable

Container for all information about activated (to be) content.

Author:
Sameer Charles $Id$

Constructor Summary
ActivationContent()
           
 
Method Summary
 void addFile(String resourceId, File file)
          Adds resource to the list of files for transfer.
 void addProperty(String key, String value)
          Adds property to the list of properties.
 Object clone()
           
 File getFile(String resourceId)
           
 Map<String,File> getFiles()
          Cats collection of all files.
 Map<String,String> getProperties()
          Gets collection of all properties.
 String getproperty(String key)
          Gets value of property with specified key or null if such property was not set.
 void removeFile(String resourceId)
           
 String removeProperty(String key)
           
 void setProperty(String key, String value)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActivationContent

public ActivationContent()
Method Detail

addFile

public void addFile(String resourceId,
                    File file)
Adds resource to the list of files for transfer.


getFile

public File getFile(String resourceId)

removeFile

public void removeFile(String resourceId)

getFiles

public Map<String,File> getFiles()
Cats collection of all files. This collection is not a copy, but a reference to internal collection!


addProperty

public void addProperty(String key,
                        String value)
Adds property to the list of properties. Null values are automatically converted to empty strings. If the key already exists, existing value will be replaced with the one provided to this method.


setProperty

public void setProperty(String key,
                        String value)
See Also:
setProperty(String, String)

getproperty

public String getproperty(String key)
Gets value of property with specified key or null if such property was not set.


removeProperty

public String removeProperty(String key)

getProperties

public Map<String,String> getProperties()
Gets collection of all properties. Such collection is not a copy, but the reference to internal collection!


clone

public Object clone()
Overrides:
clone in class Object


Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.