1 /*****************************************************************************
5 * Creation date 06.10.2012
8 *****************************************************************************/
10 package org.splat.service;
12 import java.util.List;
14 import org.splat.dal.bo.som.KnowledgeElement;
15 import org.splat.dal.bo.som.KnowledgeElementType;
16 import org.splat.dal.bo.som.ProgressState;
17 import org.splat.kernel.InvalidPropertyException;
20 * Knowledge element service interface.
22 * @author <a href="mailto:roman.kozlov@opencascade.com">Roman Kozlov (RKV)</a>
24 public interface KnowledgeElementService {
27 * Approve the knowledge element.
29 * @param knowledgeElement
30 * the knowledge element to approve
31 * @return true if approving succeeded
33 public boolean approve(KnowledgeElement knowledgeElement);
36 * Demote the knowledge element.
38 * @param knowledgeElement
39 * the knowledge element to demote
40 * @return true if demoting succeeded
42 public boolean demote(KnowledgeElement knowledgeElement);
45 * Promote the knowledge element.
47 * @param knowledgeElement
48 * the knowledge element to promote
49 * @return true if promotion succeeded
51 public boolean promote(KnowledgeElement knowledgeElement);
54 * Rename the knowledge element.
56 * @param knowledgeElement
57 * the knowledge element to rename
59 * the new title of the knowledge element
60 * @throws InvalidPropertyException
61 * if renaming is failed
63 public void rename(KnowledgeElement knowledgeElement, String title)
64 throws InvalidPropertyException;
67 * Get a knowledge element by its id.
70 * the knowledge element id
71 * @return the found knowledge element
73 public KnowledgeElement selectKnowledgeElement(long index);
76 * Update the description of the knowledge element.
79 * the knoledge element to update
83 public void update(KnowledgeElement kelm, String description);