|
||||||||||
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 InfoLetterDataInterface
il
- the information letter to createpublic void updateInfoLetter(InfoLetter ie)
InfoLetterDataInterface
updateInfoLetter
in interface InfoLetterDataInterface
ie
- the information letter to updatepublic List<InfoLetter> getInfoLetters(String instanceId)
InfoLetterDataInterface
getInfoLetters
in interface InfoLetterDataInterface
instanceId
- the application identifier
public List<InfoLetterPublication> getInfoLetterPublications(com.stratelia.webactiv.util.WAPrimaryKey letterPK)
InfoLetterDataInterface
getInfoLetterPublications
in interface InfoLetterDataInterface
letterPK
- the information letter primary key
public void createInfoLetterPublication(InfoLetterPublicationPdC ilp, String userId)
InfoLetterDataInterface
createInfoLetterPublication
in interface InfoLetterDataInterface
ilp
- the information letter publication pdc to createuserId
- the creator user identifierpublic void deleteInfoLetterPublication(com.stratelia.webactiv.util.WAPrimaryKey pk, String componentId)
InfoLetterDataInterface
deleteInfoLetterPublication
in interface InfoLetterDataInterface
pk
- the information letter publication primary keycomponentId
- the component identifierpublic void updateInfoLetterPublication(InfoLetterPublicationPdC ilp)
InfoLetterDataInterface
updateInfoLetterPublication
in interface InfoLetterDataInterface
ilp
- the information letter publication to updatepublic InfoLetter getInfoLetter(com.stratelia.webactiv.util.WAPrimaryKey letterPK)
InfoLetterDataInterface
getInfoLetter
in interface InfoLetterDataInterface
letterPK
- the letter primary key
public InfoLetterPublicationPdC getInfoLetterPublication(com.stratelia.webactiv.util.WAPrimaryKey publiPK)
InfoLetterDataInterface
getInfoLetterPublication
in interface InfoLetterDataInterface
publiPK
- the information letter publication primary key
public InfoLetter createDefaultLetter(String componentId)
InfoLetterDataInterface
createDefaultLetter
in interface InfoLetterDataInterface
componentId
- the component identifier
public int getSilverObjectId(String pubId, String componentId)
getSilverObjectId
in interface InfoLetterDataInterface
public com.silverpeas.subscribe.util.SubscriptionSubscriberList getInternalSuscribers(String componentId)
getInternalSuscribers
in interface InfoLetterDataInterface
componentId
- 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 InfoLetterDataInterface
componentId
- 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 InfoLetterDataInterface
letterPK
- the letter primary keyemails
- the list of external emails to savepublic void toggleSuscriber(String userId, String componentId, boolean isUserSubscribing)
toggleSuscriber
in interface InfoLetterDataInterface
public boolean isUserSuscribed(String userId, String componentId)
InfoLetterDataInterface
isUserSuscribed
in interface InfoLetterDataInterface
userId
- 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 InfoLetterDataInterface
InfoLetterException
public Set<String> sendLetterByMail(InfoLetterPublicationPdC ilp, String server, String mimeMultipart, Set<String> listEmailDest, String subject, String emailFrom)
InfoLetterDataInterface
sendLetterByMail
in interface InfoLetterDataInterface
ilp
- the information letter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |