nl.cloudfarming.client.area.field
Class FieldAreaService

java.lang.Object
  extended by nl.cloudfarming.client.model.DataProvider
      extended by nl.cloudfarming.client.model.CommonModelService
          extended by nl.cloudfarming.client.area.field.FieldAreaService
All Implemented Interfaces:
AreaService, BeanService, org.openide.explorer.ExplorerManager.Provider, org.openide.util.Lookup.Provider

public class FieldAreaService
extends CommonModelService
implements AreaService

Author:
Timon Veenstra

Constructor Summary
FieldAreaService()
           
 
Method Summary
 void createNewField(Field field)
           
 void createNewFieldFile(FieldFile fieldFile)
           
 List<Field> findAllCurrentFields()
           
 Field findFieldById(long id)
          Find a Field by ID
 FieldFile findFieldFileByNameAndChecksum(String name, String checksum)
          Find a Field by specifying the filename and the checksum
 List<PartField> findPartFieldsByDate(Date date)
          Find partfields by Date
 List<ProductionUnit> findProductionUnitsByDate(Date date)
          Find production units by date
protected  String getModuleName()
           
protected  void initExplorer()
           
 void saveFieldChanges(Field field)
           
 
Methods inherited from class nl.cloudfarming.client.model.CommonModelService
addPropertyChangeListener, addPropertyChangeListener, commit, createPartField, createPartField, findAllFieldPlans, findAllFields, flush, getEntityManager, getPropertyChangeSupport, merge, mergeAndPersistInTransaction, persistInTransaction, remove, removePropertyChangeListener, removePropertyChangeListener, save, startTransaction
 
Methods inherited from class nl.cloudfarming.client.model.DataProvider
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
 

Constructor Detail

FieldAreaService

public FieldAreaService()
Method Detail

getModuleName

protected final String getModuleName()
Specified by:
getModuleName in class CommonModelService

findAllCurrentFields

public final List<Field> findAllCurrentFields()

createNewField

public final void createNewField(Field field)
Specified by:
createNewField in interface AreaService

saveFieldChanges

public final void saveFieldChanges(Field field)
Specified by:
saveFieldChanges in interface AreaService

createNewFieldFile

public final void createNewFieldFile(FieldFile fieldFile)
Specified by:
createNewFieldFile in interface AreaService

findProductionUnitsByDate

public List<ProductionUnit> findProductionUnitsByDate(Date date)
Find production units by date

Specified by:
findProductionUnitsByDate in interface AreaService
Parameters:
date - The PU should be active on this date
Returns:
The list of PU's active on the specified Date

initExplorer

protected final void initExplorer()
Specified by:
initExplorer in class DataProvider

findPartFieldsByDate

public List<PartField> findPartFieldsByDate(Date date)
Find partfields by Date

Specified by:
findPartFieldsByDate in interface AreaService
Parameters:
date - The date the field has to be active.
Returns:
The list of partfields active on Date date

findFieldFileByNameAndChecksum

public FieldFile findFieldFileByNameAndChecksum(String name,
                                                String checksum)
Find a Field by specifying the filename and the checksum

Specified by:
findFieldFileByNameAndChecksum in interface AreaService
Parameters:
name - Filename
checksum - file checksum
Returns:

findFieldById

public Field findFieldById(long id)
Find a Field by ID

Specified by:
findFieldById in interface AreaService
Parameters:
id -
Returns:


Copyright © 2011. All Rights Reserved.