| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface InfoLetterDataInterface
Interface declaration
| Method Summary | |
|---|---|
 InfoLetter | 
createDefaultLetter(String componentId)
Create a default Info Letter when instanciated  | 
 void | 
createInfoLetter(InfoLetter il)
Create information letter  | 
 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 applicationId)
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()
Ouverture de la connection vers la source de donnees  | 
 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 il)
Update information letter  | 
 void | 
updateInfoLetterPublication(InfoLetterPublicationPdC ilp)
Update information letter publication  | 
| Method Detail | 
|---|
Connection openConnection()
                          throws InfoLetterException
InfoLetterExceptionvoid createInfoLetter(InfoLetter il)
il - the information letter to createvoid updateInfoLetter(InfoLetter il)
il - the information letter to updateList<InfoLetter> getInfoLetters(String applicationId)
applicationId - the application identifier
List<InfoLetterPublication> getInfoLetterPublications(com.stratelia.webactiv.util.WAPrimaryKey letterPK)
letterPK - the information letter primary key
void createInfoLetterPublication(InfoLetterPublicationPdC ilp,
                                 String userId)
ilp - the information letter publication pdc to createuserId - the creator user identifier
void deleteInfoLetterPublication(com.stratelia.webactiv.util.WAPrimaryKey pk,
                                 String componentId)
pk - the information letter publication primary keycomponentId - the component identifiervoid updateInfoLetterPublication(InfoLetterPublicationPdC ilp)
ilp - the information letter publication to updateInfoLetter getInfoLetter(com.stratelia.webactiv.util.WAPrimaryKey letterPK)
letterPK - the letter primary key
InfoLetterPublicationPdC getInfoLetterPublication(com.stratelia.webactiv.util.WAPrimaryKey publiPK)
publiPK - the information letter publication primary key
InfoLetter createDefaultLetter(String componentId)
componentId - the component identifier
com.silverpeas.subscribe.util.SubscriptionSubscriberList getInternalSuscribers(String componentId)
componentId - componentId component instance id
void setInternalSuscribers(String componentId,
                           com.stratelia.webactiv.beans.admin.UserDetail[] users,
                           com.stratelia.webactiv.beans.admin.Group[] groups)
componentId - componentId component instance idusers - groups - Set<String> getEmailsExternalsSuscribers(com.stratelia.webactiv.util.WAPrimaryKey letterPK)
void setEmailsExternalsSubscribers(com.stratelia.webactiv.util.WAPrimaryKey letterPK,
                                   Set<String> emails)
letterPK - the letter primary keyemails - the list of external emails to save
void toggleSuscriber(String userId,
                     String componentId,
                     boolean isUserSubscribing)
boolean isUserSuscribed(String userId,
                        String componentId)
userId - the user identifiercomponentId - 
void initTemplate(String componentId,
                  com.stratelia.webactiv.util.WAPrimaryKey letterPK,
                  String userId)
int getSilverObjectId(String pubId,
                      String componentId)
Set<String> sendLetterByMail(InfoLetterPublicationPdC ilp,
                             String server,
                             String mimeMultipart,
                             Set<String> listEmailDest,
                             String subject,
                             String emailFrom)
ilp - the information letterserver - mimeMultipart - listEmailDest - subject - emailFrom - 
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||