| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.stratelia.webactiv.forums.forumsManager.ejb.ForumsBMEJB
public class ForumsBMEJB
Cette classe est le Business Manager qui gere les forums
| Constructor Summary | |
|---|---|
ForumsBMEJB()
 | 
|
| Method Summary | |
|---|---|
 void | 
addModerator(ForumPK forumPK,
             String userId)
Method declaration  | 
 String | 
createCategory(com.stratelia.webactiv.util.node.model.NodeDetail category)
 | 
 int | 
createForum(ForumPK forumPK,
            String forumName,
            String forumDescription,
            String forumCreator,
            int forumParent,
            String categoryId,
            String keywords)
Cree un nouveau forum dans la datasource  | 
 void | 
createIndex(ForumPK forumPK)
Method declaration  | 
 void | 
createIndex(MessagePK messagePK)
Method declaration  | 
 int | 
createMessage(MessagePK messagePK,
              String title,
              String authorId,
              Date creationDate,
              int forumId,
              int parentId,
              String content,
              String keywords,
              String status)
Cree un nouveau message  | 
 void | 
deleteCategory(String categoryId,
               String instanceId)
 | 
 void | 
deleteForum(ForumPK forumPK)
Supprime un forum et tous ses sous-forums a partir de sa primary key  | 
 void | 
deleteMessage(MessagePK messagePK)
Supprime un message et tous ses sous-messages a partir de sa primary key  | 
 Collection<com.stratelia.webactiv.util.node.model.NodeDetail> | 
getAllCategories(String instanceId)
 | 
 Collection<String> | 
getAllMessageSons(MessagePK messagePK)
Liste tous les sous-messages d'un message récursivement  | 
 int | 
getAuthorNbMessages(String userId,
                    String status)
 | 
 com.stratelia.webactiv.util.node.model.NodeDetail | 
getCategory(com.stratelia.webactiv.util.node.model.NodePK pk)
 | 
 Forum | 
getForum(ForumPK forumPK)
 | 
 String | 
getForumCreatorId(int forumId)
 | 
 ForumDetail | 
getForumDetail(ForumPK forumPK)
 | 
 String | 
getForumInstanceId(int forumId)
 | 
 String | 
getForumName(int forumId)
 | 
 int | 
getForumParentId(int forumId)
 | 
 Collection<Forum> | 
getForumRootList(String instanceId)
Gets all forums of an instanceId that have not parent forum.  | 
 Collection<ForumDetail> | 
getForums(Collection<ForumPK> forumPKs)
 | 
 List<Forum> | 
getForums(ForumPK forumPK)
 | 
 List<Forum> | 
getForumsByCategory(ForumPK forumPK,
                    String categoryId)
 | 
 Collection<Forum> | 
getForumsList(Collection<ForumPK> forumPKs)
 | 
 List<String> | 
getForumSonsIds(ForumPK forumPK)
 | 
 String | 
getForumTags(ForumPK forumPK)
 | 
 Message | 
getLastMessage(ForumPK forumPK,
               int messageParentId,
               String status)
 | 
 Message | 
getLastMessage(ForumPK forumPK,
               List<String> messageParentIds,
               String status)
 | 
 Message | 
getLastMessage(ForumPK forumPK,
               String status)
Retourne le dernier message d'un forum  | 
 Collection | 
getLastMessageRSS(String instanceId,
                  int nbReturned)
 | 
 Collection<Message> | 
getLastThreads(ForumPK forumPK,
               int count)
 | 
 Message | 
getMessage(MessagePK messagePK)
 | 
 int | 
getMessageParentId(int messageId)
 | 
 Collection<Message> | 
getMessages(ForumPK forumPK)
 | 
 Collection<String> | 
getMessageSons(MessagePK messagePK)
Liste tous les sous-messages d'un message  | 
 String | 
getMessageTags(MessagePK messagePK)
 | 
 String | 
getMessageTitle(int messageId)
 | 
 List<Moderator> | 
getModerators(int forumId)
 | 
 int | 
getNbMessages(int forumId,
              String type,
              String status)
 | 
 int | 
getNbResponses(int forumId,
               int messageId,
               String status)
 | 
 Collection<Message> | 
getNotAnsweredLastThreads(ForumPK forumPK,
                          int count)
 | 
 int | 
getSilverObjectId(ForumPK forumPK)
 | 
protected  com.silverpeas.subscribe.SubscriptionService | 
getSubscribeBm()
Gets instance of centralized subscription services.  | 
 Collection<Message> | 
getThreadsList(Collection<MessagePK> messagePKs)
 | 
protected  String | 
getWysiwygContent(String componentId,
                  String messageId)
 | 
 boolean | 
isForumActive(int forumId)
 | 
 boolean | 
isModerator(String userId,
            ForumPK forumPK)
Method declaration  | 
 boolean | 
isNewMessage(String userId,
             ForumPK forumPK,
             int messageParentId,
             String status)
 | 
 boolean | 
isNewMessageByForum(String userId,
                    ForumPK forumPK,
                    String status)
Retourne vrai s'il y a des messages non lus sur ce forum depuis la dernière visite  | 
 boolean | 
isSubscriber(ForumPK forumPK,
             String userId)
Indicates if the given user has subscribed to the given forum identifier.  | 
 boolean | 
isSubscriber(MessagePK messagePK,
             String userId)
Indicates if the given user has subscribed to the given forum message identifier.  | 
 boolean | 
isSubscriber(String instanceId,
             String userId)
Indicates if the given user has subscribed to the given component instance identifier.  | 
 boolean | 
isSubscriberByInheritance(ForumPK forumPK,
                          String userId)
Indicates if the given user is subscribed by inheritance to the given forum identifier.  | 
 boolean | 
isSubscriberByInheritance(MessagePK messagePK,
                          String userId)
Indicates if the given user is subscribed by inheritance to the given forum message identifier.  | 
 com.silverpeas.subscribe.util.SubscriptionSubscriberList | 
listAllSubscribers(ForumPK forumPK)
Gets the list of subscribers related to the given forum primary key.  | 
 com.silverpeas.subscribe.util.SubscriptionSubscriberList | 
listAllSubscribers(MessagePK messagePK)
Gets the list of subscribers related to the given forum message primary key.  | 
 com.silverpeas.subscribe.util.SubscriptionSubscriberList | 
listAllSubscribers(String instanceId)
Gets the list of subscribers to the given component instance identifier.  | 
 void | 
lockForum(ForumPK forumPK,
          int level)
Verrouille recursivement l'arborescence d'un forum en ecriture a partir de sa primary key  | 
 void | 
moveMessage(MessagePK messagePK,
            ForumPK forumPK)
Method declaration  | 
protected  Connection | 
openConnection()
Ouverture de la connection vers la source de donnees  | 
 void | 
removeAllModerators(ForumPK forumPK)
Method declaration  | 
 void | 
removeModerator(ForumPK forumPK,
                String userId)
Method declaration  | 
 void | 
setLastVisit(String userId,
             int messageId)
enregistre la date de la dernière visite d'un utilisateur sur un forum  | 
 void | 
subscribeForum(ForumPK forumPK,
               String userId)
Subscribe the given user to the given forum.  | 
 void | 
subscribeMessage(MessagePK messagePK,
                 String userId)
Subscribe the given user to the given forum message.  | 
 int | 
unlockForum(ForumPK forumPK,
            int level)
Deverrouille recursivement un forum en ecriture a partir de sa primary key  | 
 void | 
unsubscribeForum(ForumPK forumPK,
                 String userId)
Unsubscribe the given user to the given forum.  | 
 void | 
unsubscribeMessage(MessagePK messagePK,
                   String userId)
Unsubscribe the given user to the given forum message.  | 
 void | 
updateCategory(com.stratelia.webactiv.util.node.model.NodeDetail category)
 | 
 void | 
updateForum(ForumPK forumPK,
            String forumName,
            String forumDescription,
            int forumParent,
            String categoryId,
            String keywords)
Met a jour les informations sur un forum dans la datasource  | 
 void | 
updateMessage(MessagePK messagePK,
              String title,
              String message,
              String userId,
              String status)
 | 
 void | 
updateMessageKeywords(MessagePK messagePK,
                      String keywords)
 | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public ForumsBMEJB()
| Method Detail | 
|---|
public Collection<ForumDetail> getForums(Collection<ForumPK> forumPKs)
getForums in interface ForumsBMpublic Forum getForum(ForumPK forumPK)
getForum in interface ForumsBMpublic Collection<Forum> getForumRootList(String instanceId)
getForumRootList in interface ForumsBMinstanceId - 
public Collection<Forum> getForumsList(Collection<ForumPK> forumPKs)
getForumsList in interface ForumsBMpublic Collection<Message> getThreadsList(Collection<MessagePK> messagePKs)
getThreadsList in interface ForumsBMpublic String getForumName(int forumId)
getForumName in interface ForumsBMpublic boolean isForumActive(int forumId)
isForumActive in interface ForumsBMpublic int getForumParentId(int forumId)
getForumParentId in interface ForumsBMpublic String getForumInstanceId(int forumId)
getForumInstanceId in interface ForumsBMpublic String getForumCreatorId(int forumId)
public List<Forum> getForums(ForumPK forumPK)
getForums in interface ForumsBMforumPK - 
public ForumDetail getForumDetail(ForumPK forumPK)
getForumDetail in interface ForumsBMforumPK - forum primary key
public List<Forum> getForumsByCategory(ForumPK forumPK,
                                       String categoryId)
getForumsByCategory in interface ForumsBMpublic List<String> getForumSonsIds(ForumPK forumPK)
getForumSonsIds in interface ForumsBMforumPK - 
public void lockForum(ForumPK forumPK,
                      int level)
lockForum in interface ForumsBMforumPK - la primary key du forumlevel - le niveau de verrouillage
public int unlockForum(ForumPK forumPK,
                       int level)
unlockForum in interface ForumsBMforumPK - la primary key du forumlevel - le niveau de verrouillage
public void deleteForum(ForumPK forumPK)
deleteForum in interface ForumsBMforumPK - la primary key du forum
public int createForum(ForumPK forumPK,
                       String forumName,
                       String forumDescription,
                       String forumCreator,
                       int forumParent,
                       String categoryId,
                       String keywords)
createForum in interface ForumsBMforumPK - la primary keyforumName - nom du forumforumDescription - description du forumforumCreator - l'id du createur du forumforumParent - l'id du forum parentcategoryId - l'id de la categoriekeywords - 
public void updateForum(ForumPK forumPK,
                        String forumName,
                        String forumDescription,
                        int forumParent,
                        String categoryId,
                        String keywords)
updateForum in interface ForumsBMforumPK - la primary key du forumforumName - nom du forumforumDescription - description du forumforumParent - l'id du forum parentcategoryId - l'id de la catégoriekeywords - the keywords associated to this forum.public Collection<Message> getMessages(ForumPK forumPK)
getMessages in interface ForumsBM
public int getNbMessages(int forumId,
                         String type,
                         String status)
getNbMessages in interface ForumsBM
public int getAuthorNbMessages(String userId,
                               String status)
getAuthorNbMessages in interface ForumsBM
public int getNbResponses(int forumId,
                          int messageId,
                          String status)
getNbResponses in interface ForumsBM
public Message getLastMessage(ForumPK forumPK,
                              String status)
getLastMessage in interface ForumsBMforumPK - la primary key du forumstatus - 
public Collection getLastMessageRSS(String instanceId,
                                    int nbReturned)
getLastMessageRSS in interface ForumsBM
public Message getLastMessage(ForumPK forumPK,
                              int messageParentId,
                              String status)
getLastMessage in interface ForumsBM
public Message getLastMessage(ForumPK forumPK,
                              List<String> messageParentIds,
                              String status)
getLastMessage in interface ForumsBM
public boolean isNewMessageByForum(String userId,
                                   ForumPK forumPK,
                                   String status)
isNewMessageByForum in interface ForumsBMuserId - l'id de l'utilisateurforumPK - l'id du forumstatus - le status (validé, en attente, ...)
public boolean isNewMessage(String userId,
                            ForumPK forumPK,
                            int messageParentId,
                            String status)
isNewMessage in interface ForumsBM
public void setLastVisit(String userId,
                         int messageId)
setLastVisit in interface ForumsBMmessageId - l'id du messageuserId - l'id de l'utilisateurpublic Message getMessage(MessagePK messagePK)
getMessage in interface ForumsBMpublic String getMessageTitle(int messageId)
getMessageTitle in interface ForumsBMpublic int getMessageParentId(int messageId)
getMessageParentId in interface ForumsBM
public int createMessage(MessagePK messagePK,
                         String title,
                         String authorId,
                         Date creationDate,
                         int forumId,
                         int parentId,
                         String content,
                         String keywords,
                         String status)
createMessage in interface ForumsBMmessagePK - la primary key du messagetitle - titre du messageauthorId - id de l'auteur du messagecreationDate - date de creationforumId - id du forumparentId - id du message parentcontent - texte du messagekeywords - the message keywordsstatus - the message status
public void updateMessage(MessagePK messagePK,
                          String title,
                          String message,
                          String userId,
                          String status)
updateMessage in interface ForumsBM
public void updateMessageKeywords(MessagePK messagePK,
                                  String keywords)
updateMessageKeywords in interface ForumsBMpublic void deleteMessage(MessagePK messagePK)
deleteMessage in interface ForumsBMmessagePK - la primary key du message
public boolean isModerator(String userId,
                           ForumPK forumPK)
isModerator in interface ForumsBMuserId - forumPK - 
public void addModerator(ForumPK forumPK,
                         String userId)
addModerator in interface ForumsBMforumPK - userId - 
public void removeModerator(ForumPK forumPK,
                            String userId)
removeModerator in interface ForumsBMforumPK - userId - public void removeAllModerators(ForumPK forumPK)
removeAllModerators in interface ForumsBMforumPK - public List<Moderator> getModerators(int forumId)
getModerators in interface ForumsBM
public void moveMessage(MessagePK messagePK,
                        ForumPK forumPK)
moveMessage in interface ForumsBMmessagePK - forumPK - public Collection<String> getMessageSons(MessagePK messagePK)
messagePK - la primary key du message pere
public Collection<String> getAllMessageSons(MessagePK messagePK)
messagePK - la primary key du message pere
public void subscribeMessage(MessagePK messagePK,
                             String userId)
subscribeMessage in interface ForumsBMmessagePK - userId - 
public void unsubscribeMessage(MessagePK messagePK,
                               String userId)
unsubscribeMessage in interface ForumsBMmessagePK - userId - 
public void subscribeForum(ForumPK forumPK,
                           String userId)
subscribeForum in interface ForumsBMforumPK - userId - 
public void unsubscribeForum(ForumPK forumPK,
                             String userId)
unsubscribeForum in interface ForumsBMforumPK - userId - public com.silverpeas.subscribe.util.SubscriptionSubscriberList listAllSubscribers(MessagePK messagePK)
listAllSubscribers in interface ForumsBMmessagePK - 
public com.silverpeas.subscribe.util.SubscriptionSubscriberList listAllSubscribers(ForumPK forumPK)
listAllSubscribers in interface ForumsBMforumPK - 
public com.silverpeas.subscribe.util.SubscriptionSubscriberList listAllSubscribers(String instanceId)
listAllSubscribers in interface ForumsBMinstanceId - 
public boolean isSubscriber(MessagePK messagePK,
                            String userId)
isSubscriber in interface ForumsBMmessagePK - userId - 
public boolean isSubscriberByInheritance(MessagePK messagePK,
                                         String userId)
isSubscriberByInheritance in interface ForumsBMmessagePK - userId - 
public boolean isSubscriber(ForumPK forumPK,
                            String userId)
isSubscriber in interface ForumsBMforumPK - userId - 
public boolean isSubscriberByInheritance(ForumPK forumPK,
                                         String userId)
isSubscriberByInheritance in interface ForumsBMforumPK - userId - 
public boolean isSubscriber(String instanceId,
                            String userId)
isSubscriber in interface ForumsBMinstanceId - userId - 
public void createIndex(MessagePK messagePK)
createIndex in interface ForumsBMmessagePK - public void createIndex(ForumPK forumPK)
createIndex in interface ForumsBMforumPK - protected Connection openConnection()
public int getSilverObjectId(ForumPK forumPK)
getSilverObjectId in interface ForumsBMpublic String createCategory(com.stratelia.webactiv.util.node.model.NodeDetail category)
createCategory in interface ForumsBMpublic void updateCategory(com.stratelia.webactiv.util.node.model.NodeDetail category)
updateCategory in interface ForumsBM
public void deleteCategory(String categoryId,
                           String instanceId)
deleteCategory in interface ForumsBMpublic com.stratelia.webactiv.util.node.model.NodeDetail getCategory(com.stratelia.webactiv.util.node.model.NodePK pk)
getCategory in interface ForumsBMpublic Collection<com.stratelia.webactiv.util.node.model.NodeDetail> getAllCategories(String instanceId)
getAllCategories in interface ForumsBM
public Collection<Message> getLastThreads(ForumPK forumPK,
                                          int count)
getLastThreads in interface ForumsBM
public Collection<Message> getNotAnsweredLastThreads(ForumPK forumPK,
                                                     int count)
getNotAnsweredLastThreads in interface ForumsBMpublic String getForumTags(ForumPK forumPK)
getForumTags in interface ForumsBMpublic String getMessageTags(MessagePK messagePK)
getMessageTags in interface ForumsBM
protected String getWysiwygContent(String componentId,
                                   String messageId)
protected com.silverpeas.subscribe.SubscriptionService getSubscribeBm()
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||