Uses of Class
org.silverpeas.core.contribution.attachment.model.SimpleDocumentPK
-
Packages that use SimpleDocumentPK Package Description org.silverpeas.core.contribution.attachment Provides interfaces and classes to manage attachments.org.silverpeas.core.contribution.attachment.model org.silverpeas.core.contribution.attachment.repository org.silverpeas.web.attachment -
-
Uses of SimpleDocumentPK in org.silverpeas.core.contribution.attachment
Methods in org.silverpeas.core.contribution.attachment that return SimpleDocumentPK Modifier and Type Method Description SimpleDocumentPK
AttachmentService. changeVersionState(SimpleDocumentPK pk, String comment)
Change the management of versions of the document.SimpleDocumentPK
SimpleDocumentService. changeVersionState(SimpleDocumentPK pk, String comment)
SimpleDocumentPK
AttachmentService. cloneDocument(SimpleDocument original, String foreignCloneId)
Clone the document to a cloned container.SimpleDocumentPK
SimpleDocumentService. cloneDocument(SimpleDocument original, String foreignCloneId)
Clone the attachment.SimpleDocumentPK
AttachmentService. copyDocument(SimpleDocument original, ResourceReference targetPk)
Copies the attachment.SimpleDocumentPK
SimpleDocumentService. copyDocument(SimpleDocument original, ResourceReference targetPk)
Clone the attachment.SimpleDocumentPK
AttachmentService. moveDocument(SimpleDocument document, ResourceReference destination)
Moves the attachment.SimpleDocumentPK
SimpleDocumentService. moveDocument(SimpleDocument document, ResourceReference destination)
Methods in org.silverpeas.core.contribution.attachment that return types with arguments of type SimpleDocumentPK Modifier and Type Method Description List<Pair<SimpleDocumentPK,SimpleDocumentPK>>
AttachmentService. copyAllDocuments(ResourceReference resourceSourcePk, ResourceReference targetDestinationPk)
Copies all the attachment linked to a resource to another one.List<Pair<SimpleDocumentPK,SimpleDocumentPK>>
AttachmentService. copyAllDocuments(ResourceReference resourceSourcePk, ResourceReference targetDestinationPk)
Copies all the attachment linked to a resource to another one.List<Pair<SimpleDocumentPK,SimpleDocumentPK>>
SimpleDocumentService. copyAllDocuments(ResourceReference resourceSourcePk, ResourceReference targetDestinationPk)
List<Pair<SimpleDocumentPK,SimpleDocumentPK>>
SimpleDocumentService. copyAllDocuments(ResourceReference resourceSourcePk, ResourceReference targetDestinationPk)
List<SimpleDocumentPK>
AttachmentService. moveAllDocuments(ResourceReference resourceSourcePk, ResourceReference targetDestinationPk)
List<SimpleDocumentPK>
SimpleDocumentService. moveAllDocuments(ResourceReference resourceSourcePk, ResourceReference targetDestinationPk)
Methods in org.silverpeas.core.contribution.attachment with parameters of type SimpleDocumentPK Modifier and Type Method Description void
AttachmentService. addXmlForm(SimpleDocumentPK pk, String language, String xmlFormName)
void
SimpleDocumentService. addXmlForm(SimpleDocumentPK pk, String language, String xmlFormName)
SimpleDocumentPK
AttachmentService. changeVersionState(SimpleDocumentPK pk, String comment)
Change the management of versions of the document.SimpleDocumentPK
SimpleDocumentService. changeVersionState(SimpleDocumentPK pk, String comment)
SimpleDocument
AttachmentService. findExistingDocument(SimpleDocumentPK pk, String fileName, ResourceReference foreign, String lang)
Find documents with the same name attached to the specified foreign id.SimpleDocument
SimpleDocumentService. findExistingDocument(SimpleDocumentPK pk, String fileName, ResourceReference foreign, String lang)
void
AttachmentService. getBinaryContent(File file, SimpleDocumentPK pk, String lang)
Writes the binary content into the specified File.void
AttachmentService. getBinaryContent(OutputStream output, SimpleDocumentPK pk, String lang)
Writes the binary content into the specified OutputStream.void
AttachmentService. getBinaryContent(OutputStream output, SimpleDocumentPK pk, String lang, long contentOffset, long contentLength)
Writes the binary content contained between begin and end indexes into the specified OutputStream.void
SimpleDocumentService. getBinaryContent(File file, SimpleDocumentPK pk, String lang)
void
SimpleDocumentService. getBinaryContent(OutputStream output, SimpleDocumentPK pk, String lang)
void
SimpleDocumentService. getBinaryContent(OutputStream output, SimpleDocumentPK pk, String lang, long contentOffset, long contentLength)
SimpleDocument
AttachmentService. searchDocumentById(SimpleDocumentPK primaryKey, String lang)
Search the document.SimpleDocument
SimpleDocumentService. searchDocumentById(SimpleDocumentPK primaryKey, String lang)
void
AttachmentService. switchAllowingDownloadForReaders(SimpleDocumentPK pk, boolean allowing)
Allows or forbids the download for readers.void
SimpleDocumentService. switchAllowingDownloadForReaders(SimpleDocumentPK pk, boolean allowing)
void
AttachmentService. switchEnableDisplayAsContent(SimpleDocumentPK pk, boolean enable)
Enables or not the display of the content of an attachment.void
SimpleDocumentService. switchEnableDisplayAsContent(SimpleDocumentPK pk, boolean enable)
void
AttachmentService. switchEnableEditSimultaneously(SimpleDocumentPK pk, boolean enable)
Enables or not the simultaneous edition of the content of an attachment.void
SimpleDocumentService. switchEnableEditSimultaneously(SimpleDocumentPK pk, boolean enable)
Method parameters in org.silverpeas.core.contribution.attachment with type arguments of type SimpleDocumentPK Modifier and Type Method Description void
AttachmentService. reorderAttachments(List<SimpleDocumentPK> pks)
Reorder the attachments according to the order in the list.void
SimpleDocumentService. reorderAttachments(List<SimpleDocumentPK> pks)
Reorder the attachments according to the order in the list. -
Uses of SimpleDocumentPK in org.silverpeas.core.contribution.attachment.model
Methods in org.silverpeas.core.contribution.attachment.model that return SimpleDocumentPK Modifier and Type Method Description SimpleDocumentPK
SimpleDocumentPK. clone()
SimpleDocumentPK
SimpleDocument. getPk()
SimpleDocumentPK
SimpleDocumentVersion. getRealVersionPk()
Gets the real value of the PK of the version and not the one of the head version.SimpleDocumentPK
SimpleDocumentPK. setOldSilverpeasId(long oldSilverpeasId)
Methods in org.silverpeas.core.contribution.attachment.model with parameters of type SimpleDocumentPK Modifier and Type Method Description void
SimpleDocument. setPK(SimpleDocumentPK pk)
Constructors in org.silverpeas.core.contribution.attachment.model with parameters of type SimpleDocumentPK Constructor Description HistorisedDocument(SimpleDocumentPK pk, String foreignId, int order, String owner, SimpleAttachment file)
HistorisedDocument(SimpleDocumentPK pk, String foreignId, int order, SimpleAttachment file)
SimpleDocument(SimpleDocumentPK pk, String foreignId, int order, boolean versioned, String editedBy, SimpleAttachment attachment)
SimpleDocument(SimpleDocumentPK pk, String foreignId, int order, boolean versioned, SimpleAttachment attachment)
-
Uses of SimpleDocumentPK in org.silverpeas.core.contribution.attachment.repository
Methods in org.silverpeas.core.contribution.attachment.repository that return SimpleDocumentPK Modifier and Type Method Description SimpleDocumentPK
DocumentRepository. changeVersionState(javax.jcr.Session session, SimpleDocumentPK documentPk, String comment)
Change the management of versions of the document if the document is checkouted.SimpleDocumentPK
DocumentRepository. copyDocument(javax.jcr.Session session, HistorisedDocument document, ResourceReference destination)
Copy the document to another attached object.SimpleDocumentPK
DocumentRepository. copyDocument(javax.jcr.Session session, SimpleDocument document, ResourceReference destination)
Copy the document to another attached object.SimpleDocumentPK
DocumentRepository. createDocument(javax.jcr.Session session, SimpleDocument document)
Create file attached to an object who is identified by "PK" SimpleDocument object contains an attribute who identifie the link by a foreign key.SimpleDocumentPK
DocumentRepository. moveDocument(javax.jcr.Session session, SimpleDocument document, ResourceReference destination)
Move the document to another attached object.Methods in org.silverpeas.core.contribution.attachment.repository with parameters of type SimpleDocumentPK Modifier and Type Method Description void
DocumentRepository. addContent(javax.jcr.Session session, SimpleDocumentPK documentPk, SimpleAttachment attachment)
Add the content.SimpleDocumentPK
DocumentRepository. changeVersionState(javax.jcr.Session session, SimpleDocumentPK documentPk, String comment)
Change the management of versions of the document if the document is checkouted.void
DocumentRepository. deleteDocument(javax.jcr.Session session, SimpleDocumentPK documentPk)
Delete a file attached to an object who is identified by "PK" SimpleDocument object contains an attribute who identifie the link by a foreign key.SimpleDocument
DocumentRepository. findDocumentById(javax.jcr.Session session, SimpleDocumentPK documentPk, String lang)
InputStream
DocumentRepository. getContent(javax.jcr.Session session, SimpleDocumentPK pk, String lang)
Get the content.boolean
DocumentRepository. removeContent(javax.jcr.Session session, SimpleDocumentPK documentPk, String language)
Remove the content for the specified language.void
DocumentRepository. removeVersionnable(javax.jcr.Session session, SimpleDocumentPK documentPk)
Remove the version feature to an existing document.void
DocumentRepository. setVersionnable(javax.jcr.Session session, SimpleDocumentPK documentPk)
Add the version feature to an existing document. -
Uses of SimpleDocumentPK in org.silverpeas.web.attachment
Methods in org.silverpeas.web.attachment with parameters of type SimpleDocumentPK Modifier and Type Method Description SimpleDocument
VersioningSessionController. getDocument(SimpleDocumentPK documentPK)
-