info.magnolia.module.exchangesimple
Class ActivationContent

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

public class ActivationContent
extends java.lang.Object
implements java.lang.Cloneable

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

Author:
Sameer Charles $Id: ActivationContent.java 41137 2011-01-06 18:19:25Z gjoseph $

Constructor Summary
ActivationContent()
           
 
Method Summary
 void addFile(java.lang.String resourceId, java.io.File file)
          Adds resource to the list of files for transfer.
 void addProperty(java.lang.String key, java.lang.String value)
          Adds property to the list of properties.
 java.lang.Object clone()
           
 java.io.File getFile(java.lang.String resourceId)
           
 java.util.Map<java.lang.String,java.io.File> getFiles()
          Cats collection of all files.
 java.util.Map<java.lang.String,java.lang.String> getProperties()
          Gets collection of all properties.
 java.lang.String getproperty(java.lang.String key)
          Gets value of property with specified key or null if such property was not set.
 void removeFile(java.lang.String resourceId)
           
 void removeProperty(java.lang.String key)
           
 void setProperty(java.lang.String key, java.lang.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(java.lang.String resourceId,
                    java.io.File file)
Adds resource to the list of files for transfer.


getFile

public java.io.File getFile(java.lang.String resourceId)

removeFile

public void removeFile(java.lang.String resourceId)

getFiles

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


addProperty

public void addProperty(java.lang.String key,
                        java.lang.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(java.lang.String key,
                        java.lang.String value)
See Also:
setProperty(String, String)

getproperty

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


removeProperty

public void removeProperty(java.lang.String key)

getProperties

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


clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object


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