|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.silverpeas.pdc.web.PdcPositionEntity
public class PdcPositionEntity
The Web representation of the position of a Silverpeas's resource in the classification plan (PdC). As such, it publishes only some of the business classification's position attributes. A position of a resource on the PdC defines an atomic semantic information about its content. As such, it can be a single or a set of values in the different PdC's axis. An axis value can be a single semantic term or a hierarchical tree of semantic terms carrying a deeper exactness about the concept's value. For example, in a geographic axis, the value France can be a tree in which it is splited into regions, departments, towns, and so on, each of theses terms giving a more accuracy about a geographic position (that is the semantic concept of the geographic axis).
Constructor Summary | |
---|---|
protected |
PdcPositionEntity(List<PdcPositionValueEntity> values)
|
Method Summary | |
---|---|
static PdcPositionEntity |
createNewPositionWith(List<PdcPositionValueEntity> values)
Creates a web entity representing a new position on the Pdc and that is valued with the specified PdC axis values. |
boolean |
equals(Object obj)
|
static PdcPositionEntity |
fromClassifyPosition(ClassifyPosition position,
String inLanguage,
URI inClassificationByURI)
Creates a Web entity representing a position on the PdC from the specified business classification position. |
static PdcPositionEntity |
fromPdcPosition(PdcPosition position,
String inLanguage,
URI inClassificationByURI)
Creates a Web entity representing a position on the PdC from the specified business classification position. |
String |
getId()
|
List<PdcPositionValueEntity> |
getPositionValues()
Gets the values of this position. |
URI |
getURI()
Gets the URI at which this resource is published and can be accessed. |
int |
hashCode()
|
protected void |
setSynonymsFrom(UserThesaurusHolder userThesaurus)
Sets the synonyms for each value of this position from the specified thesaurus. |
ClassifyPosition |
toClassifyPosition()
Gets the business classification position this web entity represents. |
PdcPosition |
toPdcPosition()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected PdcPositionEntity(List<PdcPositionValueEntity> values)
Method Detail |
---|
public static PdcPositionEntity fromClassifyPosition(ClassifyPosition position, String inLanguage, URI inClassificationByURI)
position
- the ClassifyPosition instance the web entity should represent.inLanguage
- the language in which the position should expressed.inClassificationByURI
- the URI identifying the PdC classification to which the position
belongs.
public static PdcPositionEntity fromPdcPosition(PdcPosition position, String inLanguage, URI inClassificationByURI)
position
- the position on the PdC the web entity should represent.inLanguage
- the language in which the position should expressed.inClassificationByURI
- the URI identifying the PdC classification to which the position
belongs.
public static PdcPositionEntity createNewPositionWith(List<PdcPositionValueEntity> values)
values
- a list of representations of PdC axis values.
public ClassifyPosition toClassifyPosition()
public PdcPosition toPdcPosition()
public URI getURI()
Exposable
getURI
in interface Exposable
public String getId()
public List<PdcPositionValueEntity> getPositionValues()
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
protected void setSynonymsFrom(UserThesaurusHolder userThesaurus) throws ThesaurusException
userThesaurus
- a user thesaurus from which synonyms can be get.
ThesaurusException
- if an error occurs while getting the synonyms of this position's
values.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |