NpsTopic indicates topic object.
| String |
id topic’s unique identification |
| String |
name topic’s name |
| String |
alias topic’s alias name |
| String |
code topic’s code |
| int |
default_state article’s default status after being input. 0: draft. 1: submitted while verifying. 2: verified while publishing. 3: published. |
| float |
score article’s default score |
| String |
table self-defined datasource table’s name |
| String |
keywordlinks Keyword links. One line represents a group of keyword links. Multiple keywords must be seperated by comma(,) in a group, and a URL link must be ends with all keywords. |
| NpsTopic |
parent superiors topic. “null” indicates top-level topic. |
| boolean |
solr_enabled Solr enabled? |
| String |
solrcore solr core |
| boolean |
sort_enabled Sort enabled? |
| boolean |
IsNormal() whether it is normal news column or not. “true”: yes “false”: no |
| boolean |
IsCustom() whether it is self-defined datasource or not. “true”: yes “false”: no |
| void |
Build(boolean rebuildall) rebuild topic.It will build page template bottom-up automatically. “rebuildall=true”: rebuild the whole topic. ”rebuildall=false”: publish the pending articles. |
| void |
BuildPagesOnly() only rebuild topic’s page template bottom-up. |
| void |
BuildPagesTopDown() rebuild topic’s page template top-down. |
| int |
Sync() Synchronize and publish all datas from customized datasource |
| void |
Archive() Archive this topic. |
| void |
AddKeywordLink(String keyword,String url) Add a keyword link |
| void |
AddKeywordLinks(String line) Add a group of keyword links. Multiple keywords must be seperated by comma(,) in a group, and a URL link must be ends with all keywords. |
| void |
RemoveKeywordLink(String keyword,String url) Remove a keyword link |
| void |
RemoveKeywordLinks(String url) Remove a group of keyword links |