public final class FieldAreaService extends CommonModelService implements AreaService
| Constructor and Description |
|---|
FieldAreaService() |
| Modifier and Type | Method and Description |
|---|---|
Field |
createNewField(String name,
com.vividsolutions.jts.geom.MultiPolygon geometry,
String code) |
void |
createNewHelpLine(String name,
com.vividsolutions.jts.geom.MultiLineString geometry,
String NAME) |
boolean |
endField(Field field)
Sets the endDate of the field to now.
|
Collection<Field> |
findAllCurrentFields() |
Collection<HelpLine> |
findAllHelpLines()
Find all the fields where the endDate is not filled
|
protected org.openide.explorer.ExplorerManager |
initExplorer() |
void |
removeField(Field field)
Removes a field.
|
void |
removeHelpLine(HelpLine line)
Removes a line.
|
getExplorerManager, getLookuppublic final Collection<Field> findAllCurrentFields()
findAllCurrentFields in interface AreaServicepublic final Field createNewField(String name, com.vividsolutions.jts.geom.MultiPolygon geometry, String code)
createNewField in interface AreaServicepublic boolean endField(Field field)
endField in interface AreaServicefield - the field that should be ended @retrun boolean true if
succesfull false if not succesfullIllegalArgumentException - if the Provided field is not a persisted
entityprotected org.openide.explorer.ExplorerManager initExplorer()
initExplorer in class CommonModelServicepublic Collection<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 createNewHelpLine(String name, com.vividsolutions.jts.geom.MultiLineString geometry, String NAME)
createNewHelpLine in interface AreaServiceCopyright © 2011. All Rights Reserved.