org.exoplatform.forum.ext.impl
Class AnswersSpaceActivityPublisher

java.lang.Object
  extended by org.exoplatform.container.component.BaseComponentPlugin
      extended by org.exoplatform.faq.service.impl.AnswerEventListener
          extended by org.exoplatform.forum.ext.impl.AnswersSpaceActivityPublisher
All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin, org.exoplatform.faq.service.AnswerEventLifeCycle, org.exoplatform.faq.service.ExtendedAnswerEventLifeCycle

public class AnswersSpaceActivityPublisher
extends org.exoplatform.faq.service.impl.AnswerEventListener

Version:
$Revision$
Author:
Patrice Lamarque

Field Summary
static String ANSWER_APP_ID
           
static String LANGUAGE_KEY
           
static String LINK_KEY
           
static String NUMBER_OF_ANSWERS
           
static String NUMBER_OF_COMMENTS
           
static String QUESTION_ID
           
static String QUESTION_RATING
           
static String SPACE_APP_ID
           
static String SPACE_GROUP_ID
           
 
Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin
desc, name
 
Constructor Summary
AnswersSpaceActivityPublisher()
           
 
Method Summary
 void moveQuestions(List<String> questions, String catId)
           
 void removeAnswer(String questionPath, String answerActivityId)
           
 void removeComment(String questionActivityId, String commentActivityId, String questionPath)
           
 void removeQuestion(String questionActivityId)
           
 void saveAnswer(String questionId, org.exoplatform.faq.service.Answer[] answers, boolean isNew)
           
 void saveAnswer(String questionId, org.exoplatform.faq.service.Answer answer, boolean isNew)
           
 void saveComment(String questionId, org.exoplatform.faq.service.Comment cm, String language)
           
 void saveQuestion(org.exoplatform.faq.service.Question question, boolean isNew)
           
 void unVoteQuestion(String questionId)
           
 void voteQuestion(String questionId)
           
 
Methods inherited from class org.exoplatform.container.component.BaseComponentPlugin
getDescription, getName, setDescription, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SPACE_APP_ID

public static final String SPACE_APP_ID
See Also:
Constant Field Values

ANSWER_APP_ID

public static final String ANSWER_APP_ID
See Also:
Constant Field Values

QUESTION_ID

public static final String QUESTION_ID
See Also:
Constant Field Values

LINK_KEY

public static final String LINK_KEY
See Also:
Constant Field Values

LANGUAGE_KEY

public static final String LANGUAGE_KEY
See Also:
Constant Field Values

QUESTION_RATING

public static final String QUESTION_RATING
See Also:
Constant Field Values

NUMBER_OF_ANSWERS

public static final String NUMBER_OF_ANSWERS
See Also:
Constant Field Values

NUMBER_OF_COMMENTS

public static final String NUMBER_OF_COMMENTS
See Also:
Constant Field Values

SPACE_GROUP_ID

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

AnswersSpaceActivityPublisher

public AnswersSpaceActivityPublisher()
Method Detail

moveQuestions

public void moveQuestions(List<String> questions,
                          String catId)
Specified by:
moveQuestions in interface org.exoplatform.faq.service.ExtendedAnswerEventLifeCycle
Overrides:
moveQuestions in class org.exoplatform.faq.service.impl.AnswerEventListener

saveAnswer

public void saveAnswer(String questionId,
                       org.exoplatform.faq.service.Answer answer,
                       boolean isNew)

saveComment

public void saveComment(String questionId,
                        org.exoplatform.faq.service.Comment cm,
                        String language)

saveQuestion

public void saveQuestion(org.exoplatform.faq.service.Question question,
                         boolean isNew)

saveAnswer

public void saveAnswer(String questionId,
                       org.exoplatform.faq.service.Answer[] answers,
                       boolean isNew)

voteQuestion

public void voteQuestion(String questionId)

unVoteQuestion

public void unVoteQuestion(String questionId)

removeQuestion

public void removeQuestion(String questionActivityId)

removeAnswer

public void removeAnswer(String questionPath,
                         String answerActivityId)

removeComment

public void removeComment(String questionActivityId,
                          String commentActivityId,
                          String questionPath)


Copyright © 2003–2014 eXo Platform SAS. All rights reserved.