|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.clients.doc.DocumentTaskLogic
Contains static methods which support manipulating WTDocument
objects.
Supported API: false
Extendable: false
Field Summary | |
private static String |
MESSAGES_RESOURCE
|
Constructor Summary | |
DocumentTaskLogic()
|
Method Summary | |
static void |
delete(WTDocument document)
Method delete deletes the given Document
object from the database. |
static Timestamp |
getCreationDate(WTDocument doc)
Returns the creation timestamp of the given WTDocument. |
static String |
getCurrentUserName()
Returns the string name of the current user. |
static DepartmentList[] |
getDepartments()
Return the array of DepartmentLists for a WTDocument. |
static WTDocument |
getDocumentInstance(DocumentType type,
String name,
String number)
|
static Timestamp |
getUpdatedDate(WTDocument doc)
Returns the timestamp on which the given WTDocument was most recently modified. |
static WTDocument |
refreshDocument(WTDocument stale_doc)
Return a refreshed copy of the given WTDocument. |
static WTDocument |
save(WTDocument doc)
Persists the given WTDocument in the database. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static String MESSAGES_RESOURCE
Constructor Detail |
public DocumentTaskLogic()
Method Detail |
public static DepartmentList[] getDepartments()
DepartmentList
public static WTDocument refreshDocument(WTDocument stale_doc) throws WTException
stale_doc
- the document to be refreshed
WTException
- if an error occurs retrieveing the refreshed
WTDocument from the database.public static Timestamp getCreationDate(WTDocument doc)
doc
- the WTDocument whose timestamp is returned
public static Timestamp getUpdatedDate(WTDocument doc)
doc
- the WTDocument whose last update timestamp
is returned.
public static WTDocument getDocumentInstance(DocumentType type, String name, String number) throws WTPropertyVetoException, WTException
WTPropertyVetoException
WTException
public static WTDocument save(WTDocument doc) throws WTException
doc
- the WTDocument to be saved in the database
WTException
- if an error occurs attempting to save
the given document.public static String getCurrentUserName() throws WTException
WTException
- if an error occurs retrieving
the name of the current user.public static void delete(WTDocument document) throws WTException
delete
deletes the given Document
object from the database.
document
- the Document
object to be deleted
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |