org.tolven.process
Class Harvest

java.lang.Object
  extended by org.tolven.process.ComputeBase
      extended by org.tolven.process.Harvest

public class Harvest
extends ComputeBase

Find selected items to include in a share message to another account. This is called from trim "compute".

Author:
John Churin

Constructor Summary
Harvest()
           
 
Method Summary
 java.lang.String buildFullPath(java.lang.String path)
          Paths can start with : which means the path assumes knownType is prepended.
 void compute()
           
 ActRelationship createActRelationship(Act act)
           
 MenuData getMdPlaceholder()
           
 MenuLocal getMenuBean()
           
 java.lang.String getParticipation()
           
 java.lang.String getPath()
           
 java.lang.String getPathContext()
           
 java.lang.String getRelationship()
           
 java.lang.String getTemplate()
           
 java.lang.String getTitle()
           
 java.util.List<MenuData> getUnsharedMenuData()
           
 boolean isEnabled()
           
 Act parseTemplate(MenuData placeholder)
          Find a trim and get it's act.
 void setEnabled(boolean enabled)
           
 void setMdPlaceholder(MenuData mdPlaceholder)
           
 void setParticipation(java.lang.String participation)
           
 void setPath(java.lang.String path)
           
 void setPathContext(java.lang.String pathContext)
           
 void setRelationship(java.lang.String relationship)
           
 void setTemplate(java.lang.String template)
           
 void setTitle(java.lang.String title)
           
 
Methods inherited from class org.tolven.process.ComputeBase
checkProperties, cleanRelationships, getAccountUser, getAct, getCtx, getNow, getTrim, getTrimBean, setAccountUser, setAct, setCtx, setNow, setTrim, setTrimBean
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Harvest

public Harvest()
Method Detail

buildFullPath

public java.lang.String buildFullPath(java.lang.String path)
Paths can start with : which means the path assumes knownType is prepended.

Parameters:
path -
Returns:

getMenuBean

public MenuLocal getMenuBean()
                      throws javax.naming.NamingException
Throws:
javax.naming.NamingException

getUnsharedMenuData

public java.util.List<MenuData> getUnsharedMenuData()
                                             throws java.lang.Exception
Returns:
Throws:
java.lang.Exception

parseTemplate

public Act parseTemplate(MenuData placeholder)
                  throws javax.xml.bind.JAXBException
Find a trim and get it's act. It will pull information from the placeholder.

Parameters:
placeholder -
Returns:
Throws:
javax.xml.bind.JAXBException

createActRelationship

public ActRelationship createActRelationship(Act act)

compute

public void compute()
             throws java.lang.Exception
Specified by:
compute in class ComputeBase
Throws:
java.lang.Exception

getTemplate

public java.lang.String getTemplate()

setTemplate

public void setTemplate(java.lang.String template)

getMdPlaceholder

public MenuData getMdPlaceholder()

setMdPlaceholder

public void setMdPlaceholder(MenuData mdPlaceholder)

isEnabled

public boolean isEnabled()

setEnabled

public void setEnabled(boolean enabled)

getTitle

public java.lang.String getTitle()

setTitle

public void setTitle(java.lang.String title)

getRelationship

public java.lang.String getRelationship()

setRelationship

public void setRelationship(java.lang.String relationship)

getParticipation

public java.lang.String getParticipation()

setParticipation

public void setParticipation(java.lang.String participation)

getPath

public java.lang.String getPath()

setPath

public void setPath(java.lang.String path)

getPathContext

public java.lang.String getPathContext()

setPathContext

public void setPathContext(java.lang.String pathContext)