Salome HOME
Modifications done to respect PMD rules. Versioning a document is fixed. Validation...
[tools/siman.git] / Workspace / Siman-Common / src / org / splat / service / PublicationService.java
index 85a16042b06c2c106693caaf54f58b20779faa02..9abcf754aa078c50a6faaf70b5d0383e409d9fb4 100644 (file)
@@ -46,7 +46,7 @@ public interface PublicationService {
         *            the target project element
         * @return the created copy of the publication
         */
-       public Publication copy(Publication aPublication, ProjectElement publisher);
+       Publication copy(Publication aPublication, ProjectElement publisher);
 
        /**
         * Create a new version of the document.
@@ -68,7 +68,7 @@ public interface PublicationService {
         * @throws NotApplicableException if publication's document is undefined
         * @throws InterruptedException by Thread.sleep if interrupted
         */
-       public void versionDocument(Step step, User user, String filename,
+       void versionDocument(Step step, User user, String filename,
                        long docIndex, String docver, String summary, ProgressState state,
                        Date date, String[] docuses, long[] docusedby)
                        throws MissedPropertyException, InvalidPropertyException,
@@ -82,7 +82,7 @@ public interface PublicationService {
         *            the document publication
         * @return study step
         */
-       public Step getInvolvedStep(Publication aPublication);
+       Step getInvolvedStep(Publication aPublication);
 
        /**
         * Promotes the document referenced by this publication from In-Check to Approved state, if not out-dated, and attaches the
@@ -100,7 +100,7 @@ public interface PublicationService {
         * @see DocumentType#isStudyResult()
         * @see Study#getApproverOf(Publication)
         */
-       public Timestamp approve(Publication aPublication, Date adate);
+       Timestamp approve(Publication aPublication, Date adate);
 
        /**
         * Demotes the document referenced by this publication to In-Work state, and removes the Promoter of the document, if exist.<br/> The
@@ -115,7 +115,7 @@ public interface PublicationService {
         * @see DocumentRights#canDemote()
         * @see DocumentType#isStudyResult()
         */
-       public boolean demote(Publication aPublication);
+       boolean demote(Publication aPublication);
 
        /**
         * Undo the review operation by demoting the document referenced by this publication from In-Check to In-Draft state and removing the
@@ -130,7 +130,7 @@ public interface PublicationService {
         * @see DocumentRights#canInvalidate()
         * @see DocumentType#isStudyResult()
         */
-       public boolean invalidate(Publication aPublication);
+       boolean invalidate(Publication aPublication);
 
        /**
         * Promotes the document referenced by this publication from In-Work to In-Draft or In-Check state, if not out-dated, and attaches the
@@ -149,7 +149,7 @@ public interface PublicationService {
         * @see DocumentRights#canPromote()
         * @see DocumentType#isStudyResult()
         */
-       public Timestamp promote(Publication aPublication, Date pdate);
+       Timestamp promote(Publication aPublication, Date pdate);
 
        /**
         * Promotes the document referenced by this publication from In-Draft to In-Check state, if not out-dated, and attaches the
@@ -168,7 +168,7 @@ public interface PublicationService {
         * @see DocumentType#isStudyResult()
         * @see Study#getReviewerOf(Publication)
         */
-       public Timestamp review(Publication aPublication, Date rdate);
+       Timestamp review(Publication aPublication, Date rdate);
 
        /**
         * Publishes the document referenced by this publication into the owner Project Element under the given state, the revision number of
@@ -184,7 +184,7 @@ public interface PublicationService {
         * @throws NotApplicableException
         *             If the referenced document is undefined
         */
-       public void saveAs(Publication aPublication, ProgressState state)
+       void saveAs(Publication aPublication, ProgressState state)
                        throws FileNotFoundException, NotApplicableException;
 
        /**
@@ -204,7 +204,8 @@ public interface PublicationService {
         *             If the referenced document is undefined
         * @deprecated
         */
-       public void saveAs(Publication aPublication, Revision newvers)
+       @Deprecated
+       void saveAs(Publication aPublication, Revision newvers)
                        throws FileNotFoundException, NotApplicableException;
 
        /**
@@ -217,7 +218,7 @@ public interface PublicationService {
         * @throws InvalidPropertyException
         *             if the new title is empty
         */
-       public void rename(Publication aPublication, String title)
+       void rename(Publication aPublication, String title)
                        throws InvalidPropertyException;
 
        /**
@@ -229,7 +230,7 @@ public interface PublicationService {
         *            the format
         * @return the created "Converts" relation
         */
-       public ConvertsRelation attach(Publication aPublication, String format);
+       ConvertsRelation attach(Publication aPublication, String format);
 
        /**
         * Create "Converts" relation for the given document publication, format and description.
@@ -242,7 +243,7 @@ public interface PublicationService {
         *            the description of the relation
         * @return the created "Converts" relation
         */
-       public ConvertsRelation attach(Publication aPublication, String format,
+       ConvertsRelation attach(Publication aPublication, String format,
                        String description);
 
        /**
@@ -254,7 +255,7 @@ public interface PublicationService {
         * @see #outdate()
         * @see DocumentRights#canAccept()
         */
-       public boolean actualize(Publication aPublication);
+       boolean actualize(Publication aPublication);
 
        /**
         * Out-dates this publication and recursively all publications using this one. Typically, a publication is out-dated when modifying a
@@ -266,5 +267,5 @@ public interface PublicationService {
         * @see #getProgressState()
         * @see #actualize()
         */
-       public void outdate(Publication aPublication);
+       void outdate(Publication aPublication);
 }