ome.services.delete
Class DeleteEntry

java.lang.Object
  extended by ome.services.delete.DeleteEntry

public class DeleteEntry
extends Object

Single value of the map entries from spec.xml. A value such as "HARD;/Roi" specifies that the operation with the name "HARD" should be applied to the given path, and that the given path should use a pre-existing specification.

Since:
Beta4.2.1
Author:
Josh Moore, josh at glencoesoftware.com
See Also:
IDelete

Field Summary
static DeleteOpts.Op DEFAULT
           
 
Constructor Summary
DeleteEntry(DeleteSpec self, String value)
           
DeleteEntry(DeleteSpec self, String name, DeleteEntry entry)
           
 
Method Summary
protected  void checkArgs(Object... values)
           
 long getId()
           
protected  Matcher getMatcher(String operation)
           
 String getName()
           
protected  String getName(Matcher m)
           
protected  DeleteOpts.Op getOp(Matcher m)
           
protected  String getPath(Matcher m)
           
 DeleteSpec getSubSpec()
           
 String getSuperSpec()
           
 int initialize(long id, String superspec, Map<String,String> options)
          Called during DeleteSpec.initialize(long, String, Map) to give the entry a chance to modify its #op based on the options and to initialize subspecs.
 boolean isKeep()
           
 boolean isNull()
           
 boolean isSoft()
           
 String log(String superspec)
          Similar to toString() but used to
 String[] path(String superspec)
           
 void pop(DeleteOpts opts)
           
protected  void postProcess(org.springframework.beans.factory.ListableBeanFactory factory)
          Load the spec which has the same name as this entry, but do not load the spec if the name matches name.
 void push(DeleteOpts opts, EventContext ec)
           
 boolean skip()
          A KEEP setting is a way of putting a KEEP suggestion to vote.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT

public static final DeleteOpts.Op DEFAULT
Constructor Detail

DeleteEntry

public DeleteEntry(DeleteSpec self,
                   String value)

DeleteEntry

public DeleteEntry(DeleteSpec self,
                   String name,
                   DeleteEntry entry)
Method Detail

getName

public String getName()

isKeep

public boolean isKeep()

getSubSpec

public DeleteSpec getSubSpec()

getSuperSpec

public String getSuperSpec()

getId

public long getId()

path

public String[] path(String superspec)

checkArgs

protected void checkArgs(Object... values)

getMatcher

protected Matcher getMatcher(String operation)

getName

protected String getName(Matcher m)

getOp

protected DeleteOpts.Op getOp(Matcher m)

getPath

protected String getPath(Matcher m)

postProcess

protected void postProcess(org.springframework.beans.factory.ListableBeanFactory factory)
Load the spec which has the same name as this entry, but do not load the spec if the name matches name. This is called early in the DeleteEntry lifecycle, by DeleteSpec.


initialize

public int initialize(long id,
                      String superspec,
                      Map<String,String> options)
               throws DeleteException
Called during DeleteSpec.initialize(long, String, Map) to give the entry a chance to modify its #op based on the options and to initialize subspecs. The superspec is passed in so that both the absolute path as well as the last path element can be checked. Further, a key of "/" apply to all entries.

Throws:
DeleteException

skip

public boolean skip()
A KEEP setting is a way of putting a KEEP suggestion to vote. If there is a subspec, however, that vote must be passed down. If the KEEP is vetoed, it is the responsiblity of the subspec to make sure that only the proper parts are kept or not kept.


isNull

public boolean isNull()

isSoft

public boolean isSoft()

push

public void push(DeleteOpts opts,
                 EventContext ec)
          throws DeleteException
Throws:
DeleteException

pop

public void pop(DeleteOpts opts)

toString

public String toString()
Overrides:
toString in class Object

log

public String log(String superspec)
Similar to toString() but used to

Parameters:
superspec2 -
Returns:


OmeroJava Api

Version: Beta4.2.1-r8614-Beta4.2-b41

Copyright © 2009 The University of Dundee. All Rights Reserved.