Class RelatedTopics
java.lang.Object
net.ontopia.topicmaps.nav2.portlets.pojos.RelatedTopics
PUBLIC: This component can produce a model representing the
associations of a given topic.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intPUBLIC: Flag used to indicated ascending ordering.static final intPUBLIC: Flag used to indicated descending ordering. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionPUBLIC: Builds a model representing the associations of the given topic.voidsetAggregateAssociations(Set aggregateAssociations) PUBLIC: Sets the association types to do hierarchy aggregation for.voidsetAggregateHierarchy(boolean aggregateHierarchy) PUBLIC: Sets the flag indicating whether to do hierarchy aggregation or not.voidsetChildOrdering(int childOrdering) PUBLIC: Sets the ordering direction to be used for children.voidsetChildOrderQuery(String childOrderQueryString) PUBLIC: Sets the query to use to get the sort key of each child topic.voidsetExcludeAssociationTypes(Set types) PUBLIC: Set the set of association types which is not to be shown.voidsetExcludeRoleTypes(Set types) PUBLIC: Set the set of near roles types which is not to be included.voidsetExcludeTopicTypes(Set types) PUBLIC: Set the set of topic types which is not to be shown.voidsetFilterQuery(String query) PUBLIC: Sets a query to be used to filter topics shown as related.voidsetHeadingOrdering(int headingOrdering) PUBLIC: Sets the ordering direction to be used for headings.voidsetHeadingOrderQuery(String headingOrderQueryString) PUBLIC: Sets the query to use to get the sort key of each heading topic.voidsetIncludeAssociationTypes(Set types) PUBLIC: Set the set of association types which is to be shown.voidsetIncludeTopicTypes(Set types) PUBLIC: Set the set of topic types which is to be shown.voidsetMaxChildren(int maxchildren) PUBLIC: Sets the maximum number of children for a heading to show by default.voidsetTologContext(DeclarationContextIF tologctx) PUBLIC: Passes in a tolog declaration context to be used when parsing tolog queries.voidsetUseOntopolyNames(boolean useOntopolyNames) voidsetWeakAssociationTypes(Set weaktypes) PUBLIC: Set the set of association types which is to be considered weak in the sense that associations of these types are to be listed under the heading for the topic type of the associated topics, and not under the association type.
-
Field Details
-
ORDERING_ASC
public static final int ORDERING_ASCPUBLIC: Flag used to indicated ascending ordering.- See Also:
-
ORDERING_DESC
public static final int ORDERING_DESCPUBLIC: Flag used to indicated descending ordering.- See Also:
-
-
Constructor Details
-
RelatedTopics
public RelatedTopics()
-
-
Method Details
-
setWeakAssociationTypes
PUBLIC: Set the set of association types which is to be considered weak in the sense that associations of these types are to be listed under the heading for the topic type of the associated topics, and not under the association type. -
setExcludeAssociationTypes
PUBLIC: Set the set of association types which is not to be shown. -
setExcludeRoleTypes
PUBLIC: Set the set of near roles types which is not to be included.- Since:
- 3.4.2
-
setExcludeTopicTypes
PUBLIC: Set the set of topic types which is not to be shown. For n-ary associations the filter takes effect if any of the roles are played by excluded types. -
setIncludeAssociationTypes
PUBLIC: Set the set of association types which is to be shown. -
setIncludeTopicTypes
PUBLIC: Set the set of topic types which is to be shown. For n-ary associations the filter takes effect if any of the roles are not played by included types. -
setFilterQuery
PUBLIC: Sets a query to be used to filter topics shown as related. Only topics for which the query does not return any rows will be shown. -
setMaxChildren
public void setMaxChildren(int maxchildren) PUBLIC: Sets the maximum number of children for a heading to show by default. A negative value will show all children.- Since:
- 3.4
-
setHeadingOrderQuery
PUBLIC: Sets the query to use to get the sort key of each heading topic.- Since:
- 3.4
-
setHeadingOrdering
public void setHeadingOrdering(int headingOrdering) PUBLIC: Sets the ordering direction to be used for headings.- Since:
- 3.4.1
-
setChildOrderQuery
PUBLIC: Sets the query to use to get the sort key of each child topic.- Since:
- 3.4
-
setChildOrdering
public void setChildOrdering(int childOrdering) PUBLIC: Sets the ordering direction to be used for children.- Since:
- 3.4.1
-
setAggregateHierarchy
public void setAggregateHierarchy(boolean aggregateHierarchy) PUBLIC: Sets the flag indicating whether to do hierarchy aggregation or not.- Since:
- 3.4.2
-
setAggregateAssociations
PUBLIC: Sets the association types to do hierarchy aggregation for.- Since:
- 3.4.2
-
setTologContext
PUBLIC: Passes in a tolog declaration context to be used when parsing tolog queries.- Since:
- 3.4.2
-
makeModel
PUBLIC: Builds a model representing the associations of the given topic.- Returns:
- a list of Heading objects
-
setUseOntopolyNames
public void setUseOntopolyNames(boolean useOntopolyNames)
-