org.exoplatform.faq.service
Class Category

java.lang.Object
  extended by org.exoplatform.faq.service.Category

public class Category
extends Object


Field Summary
static String CATEGORY_ID
           
 
Constructor Summary
Category()
          Class constructor specifying id of object is created
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CATEGORY_ID

public static final String CATEGORY_ID
See Also:
Constant Field Values
Constructor Detail

Category

public Category()
Class constructor specifying id of object is created

Method Detail

isView

public boolean isView()

setView

public void setView(boolean isView)

getId

public String getId()
This method get id of category object

Returns:
category' id

setId

public void setId(String id)
This method set an id for category object

Parameters:
id - id which you want set for category

getName

public String getName()
This method get name of category object.

Returns:
name

setName

public void setName(String name)
This method register the name to display on screen

Parameters:
name - of category with user input

getDescription

public String getDescription()
This method get description of category

Returns:
description

setDescription

public void setDescription(String description)
description will add information of category with user input

Parameters:
description -

getModerators

public String[] getModerators()
view users or group or membership will right(Users of FAQ Administrator)

Returns:
moderators

setModerators

public void setModerators(String[] mods)
This method set users or group or membership will administrator of that category

Parameters:
mods - is select in selector

getCreatedDate

public Date getCreatedDate()
This method will get date of created date category

Returns:
createDate is date create category

setCreatedDate

public void setCreatedDate(Date date)
This method set time system will time create current category

Parameters:
date - is time computer system

setModerateQuestions

public void setModerateQuestions(boolean isMod)
This method set one category is moderate question

Parameters:
isMod - is true when create question in this category will default is not approved else is approved

isModerateQuestions

public boolean isModerateQuestions()
This method get moderate question

Returns:
true if check ModerateQuestions else false

getModeratorsCategory

public List<String> getModeratorsCategory()
                                   throws Exception
This method get all user is administrator of category to field Moderator

Returns:
list user
Throws:
Exception

isViewAuthorInfor

public boolean isViewAuthorInfor()

setViewAuthorInfor

public void setViewAuthorInfor(boolean viewAuthorInfor)

getIndex

public long getIndex()

setIndex

public void setIndex(long index)

isModerateAnswers

public boolean isModerateAnswers()

setModerateAnswers

public void setModerateAnswers(boolean isModerateAnswers)

setPath

public void setPath(String path)

getPath

public String getPath()

getUserPrivate

public String[] getUserPrivate()
Returns:
the userPrivate

setUserPrivate

public void setUserPrivate(String[] userPrivate)
Parameters:
userPrivate - the userPrivate to set


Copyright © 2003-2013 eXo Platform SAS. All Rights Reserved.