net.ponec.jworksheet.bo
Class WorkSpace

Package class diagram package WorkSpace
java.lang.Object
  extended by org.ujoframework.extensions.AbstractUjo
      extended by org.ujoframework.implementation.map.MapUjo
          extended by net.ponec.jworksheet.bo.WorkSpace
All Implemented Interfaces:
UjoCloneable, UjoTextable, Ujo

public class WorkSpace
extends MapUjo

This is a root of all persistent business objects.


Field Summary
static UjoProperty<WorkSpace,java.util.Date> P_ARCHIVED
          Date of the last file archivation.
static UjoProperty<WorkSpace,java.util.Date> P_CREATED
          Date of the last file saving.
static ListProperty<WorkSpace,WorkDay> P_DAYS
          Work day list
static ListProperty<WorkSpace,Project> P_PROJS
          Code-book of all projects.
static UjoProperty<WorkSpace,java.lang.String> P_VERSN
          Version of the persistence file format.
 
Fields inherited from class org.ujoframework.implementation.map.MapUjo
data
 
Constructor Summary
WorkSpace()
           
 
Method Summary
 void assingTasks()
          Assing tasks and projects.
 void createDemoData()
          Create a DemoData
 Project findDefaultProject()
          Returns the first "default" TaskType, null.
 Project findProject(java.lang.Integer id)
          Find a workDay.
 WorkDay findWorkDay(YearMonthDay dayId)
          Find a workDay or create new.
 java.util.ArrayList<Project> getOpenProjects()
          Returns all open Projects.
 boolean readAuthorization(UjoAction action, UjoProperty property, java.lang.Object value)
          An authorization of ACTION_XML_EXPORT
 void sortDays()
          Sort Days by a YearMonthDay
 
Methods inherited from class org.ujoframework.implementation.map.MapUjo
newListProperty, newProperty, newProperty, newProperty, newPropertyList, readValue, writeValue
 
Methods inherited from class org.ujoframework.extensions.AbstractUjo
clone, equals, init, init, readProperties, readUjoManager, readValueString, toString, writeValueString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

P_VERSN

public static final UjoProperty<WorkSpace,java.lang.String> P_VERSN
Version of the persistence file format.


P_CREATED

public static final UjoProperty<WorkSpace,java.util.Date> P_CREATED
Date of the last file saving.


P_ARCHIVED

public static final UjoProperty<WorkSpace,java.util.Date> P_ARCHIVED
Date of the last file archivation.


P_DAYS

public static final ListProperty<WorkSpace,WorkDay> P_DAYS
Work day list


P_PROJS

public static final ListProperty<WorkSpace,Project> P_PROJS
Code-book of all projects.

Constructor Detail

WorkSpace

public WorkSpace()
Method Detail

findWorkDay

public WorkDay findWorkDay(YearMonthDay dayId)
Find a workDay or create new.


findProject

public Project findProject(java.lang.Integer id)
Find a workDay.


findDefaultProject

public Project findDefaultProject()
Returns the first "default" TaskType, null.


getOpenProjects

public java.util.ArrayList<Project> getOpenProjects()
Returns all open Projects.


assingTasks

public void assingTasks()
Assing tasks and projects. Call the method after a data loading.


createDemoData

public void createDemoData()
Create a DemoData


sortDays

public void sortDays()
Sort Days by a YearMonthDay


readAuthorization

public boolean readAuthorization(UjoAction action,
                                 UjoProperty property,
                                 java.lang.Object value)
An authorization of ACTION_XML_EXPORT

Specified by:
readAuthorization in interface Ujo
Overrides:
readAuthorization in class AbstractUjo


Copyright © 2007-2009 PPonec