|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.cloudfarming.client.model.DataProvider
nl.cloudfarming.client.model.CommonModelService
nl.cloudfarming.client.area.field.FieldAreaService
public class FieldAreaService
| Constructor Summary | |
|---|---|
FieldAreaService()
|
|
| Method Summary | |
|---|---|
void |
createNewAbLine(AbLine abLine)
|
void |
createNewField(Field field)
|
void |
createNewHelpLine(HelpLine helpLine)
|
void |
createNewPartField(PartField pf)
Creates a new partField |
void |
createNewShapeFile(ShapeFile shapeFile)
|
boolean |
endField(Field field)
Sets the endDate of the field to now. |
List<Field> |
findAllActiveFields()
Find all the fields where the endDate is not filled |
List<Field> |
findAllCurrentFields()
|
List<HelpLine> |
findAllHelpLines()
Find all the fields where the endDate is not filled |
Field |
findFieldById(long id)
Find a Field by ID |
List<PartField> |
findPartFieldsByDate(Date date)
Find partfields by Date |
List<ProductionUnit> |
findProductionUnitsByDate(Date date)
Find production units by date |
ShapeFile |
findShapeFileByNameAndChecksum(String name,
String checksum)
Find a Field by specifying the filename and the checksum |
protected String |
getModuleName()
|
protected void |
initExplorer()
|
void |
removeField(Field field)
Removes a field. |
void |
removeHelpLine(HelpLine line)
Removes a line. |
void |
saveFieldChanges(Field field)
|
void |
savePartFieldChanges(PartField partField)
|
| Methods inherited from class nl.cloudfarming.client.model.CommonModelService |
|---|
commit, findAllFieldPlans, findAllFields, findNumberOfPartFieldForFieldPlan, flush, getEntityManager, merge, mergeAndPersistInTransaction, persistInTransaction, remove, save, startTransaction |
| Methods inherited from class nl.cloudfarming.client.model.DataProvider |
|---|
addBeanToSelection, addSaveCookie, addToLookup, findNodeForBean, getExplorerManager, getLookup, getUndoredoManager, removeBeanFromSelection, removeFromLookup, removeSaveCookie, setExplorerManager |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface nl.cloudfarming.client.area.AreaService |
|---|
findAllFields |
| Constructor Detail |
|---|
public FieldAreaService()
| Method Detail |
|---|
protected String getModuleName()
getModuleName in class CommonModelServicepublic final List<Field> findAllCurrentFields()
public final void createNewField(Field field)
createNewField in interface AreaServicepublic void createNewHelpLine(HelpLine helpLine)
createNewHelpLine in interface AreaServicepublic void createNewAbLine(AbLine abLine)
createNewAbLine in interface AreaServicepublic final void saveFieldChanges(Field field)
saveFieldChanges in interface AreaServicepublic final void savePartFieldChanges(PartField partField)
public final void createNewShapeFile(ShapeFile shapeFile)
createNewShapeFile in interface AreaServicepublic void createNewPartField(PartField pf)
pf - the partfield that should be createdpublic List<ProductionUnit> findProductionUnitsByDate(Date date)
findProductionUnitsByDate in interface AreaServicedate - The PU should be active on this date
public boolean endField(Field field)
field - the field that should be ended
IllegalArgumentException - if the Provided field is not a persisted entityprotected void initExplorer()
initExplorer in class DataProviderpublic List<PartField> findPartFieldsByDate(Date date)
findPartFieldsByDate in interface AreaServicedate - The date the field has to be active.
public ShapeFile findShapeFileByNameAndChecksum(String name,
String checksum)
findShapeFileByNameAndChecksum in interface AreaServicename - Filenamechecksum - file checksum
public Field findFieldById(long id)
findFieldById in interface AreaServiceid -
public List<Field> findAllActiveFields()
public List<HelpLine> findAllHelpLines()
public void removeField(Field field)
field - which will be removedpublic void removeHelpLine(HelpLine line)
field - which will be removed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||