public class Category extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CATEGORY_ID |
| Constructor and Description |
|---|
Category()
Class constructor specifying id of object is created
|
| Modifier and Type | Method and Description |
|---|---|
Date |
getCreatedDate()
This method will get date of created date category
|
String |
getDescription()
This method get description of category
|
String |
getId()
This method get id of category object
|
long |
getIndex() |
String[] |
getModerators()
view users or group or membership will right(Users of FAQ Administrator)
|
List<String> |
getModeratorsCategory()
This method get all user is administrator of category to field Moderator
|
String |
getName()
This method get name of category object.
|
String |
getPath() |
String[] |
getUserPrivate() |
boolean |
isModerateAnswers() |
boolean |
isModerateQuestions()
This method get moderate question
|
boolean |
isView() |
boolean |
isViewAuthorInfor() |
void |
setCreatedDate(Date date)
This method set time system will time create current category
|
void |
setDescription(String description)
description will add information of category with user input
|
void |
setId(String id)
This method set an id for category object
|
void |
setIndex(long index) |
void |
setModerateAnswers(boolean isModerateAnswers) |
void |
setModerateQuestions(boolean isMod)
This method set one category is moderate question
|
void |
setModerators(String[] mods)
This method set users or group or membership will administrator
of that category
|
void |
setName(String name)
This method register the name to display on screen
|
void |
setPath(String path) |
void |
setUserPrivate(String[] userPrivate) |
void |
setView(boolean isView) |
void |
setViewAuthorInfor(boolean viewAuthorInfor) |
public static final String CATEGORY_ID
public boolean isView()
public void setView(boolean isView)
public String getId()
public void setId(String id)
id - id which you want set for categorypublic String getName()
public void setName(String name)
name - of category with user inputpublic String getDescription()
public void setDescription(String description)
description - public String[] getModerators()
public void setModerators(String[] mods)
mods - is select in selectorpublic Date getCreatedDate()
public void setCreatedDate(Date date)
date - is time computer systempublic void setModerateQuestions(boolean isMod)
isMod - is true when create question in this category will default is not approved
else is approvedpublic boolean isModerateQuestions()
true if check ModerateQuestions else falsepublic List<String> getModeratorsCategory() throws Exception
Exceptionpublic boolean isViewAuthorInfor()
public void setViewAuthorInfor(boolean viewAuthorInfor)
public long getIndex()
public void setIndex(long index)
public boolean isModerateAnswers()
public void setModerateAnswers(boolean isModerateAnswers)
public void setPath(String path)
public String getPath()
public String[] getUserPrivate()
public void setUserPrivate(String[] userPrivate)
userPrivate - the userPrivate to setCopyright © 2003–2018 eXo Platform SAS. All rights reserved.