| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.stratelia.silverpeas.infoLetter.implementation.InfoLetterDataManager
public class InfoLetterDataManager
Class declaration
| Constructor Summary | |
|---|---|
InfoLetterDataManager()
 | 
|
| Method Summary | |
|---|---|
 InfoLetter | 
createDefaultLetter(String componentId)
Create a default Info Letter when instanciated  | 
 void | 
createInfoLetter(InfoLetter il)
Implementation of InfoLetterDataInterface interface  | 
 void | 
createInfoLetterPublication(InfoLetterPublicationPdC ilp,
                            String userId)
Create information letter publication  | 
 void | 
deleteInfoLetterPublication(com.stratelia.webactiv.util.WAPrimaryKey pk,
                            String componentId)
Delete information letter publication  | 
 Set<String> | 
getEmailsExternalsSuscribers(com.stratelia.webactiv.util.WAPrimaryKey letterPK)
 | 
 InfoLetter | 
getInfoLetter(com.stratelia.webactiv.util.WAPrimaryKey letterPK)
Retrieve an information letter from his primary key  | 
 InfoLetterPublicationPdC | 
getInfoLetterPublication(com.stratelia.webactiv.util.WAPrimaryKey publiPK)
Retrieve information letter publication from his key  | 
 List<InfoLetterPublication> | 
getInfoLetterPublications(com.stratelia.webactiv.util.WAPrimaryKey letterPK)
Retrieve information letter publications  | 
 List<InfoLetter> | 
getInfoLetters(String instanceId)
Retrieve information letters  | 
 com.silverpeas.subscribe.util.SubscriptionSubscriberList | 
getInternalSuscribers(String componentId)
 | 
 int | 
getSilverObjectId(String pubId,
                  String componentId)
 | 
 void | 
initTemplate(String componentId,
             com.stratelia.webactiv.util.WAPrimaryKey letterPK,
             String userId)
 | 
 boolean | 
isUserSuscribed(String userId,
                String componentId)
Check if use is an internal subscriber of the information letter  | 
 Connection | 
openConnection()
open connection  | 
 Set<String> | 
sendLetterByMail(InfoLetterPublicationPdC ilp,
                 String server,
                 String mimeMultipart,
                 Set<String> listEmailDest,
                 String subject,
                 String emailFrom)
Send letter by mail  | 
 void | 
setEmailsExternalsSubscribers(com.stratelia.webactiv.util.WAPrimaryKey letterPK,
                              Set<String> emails)
Save external subscriber emails address  | 
 void | 
setInternalSuscribers(String componentId,
                      com.stratelia.webactiv.beans.admin.UserDetail[] users,
                      com.stratelia.webactiv.beans.admin.Group[] groups)
Update internal user subscribers list  | 
 void | 
toggleSuscriber(String userId,
                String componentId,
                boolean isUserSubscribing)
 | 
 void | 
updateInfoLetter(InfoLetter ie)
Update information letter  | 
 void | 
updateInfoLetterPublication(InfoLetterPublicationPdC ilp)
Update information letter publication  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public InfoLetterDataManager()
| Method Detail | 
|---|
public void createInfoLetter(InfoLetter il)
createInfoLetter in interface InfoLetterDataInterfaceil - the information letter to createpublic void updateInfoLetter(InfoLetter ie)
InfoLetterDataInterface
updateInfoLetter in interface InfoLetterDataInterfaceie - the information letter to updatepublic List<InfoLetter> getInfoLetters(String instanceId)
InfoLetterDataInterface
getInfoLetters in interface InfoLetterDataInterfaceinstanceId - the application identifier
public List<InfoLetterPublication> getInfoLetterPublications(com.stratelia.webactiv.util.WAPrimaryKey letterPK)
InfoLetterDataInterface
getInfoLetterPublications in interface InfoLetterDataInterfaceletterPK - the information letter primary key
public void createInfoLetterPublication(InfoLetterPublicationPdC ilp,
                                        String userId)
InfoLetterDataInterface
createInfoLetterPublication in interface InfoLetterDataInterfaceilp - the information letter publication pdc to createuserId - the creator user identifier
public void deleteInfoLetterPublication(com.stratelia.webactiv.util.WAPrimaryKey pk,
                                        String componentId)
InfoLetterDataInterface
deleteInfoLetterPublication in interface InfoLetterDataInterfacepk - the information letter publication primary keycomponentId - the component identifierpublic void updateInfoLetterPublication(InfoLetterPublicationPdC ilp)
InfoLetterDataInterface
updateInfoLetterPublication in interface InfoLetterDataInterfaceilp - the information letter publication to updatepublic InfoLetter getInfoLetter(com.stratelia.webactiv.util.WAPrimaryKey letterPK)
InfoLetterDataInterface
getInfoLetter in interface InfoLetterDataInterfaceletterPK - the letter primary key
public InfoLetterPublicationPdC getInfoLetterPublication(com.stratelia.webactiv.util.WAPrimaryKey publiPK)
InfoLetterDataInterface
getInfoLetterPublication in interface InfoLetterDataInterfacepubliPK - the information letter publication primary key
public InfoLetter createDefaultLetter(String componentId)
InfoLetterDataInterface
createDefaultLetter in interface InfoLetterDataInterfacecomponentId - the component identifier
public int getSilverObjectId(String pubId,
                             String componentId)
getSilverObjectId in interface InfoLetterDataInterfacepublic com.silverpeas.subscribe.util.SubscriptionSubscriberList getInternalSuscribers(String componentId)
getInternalSuscribers in interface InfoLetterDataInterfacecomponentId - componentId component instance id
public void setInternalSuscribers(String componentId,
                                  com.stratelia.webactiv.beans.admin.UserDetail[] users,
                                  com.stratelia.webactiv.beans.admin.Group[] groups)
InfoLetterDataInterface
setInternalSuscribers in interface InfoLetterDataInterfacecomponentId - componentId component instance idpublic Set<String> getEmailsExternalsSuscribers(com.stratelia.webactiv.util.WAPrimaryKey letterPK)
getEmailsExternalsSuscribers in interface InfoLetterDataInterface
public void setEmailsExternalsSubscribers(com.stratelia.webactiv.util.WAPrimaryKey letterPK,
                                          Set<String> emails)
InfoLetterDataInterface
setEmailsExternalsSubscribers in interface InfoLetterDataInterfaceletterPK - the letter primary keyemails - the list of external emails to save
public void toggleSuscriber(String userId,
                            String componentId,
                            boolean isUserSubscribing)
toggleSuscriber in interface InfoLetterDataInterface
public boolean isUserSuscribed(String userId,
                               String componentId)
InfoLetterDataInterface
isUserSuscribed in interface InfoLetterDataInterfaceuserId - the user identifier
public void initTemplate(String componentId,
                         com.stratelia.webactiv.util.WAPrimaryKey letterPK,
                         String userId)
initTemplate in interface InfoLetterDataInterface
public Connection openConnection()
                          throws InfoLetterException
openConnection in interface InfoLetterDataInterfaceInfoLetterException
public Set<String> sendLetterByMail(InfoLetterPublicationPdC ilp,
                                    String server,
                                    String mimeMultipart,
                                    Set<String> listEmailDest,
                                    String subject,
                                    String emailFrom)
InfoLetterDataInterface
sendLetterByMail in interface InfoLetterDataInterfaceilp - the information letter
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||