|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.stratelia.silverpeas.peasCore.AbstractComponentSessionController
com.stratelia.silverpeas.infoLetter.control.InfoLetterSessionController
public class InfoLetterSessionController
Class declaration
Field Summary | |
---|---|
static String |
EXPORT_CSV_NAME
|
Fields inherited from class com.stratelia.silverpeas.peasCore.AbstractComponentSessionController |
---|
CHARACTER_ENCODING, context |
Constructor Summary | |
---|---|
InfoLetterSessionController(com.stratelia.silverpeas.peasCore.MainSessionController mainSessionCtrl,
com.stratelia.silverpeas.peasCore.ComponentContext componentContext)
Standard Session Controller Constructeur |
Method Summary | |
---|---|
void |
addExternalsSuscribers(com.stratelia.webactiv.util.WAPrimaryKey letterPK,
String newmails)
|
void |
copyWYSIWYG(String publicationSource,
String target)
|
void |
createIndex(InfoLetter il)
|
void |
createIndex(InfoLetterPublicationPdC ilp)
|
void |
createInfoLetterPublication(InfoLetterPublicationPdC ilp)
|
void |
deleteAllExternalsSuscribers(com.stratelia.webactiv.util.WAPrimaryKey letterPK)
Remove all external emails |
void |
deleteExternalsSuscribers(com.stratelia.webactiv.util.WAPrimaryKey letterPK,
String[] mails)
|
void |
deleteInfoLetterPublication(com.stratelia.webactiv.util.WAPrimaryKey pk)
|
boolean |
exportCsvEmails()
Export Csv emails |
Set<String> |
getEmailsExternalsSuscribers(com.stratelia.webactiv.util.WAPrimaryKey letterPK)
|
InfoLetterPublicationPdC |
getInfoLetterPublication(com.stratelia.webactiv.util.WAPrimaryKey publiPK)
|
List<InfoLetterPublication> |
getInfoLetterPublications(com.stratelia.webactiv.util.WAPrimaryKey letterPK)
|
List<InfoLetter> |
getInfoLetters()
|
protected com.silverpeas.util.template.SilverpeasTemplate |
getNotificationMessageTemplate()
|
String |
getTemplate(InfoLetterPublicationPdC ilp)
|
void |
importCsvEmails(org.apache.commons.fileupload.FileItem filePart)
Import Csv emails |
String |
initUserPanel()
|
boolean |
isNewsLetterSendByMail()
return true if Newsletter is send by mail to internal users |
boolean |
isPdcUsed()
|
boolean |
isSuscriber()
|
boolean |
isTemplateExist(InfoLetterPublicationPdC ilp)
|
void |
notifyInternalSuscribers(InfoLetterPublicationPdC ilp,
String server)
Notify the newsletter to internal subscribers |
String[] |
notifyManagers(InfoLetterPublicationPdC ilp,
String server)
Send letter to managers |
void |
retourUserPanel()
|
String[] |
sendByMailToExternalSubscribers(InfoLetterPublicationPdC ilp,
String server)
Send letter by mail to external subscribers |
String[] |
sendLetterByMail(InfoLetterPublicationPdC ilp,
String server,
Set<String> emails)
Send letter by mail |
void |
suscribeUser()
|
void |
unsuscribeUser()
|
void |
updateContentInfoLetterPublication(String content,
InfoLetterPublicationPdC ilp)
save wysiwyg content of the newsletter |
void |
updateInfoLetter(InfoLetter ie)
|
void |
updateInfoLetterPublication(InfoLetterPublicationPdC ilp)
|
void |
updateTemplate(InfoLetterPublicationPdC ilp)
|
Methods inherited from class com.stratelia.silverpeas.peasCore.AbstractComponentSessionController |
---|
addClipboardSelection, clipboardPasteDone, close, getAlertUser, getClipboardCount, getClipboardErrorMessage, getClipboardExceptionError, getClipboardName, getClipboardObjects, getClipboardSelectedObjects, getClipboardSize, getComponentAccessController, getComponentId, getComponentLabel, getComponentName, getComponentParameters, getComponentParameterValue, getComponentParameterValue, getComponentRootName, getComponentUrl, getFavoriteSpace, getGenericPanel, getHighestSilverpeasUserRole, getIcon, getLanguage, getLastResults, getLook, getMultilang, getOrganisationController, getPersonalization, getRSSUrl, getSelection, getServerNameAndPort, getSettings, getSilverpeasUserRoles, getSpaceId, getSpaceLabel, getString, getSubscriptionContext, getUrlEncodedParameter, getUserAccessLevel, getUserAvailComponentIds, getUserAvailSpaceIds, getUserDetail, getUserDetail, getUserId, getUserManageableGroupIds, getUserManageableSpaceIds, getUserRoleLevel, getUserRoles, isAppInMaintenance, isGroupManager, isPasswordChangeAllowed, isSpaceInMaintenance, removeClipboardElement, setAppModeMaintenance, setClipboardError, setClipboardSelectedElement, setComponentRootName, setFavoriteSpaceToMainSessionController, setGenericPanel, setIconFileName, setLastResults, setMultilangFileName, setResourceFileName, setSpaceModeMaintenance |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String EXPORT_CSV_NAME
Constructor Detail |
---|
public InfoLetterSessionController(com.stratelia.silverpeas.peasCore.MainSessionController mainSessionCtrl, com.stratelia.silverpeas.peasCore.ComponentContext componentContext)
mainSessionCtrl
- The user's profilecomponentContext
- The component's profile
Method Detail |
---|
public String initUserPanel() throws InfoLetterException
InfoLetterException
public void retourUserPanel()
public void updateInfoLetter(InfoLetter ie)
public List<InfoLetter> getInfoLetters()
public List<InfoLetterPublication> getInfoLetterPublications(com.stratelia.webactiv.util.WAPrimaryKey letterPK)
public void createInfoLetterPublication(InfoLetterPublicationPdC ilp) throws IOException
IOException
public void deleteInfoLetterPublication(com.stratelia.webactiv.util.WAPrimaryKey pk)
public void updateInfoLetterPublication(InfoLetterPublicationPdC ilp)
public InfoLetterPublicationPdC getInfoLetterPublication(com.stratelia.webactiv.util.WAPrimaryKey publiPK)
protected com.silverpeas.util.template.SilverpeasTemplate getNotificationMessageTemplate()
public void notifyInternalSuscribers(InfoLetterPublicationPdC ilp, String server)
ilp
- the infoletter to sendserver
- public String[] sendLetterByMail(InfoLetterPublicationPdC ilp, String server, Set<String> emails)
ilp
- server
- emails
-
public String[] sendByMailToExternalSubscribers(InfoLetterPublicationPdC ilp, String server)
ilp
- server
-
public String[] notifyManagers(InfoLetterPublicationPdC ilp, String server)
ilp
- server
-
public Set<String> getEmailsExternalsSuscribers(com.stratelia.webactiv.util.WAPrimaryKey letterPK)
public void addExternalsSuscribers(com.stratelia.webactiv.util.WAPrimaryKey letterPK, String newmails)
public void deleteExternalsSuscribers(com.stratelia.webactiv.util.WAPrimaryKey letterPK, String[] mails)
public void deleteAllExternalsSuscribers(com.stratelia.webactiv.util.WAPrimaryKey letterPK)
letterPK
- public void suscribeUser()
public void unsuscribeUser()
public boolean isSuscriber()
public void updateTemplate(InfoLetterPublicationPdC ilp)
public void copyWYSIWYG(String publicationSource, String target)
public boolean isTemplateExist(InfoLetterPublicationPdC ilp)
public String getTemplate(InfoLetterPublicationPdC ilp)
public void createIndex(InfoLetterPublicationPdC ilp)
public void createIndex(InfoLetter il)
public boolean isPdcUsed()
public void importCsvEmails(org.apache.commons.fileupload.FileItem filePart) throws com.stratelia.webactiv.util.exception.UtilTrappedException, InfoLetterPeasTrappedException, InfoLetterException
filePart
-
com.stratelia.webactiv.util.exception.UtilTrappedException
InfoLetterPeasTrappedException
InfoLetterException
public boolean exportCsvEmails() throws IOException, InfoLetterException
IOException
InfoLetterException
public boolean isNewsLetterSendByMail()
public void updateContentInfoLetterPublication(String content, InfoLetterPublicationPdC ilp)
content
- ilp
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |