|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mycore.frontend.workflow.MCRSimpleWorkflowManager
public class MCRSimpleWorkflowManager
This class holds methods to manage the workflow file system of MyCoRe.
| Field Summary | |
|---|---|
(package private) static Logger |
logger
|
(package private) static String |
sender
|
protected static MCRSimpleWorkflowManager |
singleton
The link table manager singleton |
| Constructor Summary | |
|---|---|
protected |
MCRSimpleWorkflowManager()
The constructor of this class. |
| Method Summary | |
|---|---|
boolean |
commitDerivateObject(MCRObjectID ID)
The method commit a derivate object with update method from the workflow to the data store. |
boolean |
commitMetadataObject(MCRObjectID ID)
The method commit a metadata object with all referenced derivate objects from the workflow to the data store. |
MCRDerivate |
createDerivate(MCRObjectID ID,
MCRObjectID DD)
The method create a new MCRDerivate and store them to the directory of the workflow that correspons with the type of the given object MCRObjectID with the name of itseslf. |
void |
deleteDerivateObject(MCRObjectID ID,
MCRObjectID DID)
The method removes a derivate object from the workflow. |
void |
deleteMetadataObject(MCRObjectID ID)
The method removes a metadata object with all referenced derivate objects from the workflow. |
ArrayList<String> |
getAllDerivateFileNames(String base)
The method return a ArrayList of file names form derivates they are under .../workflow/ type/...derivate.... |
ArrayList<String> |
getAllObjectFileNames(String base)
The method return a ArrayList of file names from objects they are under .../workflow/ type/...type.... |
File |
getDirectoryPath(String base)
The method return the workflow directory path for a given MCRObjectID type. |
List<String> |
getMailAddress(String base,
String todo)
The method return the information mail address for a given MCRObjectID type. |
String |
getMailSender()
The method return the mail sender adress form the configuration. |
MCRObjectID |
getNextDrivateID(MCRObjectID ID)
The method return the next free derivate ID. |
Element |
getRuleFromFile(MCRObjectID mcrid,
String permission)
The method return the conditione XML tree from a XML file in the workflow for a given permission. |
String |
getWorkflowFile(String pagedir,
String base)
The method return page name of the next URL of the workflow. |
static MCRSimpleWorkflowManager |
instance()
Returns the workflow manager singleton. |
boolean |
isDerivateOfObject(String filename,
MCRObjectID ID)
The method read a derivate file with name filename in the workflow directory of type and check that this derivate reference the given ID. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static MCRSimpleWorkflowManager singleton
static Logger logger
static String sender
| Constructor Detail |
|---|
protected MCRSimpleWorkflowManager()
| Method Detail |
|---|
public static MCRSimpleWorkflowManager instance()
public final File getDirectoryPath(String base)
type - the MCRObjectID type
public final List<String> getMailAddress(String base,
String todo)
base - the MCRObjectID base or MCRObjectID typetodo - the todo action String from the workflow.
public final String getMailSender()
public final ArrayList<String> getAllObjectFileNames(String base)
base - the MCRObjectID base attribute
public final ArrayList<String> getAllDerivateFileNames(String base)
type - the MCRObjectID type attribute
public final boolean isDerivateOfObject(String filename,
MCRObjectID ID)
filename - the file name of the derivateID - the MCRObjectID of the metadata object
public final void deleteMetadataObject(MCRObjectID ID)
ID - the MCRObjectID of the metadata object
public final void deleteDerivateObject(MCRObjectID ID,
MCRObjectID DID)
ID - the MCRObjectID type of the metadata objectDID - the MCRObjectID of the derivate object as String
public final boolean commitMetadataObject(MCRObjectID ID)
throws MCRActiveLinkException
ID - the ID of the metadata object
MCRActiveLinkException - if links to the object exist prior loadingpublic final boolean commitDerivateObject(MCRObjectID ID)
ID - the MCRObjectID as String of the derivate objectpublic final MCRObjectID getNextDrivateID(MCRObjectID ID)
public final MCRDerivate createDerivate(MCRObjectID ID,
MCRObjectID DD)
ID - the MCRObjectID of the related objectDD - the MCRObjectID of the related derivate
public final Element getRuleFromFile(MCRObjectID mcrid,
String permission)
id - the MCRObjectIDpermission - the permission for the ACL system
public final String getWorkflowFile(String pagedir,
String base)
pagedir - the base directory of the WEB applicationbase - the MCRObjectID base ID
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||