import org.splat.dal.bo.kernel.User;
import org.splat.dal.bo.som.DocumentType;
import org.splat.dal.bo.som.Publication;
-import org.splat.dal.bo.som.Scenario;
import org.splat.dal.bo.som.SimulationContext;
import org.splat.dal.bo.som.Study;
import org.splat.dal.bo.som.ValidationCycle;
* the study
* @return incremented docount value
*/
- public int generateLocalIndex(Study aStudy);
+ int generateLocalIndex(Study aStudy);
/**
* Get study by its id.
* the study id
* @return found study or null
*/
- public Study selectStudy(long index);
+ Study selectStudy(long index);
/**
* Create a new study.
* @throws MultiplyDefinedException
* if some property is defined several times
*/
- public Study createStudy(Study.Properties sprop)
+ Study createStudy(Study.Properties sprop)
throws MissedPropertyException, InvalidPropertyException,
MultiplyDefinedException;
* @throws MultiplyDefinedException
* if some property occurs several times
*/
- public SimulationContext addProjectContext(Study aStudy,
+ SimulationContext addProjectContext(Study aStudy,
SimulationContext.Properties cprop) throws MissedPropertyException,
InvalidPropertyException, MultiplyDefinedException;
* the simulation context to add
* @return the added simulation context
*/
- public SimulationContext addProjectContext(Study aStudy,
+ SimulationContext addProjectContext(Study aStudy,
SimulationContext context);
/**
* the simulation context to remove
* @return true if removing succeeded
*/
- public boolean removeProjectContext(Study aStudy, SimulationContext context);
+ boolean removeProjectContext(Study aStudy, SimulationContext context);
/**
* Demotes this study from In-Check to In-Draft then In-Work states. This function is called internally when demoting the final result
* the study to demote
* @return true if the demotion succeeded.
*/
- public boolean demote(Study aStudy);
+ boolean demote(Study aStudy);
/**
* Promotes this study from In-Work to In-Draft then In-Check and APPROVED states. This function is called internally when promoting the
* the study to promote
* @return true if the promotion succeeded.
*/
- public boolean promote(Study aStudy);
+ boolean promote(Study aStudy);
/**
* Add a contributor to the study.
* the contributor
* @return true if addition succeeded
*/
- public boolean addContributor(Study aStudy, User user);
+ boolean addContributor(Study aStudy, User user);
/**
* Remove contributors from the study.
* contributor(s)
* @return true if removing succeeded
*/
- public boolean removeContributor(Study aStudy, User... users);
+ boolean removeContributor(Study aStudy, User... users);
/**
* Set a validation cycle for documents of the given type in the given study.
* @param vprop
* validation cycle properties
*/
- public void setValidationCycle(Study aStudy, DocumentType type,
+ void setValidationCycle(Study aStudy, DocumentType type,
ValidationCycle.Properties vprop);
/**
* @return true if the move succeeded.
* @see #isPublic()
*/
- public boolean moveToPublic(Study aStudy);
+ boolean moveToPublic(Study aStudy);
/**
* Moves this study from the Public to the Reference area of the repository. For being moved to the Reference area, the study must
* @see #isPublic()
* @see Publication#approve(Date)
*/
- public boolean moveToReference(Study aStudy);
+ boolean moveToReference(Study aStudy);
/**
* Update a study.
* @throws InvalidPropertyException
* if some property doesn't exist
*/
- public boolean update(Study aStudy, Properties sprop)
+ boolean update(Study aStudy, Properties sprop)
throws InvalidPropertyException;
/**
* @param aStudy
* the study
*/
- public void loadWorkflow(Study aStudy);
+ void loadWorkflow(Study aStudy);
/**
* Returns the validation cycle of the given document type.
* the document type being subject of validation
* @return the validation cycle of the document, or null if not defined.
*/
- public ValidationCycle getValidationCycleOf(Study aStudy, DocumentType type);
+ ValidationCycle getValidationCycleOf(Study aStudy, DocumentType type);
/**
* Checks if the given user participates to this study. The Study staff includes the author and contributors.
* @return true if the given user is actor of this study.
* @see #getContributors()
*/
- public boolean isStaffedBy(Study aStudy, User user);
+ boolean isStaffedBy(Study aStudy, User user);
/**
* Checks if the given user is actor of this study. Actors include contributors, reviewers and approvers.
* @return true if the given user is actor of this study.
* @see #getActors()
*/
- public boolean hasActor(Study aStudy, User user);
+ boolean hasActor(Study aStudy, User user);
/**
* Returns unmodifiable initialized transient list of contributors of this study.
* the study
* @return the unmodifiable not null transient list of contributors of this study
*/
- public List<User> getContributors(Study aStudy);
+ List<User> getContributors(Study aStudy);
}