com.waveset.object
Class PersistentObject.InitialInstance

java.lang.Object
  extended bycom.waveset.object.PersistentObject.InitialInstance
Enclosing class:
PersistentObject

public static class PersistentObject.InitialInstance
extends java.lang.Object

An inner class describing an "initial instance" of a persistent object that is to be automatically added to a repository when it is created.

In addition to to the PersistentObject instance, we also define a set of extended properties that the repository will persist with the object.


Constructor Summary
protected PersistentObject.InitialInstance(PersistentObject po)
          Constructs an initial instance to be seeded in any new repository.
protected PersistentObject.InitialInstance(PersistentObject po, boolean neverDelete, boolean neverModify, boolean neverRename)
          Constructs an initial instance to be seeded in any new repository.
 
Method Summary
 PersistentObject getPersistentObject()
          Get the persistent object to be created.
 boolean neverDelete()
          Returns true if the object must never be deleted.
 boolean neverModify()
          Returns true if the object must never be modified.
 boolean neverRename()
          Returns true if the object must never be renamed.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PersistentObject.InitialInstance

protected PersistentObject.InitialInstance(PersistentObject po)
Constructs an initial instance to be seeded in any new repository. The seeded item can be deleted, modified, or renamed.

NOTE: The repository will try to preserve any id value set in the persistent object. Although this violates the normal rules of repository behavior, it is necessary in order to recognize initial items that may be renamed.


PersistentObject.InitialInstance

protected PersistentObject.InitialInstance(PersistentObject po,
                                           boolean neverDelete,
                                           boolean neverModify,
                                           boolean neverRename)
Constructs an initial instance to be seeded in any new repository. By default, the seeded item can be deleted, modified, or renamed.

Parameters:
neverDelete - - if true, prevent anyone from deleting the item
neverModify - - if true, prevent anyone from changing the item
neverRename - - if true, prevent anyone from renaming the item

NOTE: The repository will try to preserve any id value set in the persistent object. Although this violates the normal rules of repository behavior, it is necessary in order to recognize initial items that may be renamed.

Method Detail

getPersistentObject

public PersistentObject getPersistentObject()
Get the persistent object to be created.


neverDelete

public boolean neverDelete()
Returns true if the object must never be deleted.


neverModify

public boolean neverModify()
Returns true if the object must never be modified.


neverRename

public boolean neverRename()
Returns true if the object must never be renamed.


toString

public java.lang.String toString()