|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface DMSDocForm
The base interface for all documents with meta data in @enterprise DMS
| Field Summary | |
|---|---|
static int |
IN
status: the document is checked in. |
static int |
LOCKED
status: the document is locked (i.e. may only be changed by the locker). |
static int |
OUT
status: the document is checked out. |
| Method Summary | |
|---|---|
void |
checkIn(User user,
byte[] bytes)
Checks the document in |
void |
checkIn(User user,
InputStream is)
Checks the document in |
String |
checkOut(User user)
Checks the document out |
byte[] |
getContent()
Returns the content of this document |
String |
getExtension()
Returns the extension of this document (e.g. |
long |
getSize()
Returns the size of the documents content (in bytes) |
int |
getStatus()
Returns the status of this document |
User |
getUsedBy()
Get the user who has locked or checked out the document. |
boolean |
hasAttributes()
Returns if this object has any meta data |
void |
lock(User user)
Locks this document. |
void |
undoCheckOut()
Undoes the check out of the document |
void |
unlock()
Unlocks this document. |
| Methods inherited from interface com.groiss.dms.DMSForm |
|---|
getField, getFieldType, getFormType, hasField, setField |
| Methods inherited from interface com.groiss.dms.DMSObject |
|---|
attachNote, getAcl, getChangedAt, getChangedBy, getCreatedAt, getCreatedBy, getDefaultOrgUnit, getIcon, getName, getTypeName, hasAttachedNotes, hasVersions, listAttachedNotes, listVersions, makeCopy, makeVersion, removeNote, setAcl, setName |
| Methods inherited from interface com.dec.avw.core.OwnedObject |
|---|
getOwner, ignoreSubstitution |
| Methods inherited from interface com.groiss.store.Persistent |
|---|
dbFields, getOid, getStore, getTableName, isFilled, onDelete, onInsert, onRead, onUpdate, setFilled, setOid, setStore |
| Methods inherited from interface com.groiss.org.HasLog |
|---|
getVersionId, setVersionId |
| Field Detail |
|---|
static final int IN
static final int OUT
static final int LOCKED
| Method Detail |
|---|
byte[] getContent()
String getExtension()
long getSize()
int getStatus()
boolean hasAttributes()
void checkIn(User user,
InputStream is)
user - the user who performs this actionis - an inputstream to the content of the document
void checkIn(User user,
byte[] bytes)
user - the user who performs this actionbytes - a byte array holding the content of the documentString checkOut(User user)
user - the user who performs this action
void undoCheckOut()
void lock(User user)
user - the user who performs this actionvoid unlock()
User getUsedBy()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||