Removed trailing spaces of all *.java files.
This commit is contained in:
parent
5172b54104
commit
0c01f6d90a
33 changed files with 83 additions and 83 deletions
|
|
@ -2,15 +2,15 @@ package org.navalplanner.business;
|
|||
|
||||
/**
|
||||
* A class containing constants for global names.
|
||||
*
|
||||
*
|
||||
* @author Fernando Bellas Permuy <fbellas@udc.es>
|
||||
*
|
||||
*/
|
||||
public class BusinessGlobalNames {
|
||||
|
||||
public final static String BUSINESS_SPRING_CONFIG_FILE =
|
||||
|
||||
public final static String BUSINESS_SPRING_CONFIG_FILE =
|
||||
"classpath:/navalplanner-business-spring-config.xml";
|
||||
|
||||
|
||||
private BusinessGlobalNames () {}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import org.navalplanner.business.common.exceptions.InstanceNotFoundException;
|
|||
* The interface all DAOs (Data Access Objects) must implement. In general,
|
||||
* a DAO must be implemented for each persistent entity. Concrete DAOs may
|
||||
* provide (and usually will provide) additional methods.
|
||||
*
|
||||
*
|
||||
* @author Fernando Bellas Permuy <fbellas@udc.es>
|
||||
*
|
||||
* @param <E> Entity class
|
||||
|
|
|
|||
|
|
@ -18,16 +18,16 @@ import org.springframework.orm.hibernate3.HibernateTemplate;
|
|||
// it represents a non-intrusive use of Spring.
|
||||
|
||||
/**
|
||||
* An implementation of <code>IGenericDao</code> based on Spring's
|
||||
* <code>HibernateTemplate</code>. Concrete DAOs must extend directly from
|
||||
* this class. This constraint is imposed by the constructor of this class that
|
||||
* An implementation of <code>IGenericDao</code> based on Spring's
|
||||
* <code>HibernateTemplate</code>. Concrete DAOs must extend directly from
|
||||
* this class. This constraint is imposed by the constructor of this class that
|
||||
* must infer the type of the entity from the concrete DAO declaration. <p/>
|
||||
*
|
||||
* This class autowires a <code>SessionFactory</code> bean and allows to
|
||||
* implement Spring's HibernateTemplate-based DAOs. Subclasses access
|
||||
* <code>HibernateTemplate</code> by calling on
|
||||
*
|
||||
* This class autowires a <code>SessionFactory</code> bean and allows to
|
||||
* implement Spring's HibernateTemplate-based DAOs. Subclasses access
|
||||
* <code>HibernateTemplate</code> by calling on
|
||||
* <code>getHibernateTemplate()</code> method.
|
||||
*
|
||||
*
|
||||
* @author Fernando Bellas Permuy <fbellas@udc.es>
|
||||
*
|
||||
* @param <E> Entity class
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@ package org.navalplanner.business.common.exceptions;
|
|||
|
||||
/**
|
||||
* An exception for modeling an attempt to create a persistent instance with
|
||||
* the same key than another existent instance.
|
||||
*
|
||||
* the same key than another existent instance.
|
||||
*
|
||||
* @author Fernando Bellas Permuy <fbellas@udc.es>
|
||||
*
|
||||
*/
|
||||
|
|
@ -13,6 +13,6 @@ public class DuplicateInstanceException extends InstanceException {
|
|||
public DuplicateInstanceException(Object key, String className) {
|
||||
super("Duplicate instance", key, className);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ package org.navalplanner.business.common.exceptions;
|
|||
/**
|
||||
* An exception for modeling a problem with an instance of a persistent entity.
|
||||
* It contains a message, the key of the instance, and its class name.
|
||||
*
|
||||
*
|
||||
* @author Fernando Bellas Permuy <fbellas@udc.es>
|
||||
*
|
||||
*/
|
||||
|
|
@ -12,21 +12,21 @@ public abstract class InstanceException extends Exception {
|
|||
|
||||
private Object key;
|
||||
private String className;
|
||||
|
||||
protected InstanceException(String specificMessage, Object key,
|
||||
|
||||
protected InstanceException(String specificMessage, Object key,
|
||||
String className) {
|
||||
|
||||
super(specificMessage + " (key = '" + key + "' - className = '" +
|
||||
|
||||
super(specificMessage + " (key = '" + key + "' - className = '" +
|
||||
className + "')");
|
||||
this.key = key;
|
||||
this.className = className;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
public Object getKey() {
|
||||
return key;
|
||||
}
|
||||
|
||||
|
||||
public String getClassName() {
|
||||
return className;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ package org.navalplanner.business.common.exceptions;
|
|||
/**
|
||||
* An exception for modeling that no persistent instance can be located from
|
||||
* a given key.
|
||||
*
|
||||
*
|
||||
* @author Fernando Bellas Permuy <fbellas@udc.es>
|
||||
*
|
||||
*/
|
||||
|
|
@ -13,6 +13,6 @@ public class InstanceNotFoundException extends InstanceException {
|
|||
public InstanceNotFoundException(Object key, String className) {
|
||||
super("Instance not found", key, className);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import org.navalplanner.business.resources.entities.Resource;
|
|||
|
||||
/**
|
||||
* DAO interface for the <code>Resource</code> entity.
|
||||
*
|
||||
*
|
||||
* @author Fernando Bellas Permuy <fbellas@udc.es>
|
||||
*
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import org.navalplanner.business.resources.entities.Worker;
|
|||
|
||||
/**
|
||||
* DAO interface for the <code>Worker</code> entity.
|
||||
*
|
||||
*
|
||||
* @author Fernando Bellas Permuy <fbellas@udc.es>
|
||||
*
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ package org.navalplanner.business.resources.daos;
|
|||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
||||
// FIXME: Improve with
|
||||
// FIXME: Improve with
|
||||
// http://en.wikipedia.org/wiki/Initialization_on_demand_holder_idiom???
|
||||
// (I think it is not necessary).
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import org.navalplanner.business.resources.entities.Resource;
|
|||
|
||||
/**
|
||||
* Hibernate DAO for the <code>Resource</code> entity.
|
||||
*
|
||||
*
|
||||
* @author Fernando Bellas Permuy <fbellas@udc.es>
|
||||
*
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import org.navalplanner.business.resources.entities.Worker;
|
|||
|
||||
/**
|
||||
* Hibernate DAO for the <code>Worker</code> entity.
|
||||
*
|
||||
*
|
||||
* @author Fernando Bellas Permuy <fbellas@udc.es>
|
||||
*
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -16,9 +16,9 @@ import org.navalplanner.business.resources.daos.ResourcesDaoRegistry;
|
|||
// FIXME: Alternatively, Resource can be modeled with the style:
|
||||
// Resource.getParent() & Resource.getChilds(). This way, Resource does not
|
||||
// depend on ResourceGroup. However, such an option allows combinations not
|
||||
// semantically correct (e.g. a simple resource, such as Worker, could be the
|
||||
// semantically correct (e.g. a simple resource, such as Worker, could be the
|
||||
// child another simple resource, general methods like getChilds() do not make
|
||||
// sense for simple entities, etc.). In consequence, I prefer the modeling
|
||||
// sense for simple entities, etc.). In consequence, I prefer the modeling
|
||||
// option shown below.
|
||||
/**
|
||||
* This class acts as the base class for all resources.
|
||||
|
|
|
|||
|
|
@ -2,15 +2,15 @@ package org.navalplanner.business.test;
|
|||
|
||||
/**
|
||||
* A class containing constants for global names.
|
||||
*
|
||||
*
|
||||
* @author Fernando Bellas Permuy <fbellas@udc.es>
|
||||
*
|
||||
*/
|
||||
public class BusinessGlobalNames {
|
||||
|
||||
public final static String BUSINESS_SPRING_CONFIG_TEST_FILE =
|
||||
public final static String BUSINESS_SPRING_CONFIG_TEST_FILE =
|
||||
"classpath:/navalplanner-business-spring-config-test.xml";
|
||||
|
||||
|
||||
private BusinessGlobalNames () {}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/**
|
||||
*
|
||||
*
|
||||
*/
|
||||
package org.zkoss.ganttz;
|
||||
|
||||
|
|
|
|||
|
|
@ -15,9 +15,9 @@ import org.zkoss.zk.ui.ext.AfterCompose;
|
|||
import org.zkoss.zul.impl.XulElement;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author Francisco Javier Moran Rúa
|
||||
*
|
||||
*
|
||||
*/
|
||||
public class Dependency extends XulElement implements AfterCompose {
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/**
|
||||
*
|
||||
*
|
||||
*/
|
||||
package org.zkoss.ganttz;
|
||||
|
||||
|
|
|
|||
|
|
@ -22,9 +22,9 @@ import org.zkoss.zul.Menupopup;
|
|||
import org.zkoss.zul.impl.XulElement;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author Francisco Javier Moran Rúa
|
||||
*
|
||||
*
|
||||
*/
|
||||
public class DependencyList extends XulElement implements AfterCompose {
|
||||
|
||||
|
|
|
|||
|
|
@ -1,14 +1,14 @@
|
|||
/**
|
||||
*
|
||||
*
|
||||
*/
|
||||
package org.zkoss.ganttz;
|
||||
|
||||
/**
|
||||
* An object that listens to the removing of a dependency. <br />
|
||||
* Created at Apr 29, 2009
|
||||
*
|
||||
*
|
||||
* @author Óscar González Fernández <ogonzalez@igalia.com>
|
||||
*
|
||||
*
|
||||
*/
|
||||
public interface DependencyRemovedListener {
|
||||
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ import org.zkoss.zk.ui.event.Events;
|
|||
import org.zkoss.zul.Div;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author javi
|
||||
*/
|
||||
public class Task extends Div {
|
||||
|
|
|
|||
|
|
@ -11,19 +11,19 @@ import org.zkoss.zk.au.Command;
|
|||
/**
|
||||
*
|
||||
* @author Francisco Javier Moran Rúa
|
||||
*
|
||||
*
|
||||
*/
|
||||
public class TaskAssigmentMoveCommand extends Command {
|
||||
|
||||
public TaskAssigmentMoveCommand(String event,int flags) {
|
||||
super(event,flags);
|
||||
public TaskAssigmentMoveCommand(String event,int flags) {
|
||||
super(event,flags);
|
||||
}
|
||||
|
||||
|
||||
protected void process(AuRequest request) {
|
||||
|
||||
|
||||
System.out.println("Processing command");
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,9 +26,9 @@ import org.zkoss.zul.Menupopup;
|
|||
import org.zkoss.zul.impl.XulElement;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author Francisco Javier Moran Rúa
|
||||
*
|
||||
*
|
||||
*/
|
||||
public class TaskList extends XulElement implements AfterCompose {
|
||||
|
||||
|
|
|
|||
|
|
@ -21,10 +21,10 @@ import org.zkoss.zk.ui.HtmlMacroComponent;
|
|||
import org.zkoss.zul.Label;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* @author Francisco Javier Moran Rúa
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
public class TimeTracker extends HtmlMacroComponent {
|
||||
|
|
|
|||
|
|
@ -7,9 +7,9 @@ import java.util.Date;
|
|||
* This class represents a dependency. Contains the source and the destination.
|
||||
* It also specifies the type of the relationship. <br/>
|
||||
* Created at Apr 24, 2009
|
||||
*
|
||||
*
|
||||
* @author Óscar González Fernández <ogonzalez@igalia.com>
|
||||
*
|
||||
*
|
||||
*/
|
||||
public class DependencyBean {
|
||||
|
||||
|
|
|
|||
|
|
@ -18,9 +18,9 @@ import org.zkoss.ganttz.Dependency;
|
|||
* the {@link DependencyBean dependency} as arcs. It enforces the rules embodied
|
||||
* in the dependencies and in the duration of the tasks using listeners. <br/>
|
||||
* Created at Apr 24, 2009
|
||||
*
|
||||
*
|
||||
* @author Óscar González Fernández <ogonzalez@igalia.com>
|
||||
*
|
||||
*
|
||||
*/
|
||||
public class DependencyRegistry {
|
||||
|
||||
|
|
|
|||
|
|
@ -6,9 +6,9 @@ import java.util.Date;
|
|||
* This enum tells the type of a depepdency. Each instance contanins the correct
|
||||
* behaviour for that type of dependency . <br/>
|
||||
* Created at Apr 24, 2009
|
||||
*
|
||||
*
|
||||
* @author Óscar González Fernández <ogonzalez@igalia.com>
|
||||
*
|
||||
*
|
||||
*/
|
||||
public enum DependencyType {
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ package org.zkoss.ganttz.util;
|
|||
/**
|
||||
*
|
||||
* @author Francisco Javier Moran Rúa
|
||||
*
|
||||
*
|
||||
*/
|
||||
public class GanttUtils {
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/**
|
||||
*
|
||||
*
|
||||
*/
|
||||
package org.zkoss.ganttz.util;
|
||||
|
||||
|
|
|
|||
|
|
@ -8,9 +8,9 @@ import java.util.Date;
|
|||
* This class contains the information of a task. It can be modified and
|
||||
* notifies of the changes to the interested parties. <br/>
|
||||
* Created at Apr 24, 2009
|
||||
*
|
||||
*
|
||||
* @author Óscar González Fernández <ogonzalez@igalia.com>
|
||||
*
|
||||
*
|
||||
*/
|
||||
public class TaskBean {
|
||||
|
||||
|
|
|
|||
|
|
@ -11,9 +11,9 @@ import java.util.Vector;
|
|||
import org.zkoss.ganttz.util.Interval;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author Francisco Javier Moran Rúa
|
||||
*
|
||||
*
|
||||
*/
|
||||
public class DetailOneTimeTrackerState extends TimeTrackerState {
|
||||
|
||||
|
|
|
|||
|
|
@ -14,9 +14,9 @@ import java.util.Vector;
|
|||
import org.zkoss.ganttz.util.Interval;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author Francisco Javier Moran Rúa
|
||||
*
|
||||
*
|
||||
*/
|
||||
public class DetailTwoTimeTrackerState extends TimeTrackerState {
|
||||
|
||||
|
|
@ -96,7 +96,7 @@ public class DetailTwoTimeTrackerState extends TimeTrackerState {
|
|||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @param date
|
||||
* @param year
|
||||
* @return a number from 1(quarter until to 1st April) to 4(quarter until
|
||||
|
|
|
|||
|
|
@ -15,9 +15,9 @@ import java.util.List;
|
|||
import org.zkoss.ganttz.util.Interval;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author Francisco Javier Moran Rúa
|
||||
*
|
||||
*
|
||||
*/
|
||||
public abstract class TimeTrackerState {
|
||||
|
||||
|
|
@ -26,9 +26,9 @@ public abstract class TimeTrackerState {
|
|||
|
||||
/**
|
||||
* This class is conceived as an immutable class.
|
||||
*
|
||||
*
|
||||
* @author Francisco Javier Moran Rúa
|
||||
*
|
||||
*
|
||||
*/
|
||||
public final static class DetailItem {
|
||||
|
||||
|
|
|
|||
|
|
@ -7,9 +7,9 @@ package org.zkoss.ganttz.util.zoom;
|
|||
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author Francisco Javier Moran Rúa
|
||||
*
|
||||
*
|
||||
*/
|
||||
public enum ZoomLevel {
|
||||
|
||||
|
|
@ -27,7 +27,7 @@ public enum ZoomLevel {
|
|||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @return if there is no next, returns <code>this</code>. Otherwise returns
|
||||
* the next one.
|
||||
*/
|
||||
|
|
@ -40,7 +40,7 @@ public enum ZoomLevel {
|
|||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @return if there is no previous, returns <code>this</code>. Otherwise
|
||||
* returns the previous one.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -12,9 +12,9 @@ import org.zkoss.zul.Label;
|
|||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author Francisco Javier Moran Rúa
|
||||
*
|
||||
*
|
||||
*/
|
||||
public class MyHelloPageListener extends Div implements Initiator {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue