org.exoplatform.faq.service
Class Category

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

public class Category
extends java.lang.Object

Created by The eXo Platform SARL Data of category is stored in this class, it's used in processing add new category, edit category Author : Hung Nguyen Quang hung.nguyen@exoplatform.com Jul 11, 2007


Constructor Summary
Category()
          Class constructor specifying id of object is created
 
Method Summary
 java.util.Date getCreatedDate()
          This method will get date of created date category
 java.lang.String getDescription()
          This method get description of category
 java.lang.String getId()
          This method get id of category object
 long getIndex()
           
 java.lang.String[] getModerators()
          view users or group or membership will right(Users of FAQ Administrator)
 java.util.List<java.lang.String> getModeratorsCategory()
          This method get all user is administrator of category to field Moderator
 java.lang.String getName()
          This method get name of category object.
 java.lang.String getPath()
           
 java.lang.String[] getUserPrivate()
           
 boolean isModerateAnswers()
           
 boolean isModerateQuestions()
          This method get moderate question
 boolean isView()
           
 boolean isViewAuthorInfor()
           
 void setCreatedDate(java.util.Date date)
          This method set time system will time create current category
 void setDescription(java.lang.String description)
          description will add information of category with user input
 void setId(java.lang.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(java.lang.String[] mods)
          This method set users or group or membership will administrator of that category
 void setName(java.lang.String name)
          This method register the name to display on screen
 void setPath(java.lang.String path)
           
 void setUserPrivate(java.lang.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
 

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 java.lang.String getId()
This method get id of category object

Returns:
category' id

setId

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

Parameters:
id - id which you want set for category

getName

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

Returns:
name

setName

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

Parameters:
name - of category with user input

getDescription

public java.lang.String getDescription()
This method get description of category

Returns:
description

setDescription

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

Parameters:
description -

getModerators

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

Returns:
moderators

setModerators

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

Parameters:
mods - is select in selector

getCreatedDate

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

Returns:
createDate is date create category

setCreatedDate

public void setCreatedDate(java.util.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 java.util.List<java.lang.String> getModeratorsCategory()
                                                       throws java.lang.Exception
This method get all user is administrator of category to field Moderator

Returns:
list user
Throws:
java.lang.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(java.lang.String path)

getPath

public java.lang.String getPath()

getUserPrivate

public java.lang.String[] getUserPrivate()
Returns:
the userPrivate

setUserPrivate

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


Copyright © 2011 eXo Platform SAS. All Rights Reserved.