Sunnysideup\DMS\Interfaces\DMSDocumentInterface
Interface for a DMSDocument used in the Document Management System. A DMSDocument is create by storing a File object in an instance of the DMSInterface. All write operations on the DMSDocument create a new relation, so we never need to explicitly call the write() method on the DMSDocument DataObject
Synopsis
interface DMSDocumentInterface
{
- // methods
- public String getLink()
- public void getExtension()
- public DMSDocumentInstance replaceDocument()
Methods
public
- getExtension() — Return the extension of the file associated with the document
- getLink() — Returns a link to download this DMSDocument from the DMS store
- replaceDocument() — Takes a File object or a String (path to a file) and copies it into the DMS, replacing the original document file but keeping the rest of the document unchanged.