org.persvr.datasource
Class MapInitializer

java.lang.Object
  extended by org.persvr.datasource.MapInitializer
All Implemented Interfaces:
PersistableInitializer

public class MapInitializer
extends java.lang.Object
implements PersistableInitializer


Constructor Summary
MapInitializer()
           
 
Method Summary
 void finished()
          This should be called to indicate that the initialization is complete
 Persistable getInitializingObject()
          This can be called to return the newly initialized object
 java.util.Map<java.lang.String,java.lang.Object> getMap()
           
 void initializeFunction(java.lang.String source, boolean authorizedOnServer)
           
 void initializeList(java.util.Iterator iterator)
          This should be called to indicate that the new data object should be a list and provides an iterator to populate the list The iterator may not go through all the values in the list at the initial load, but may wait until they are needed (which may be much later)
 void setAcl(java.security.acl.Acl acl)
           
 void setCacheLevel(long time)
           
 void setParent(ObjectId objectToInheritFrom)
          This should be called to initialize an object to inherit it's acl and schema from another object.
 void setPersistentAcl(ObjectId aclId)
           
 void setProperty(java.lang.String name, java.lang.Object value)
          This should be called to initialize a property value
 void setProperty(java.lang.String name, java.lang.Object value, int attributes)
          This can be called to initialize a property value with attributes (like DontEnum, and ReadOnly)
 void setSchema(Persistable schema)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapInitializer

public MapInitializer()
Method Detail

finished

public void finished()
Description copied from interface: PersistableInitializer
This should be called to indicate that the initialization is complete

Specified by:
finished in interface PersistableInitializer

getInitializingObject

public Persistable getInitializingObject()
Description copied from interface: PersistableInitializer
This can be called to return the newly initialized object

Specified by:
getInitializingObject in interface PersistableInitializer
Returns:
the new data object

initializeFunction

public void initializeFunction(java.lang.String source,
                               boolean authorizedOnServer)

initializeList

public void initializeList(java.util.Iterator iterator)
Description copied from interface: PersistableInitializer
This should be called to indicate that the new data object should be a list and provides an iterator to populate the list The iterator may not go through all the values in the list at the initial load, but may wait until they are needed (which may be much later)

Specified by:
initializeList in interface PersistableInitializer

setAcl

public void setAcl(java.security.acl.Acl acl)

setCacheLevel

public void setCacheLevel(long time)

setParent

public void setParent(ObjectId objectToInheritFrom)
Description copied from interface: PersistableInitializer
This should be called to initialize an object to inherit it's acl and schema from another object.

Specified by:
setParent in interface PersistableInitializer

setPersistentAcl

public void setPersistentAcl(ObjectId aclId)

setProperty

public void setProperty(java.lang.String name,
                        java.lang.Object value)
Description copied from interface: PersistableInitializer
This should be called to initialize a property value

Specified by:
setProperty in interface PersistableInitializer

setProperty

public void setProperty(java.lang.String name,
                        java.lang.Object value,
                        int attributes)
Description copied from interface: PersistableInitializer
This can be called to initialize a property value with attributes (like DontEnum, and ReadOnly)

Specified by:
setProperty in interface PersistableInitializer

setSchema

public void setSchema(Persistable schema)

getMap

public java.util.Map<java.lang.String,java.lang.Object> getMap()