Class InfoLetterPublication
java.lang.Object
org.silverpeas.core.persistence.jdbc.bean.SilverpeasBean
org.silverpeas.components.infoletter.model.InfoLetterPublication
- All Implemented Interfaces:
Serializable,Comparable<InfoLetter>,org.silverpeas.core.contribution.model.WithPermanentLink,org.silverpeas.core.persistence.jdbc.bean.SilverpeasEntityBean
- Direct Known Subclasses:
InfoLetterPublicationPdC
public class InfoLetterPublication
extends org.silverpeas.core.persistence.jdbc.bean.SilverpeasBean
implements org.silverpeas.core.contribution.model.WithPermanentLink, Comparable<InfoLetter>
- Author:
- frageade
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorInfoLetterPublication(org.silverpeas.core.ResourceReference pk, String title, String description, String parutionDate, int publicationState, int letterId) -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(InfoLetter obj) voidDeletes contents linked to the publication (WYSIWYG and DDWE ones).booleanorg.silverpeas.core.contribution.model.ContributionIdentifierintintprotected StringgetTitle()Optional<org.silverpeas.core.contribution.model.WysiwygContent>inthashCode()voidinitFrom(InfoLetter infoLetter) Initializing the content from the given template.booleanisValid()voidsaveContent(String manualContent) Saves given content.voidsetDescription(String description) voidsetInstanceId(String instanceId) voidsetLetterId(int letterId) voidsetLetterId(String letterId) voidsetParutionDate(String parutionDate) voidsetPublicationState(int publicationState) voidMethods inherited from class org.silverpeas.core.persistence.jdbc.bean.SilverpeasBean
getNonNullString, getPK, setPK
-
Field Details
-
PUBLICATION_EN_REDACTION
public static final int PUBLICATION_EN_REDACTION- See Also:
-
PUBLICATION_VALIDEE
public static final int PUBLICATION_VALIDEE- See Also:
-
-
Constructor Details
-
InfoLetterPublication
public InfoLetterPublication()Default constructor -
InfoLetterPublication
-
-
Method Details
-
getIdentifier
public org.silverpeas.core.contribution.model.ContributionIdentifier getIdentifier() -
getInstanceId
-
setInstanceId
-
getTitle
-
setTitle
-
getDescription
-
setDescription
-
getParutionDate
-
setParutionDate
-
getPublicationState
public int getPublicationState() -
setPublicationState
public void setPublicationState(int publicationState) -
getLetterId
public int getLetterId() -
setLetterId
public void setLetterId(int letterId) -
setLetterId
-
getPermalink
- Specified by:
getPermalinkin interfaceorg.silverpeas.core.contribution.model.WithPermanentLink
-
compareTo
- Specified by:
compareToin interfaceComparable<InfoLetter>
-
equals
-
hashCode
public int hashCode() -
getTableName
- Specified by:
getTableNamein classorg.silverpeas.core.persistence.jdbc.bean.SilverpeasBean
-
isValid
public boolean isValid() -
initFrom
Initializing the content from the given template.The initialization is using WYSIWYG services and
InfoLetterPublicationstoring in order to handle properly document copying.- Parameters:
infoLetter- the template.
-
getWysiwygContent
-
saveContent
Saves given content.The given content MAY be directly a WYSIWYG content, in a such case the content has been edited by a WYSIWYG editor.
The given content is not defined, in a such case the content has been MAYBE edited by a Drag And Drop Web Editor. Then the temporary content is saved into final one and the Inlined HTML is saved into WYSIWYG repository.
- Parameters:
manualContent- a manual content. The content is specified when it comes directly from a WYSIWYG editing.
-
deleteContent
public void deleteContent()Deletes contents linked to the publication (WYSIWYG and DDWE ones).
-