|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.cloudfarming.client.model.DataProviderImpl
nl.cloudfarming.client.model.CommonModelService
nl.cloudfarming.client.area.field.FieldAreaService
public final 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)
|
void |
createShapes(List<Bean> shapeBeans)
|
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<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, findPartFieldsByDate, flush, getEntityManager, merge, mergeAndPersistInTransaction, persistInTransaction, remove, save, startTransaction |
| Methods inherited from class nl.cloudfarming.client.model.DataProviderImpl |
|---|
addBeanToSelection, addSaveCookie, findNodeForBean, getExplorerManager, getLookup, getUndoredoManager, removeBeanFromSelection, 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 |
| Methods inherited from interface nl.cloudfarming.client.model.BeanService |
|---|
save |
| Methods inherited from interface org.openide.explorer.ExplorerManager.Provider |
|---|
getExplorerManager |
| Methods inherited from interface org.openide.util.Lookup.Provider |
|---|
getLookup |
| 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)
createNewPartField in interface AreaServicepf - 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)
endField in interface AreaServicefield - the field that should be ended
IllegalArgumentException - if the Provided field is not a persisted entityprotected void initExplorer()
initExplorer in class DataProviderImpl
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()
findAllActiveFields in interface AreaServicepublic List<HelpLine> findAllHelpLines()
findAllHelpLines in interface AreaServicepublic void removeField(Field field)
removeField in interface AreaServicefield - which will be removedpublic void removeHelpLine(HelpLine line)
removeHelpLine in interface AreaServicefield - which will be removedpublic void createShapes(List<Bean> shapeBeans)
createShapes in interface AreaService
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||