|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Delegate that implements the methods for the specific application. Allows
different applications like the Microsoft Office Integration to have
different behavior. Can also use different delegates base on either
class or type, but most of the methods in this class that might need
to do that call other factory/delegates that should be used for that
purpose because they are also used in other clients.
Supported API: false
Extendable: false
Method Summary | |
Workable |
checkin(Workable workingCopy,
HashMap nameValueData,
String note,
boolean keepCheckedOut,
Locale locale)
Checkin and possibly checkout a workable object. |
Workable |
checkout(Workable original,
String note,
Locale locale)
Checkout a Workable object. |
WTDocument |
createDocument(TypeIdentifier objType,
HashMap nameValueData,
boolean keepCheckedOut,
Locale locale)
Create a document from the information input by the user. |
WTDocument |
createDocumentFromTemplate(WTDocument template,
HashMap nameValueData,
Locale locale,
String applicationName)
Create a document from a document template. |
WTDocument |
createDocumentTemplate(TypeIdentifier objType,
HashMap nameValueData,
Locale locale)
Create a document template from the information input by the user. |
void |
delete(WTObject object,
Locale locale)
Delete an object. |
Persistable |
getCheckedOutObjectState(Class objClass,
String fileName,
Locale locale)
Given a filename, check for that filename on the objects that the user has in their checked out folder. |
HashMap |
getCheckinTypeAttributes(WTDocument document,
Locale locale)
Returns a list of the both soft and modeled attributes required for checkin document/document template (either soft type or modeled type). |
Enumeration |
getContainers(boolean recentlyVisited,
String containerName,
String containerType,
Locale locale)
Returns a list of the containers that are available for this user, depending on the container type requested. |
HashMap |
getContainerTypes(TypeIdentifier objType,
Locale locale)
Return a HashMap to represent the container types that are available for this user. |
HashMap |
getCreateFromTemplateAttributes(Templateable objTemplate,
WTContainer context,
Locale locale)
Returns a list of the both soft and modeled attributes required for a create document from template (soft type or modeled type). |
HashMap |
getCreateTemplateAttributes(WTContainer context,
TypeIdentifier objType,
Locale locale)
Returns a list of the both soft and modeled attributes required for a create template document (soft type or modeled type). |
HashMap |
getCreateTypeAttributes(WTContainer context,
TypeIdentifier objType,
Locale locale)
Returns a list of the both soft and modeled attributes required for a create document (soft type or modeled type). |
Persistable[] |
getDocumentTemplates(Class objClass,
String context,
Locale locale)
Return an array to represent the template list. |
TypeIdentifier[] |
getDocumentType(Class objClass,
String context,
Locale locale)
Return an array of the types that are available for this context. |
Object[] |
getFolderList(TypeIdentifier objType,
boolean isTemplate,
String container,
Locale locale)
Returns a list of the folders for this container in a hierarchical list with information about display and whether a user can create in that folder. |
HashMap |
getObjectMenuState(WTObject object,
Locale locale)
Return a HashMap listing the menus that can be executed against this object. |
Vector |
getOneLevelFolderList(TypeIdentifier objType,
boolean isTemplate,
WTContainer container,
Locale locale)
Returns a list of the first level of folders for this container suitable for a create dialog. |
Enumeration |
getOrganizations(String orgName,
String orgId,
Locale locale)
Returns a list of the containers that are available for this user, depending on the container type requested. |
TypeIdentifier[] |
getTemplateTypes(Class objClass,
String context,
Locale locale)
Return an array of the types of document that a template can be created with. |
HashMap |
getUpdateTypeAttributes(WTDocument document,
Locale locale)
Returns a list of the both soft and modeled attributes required for an update document (either soft type or modeled type). |
QueryResult |
queryForDocuments(HashMap criteria,
HashMap displayAttributes,
Locale locale)
Perform an Integrated Search which is both the keyword search on Retrieval Ware and a database search in windchill. |
Identified |
rename(Identified object,
String newName,
Locale locale)
Change the name on the Identified object. |
Versionable |
reviseAndCheckout(Versionable original_copy,
boolean keepCheckedOut,
Locale locale)
Revise and checkout a versionable object. |
WTDocument |
setDownloadPath(WTDocument document,
String downloadPath,
String checksum,
Locale locale)
To be used after a document has been checked out and the content has been downloaded already. |
LifeCycleManaged |
submitToLifecycle(LifeCycleManaged object,
Locale locale)
Submit object to the lifecycle state that comes next. |
Workable |
undoCheckout(Workable workingCopy,
Locale locale)
Undo-Checkout of a workable object. |
WTDocument |
updateDocument(WTDocument document,
HashMap nameValueData,
Locale locale)
Update a WTDocument from the information input by the user. |
Method Detail |
public HashMap getObjectMenuState(WTObject object, Locale locale) throws WTException
object
- Object to test menu availability. Will check which edit functions are available based on the interfaces the object implements and it's current state.locale
- The locale of the client, used to return some of the strings in the locale of the client.
WTException
public QueryResult queryForDocuments(HashMap criteria, HashMap displayAttributes, Locale locale) throws WTException
criteria
- Name value pairs for the criteria. Names that are either "keyword" for Retrieval Ware or the names that from the object that can be seen through introspection.displayAttributes
- A list of the attributes that must be returned to the client and so should be fully expanded and included in the results. The value of each attribute in the HashMap is either locale
-
WTException
public WTDocument createDocument(TypeIdentifier objType, HashMap nameValueData, boolean keepCheckedOut, Locale locale) throws WTException
objType
- Soft type to use for the new document.nameValueData
- Name value pairs of input data.keepCheckedOut
- If true, then after the document is created it is checked out. If false, then the document is not checked out.locale
- The locale of the client, used to return some of the strings in the locale of the client.
WTException
public WTDocument createDocumentFromTemplate(WTDocument template, HashMap nameValueData, Locale locale, String applicationName) throws WTException
template
- The document template to be used to create the new document with.nameValueData
- Name value pairs of input data..locale
- The locale of the client, used to return some of the strings in the locale of the client.applicationName
- Name of application to branch on to the different delegates.
WTException
public WTDocument createDocumentTemplate(TypeIdentifier objType, HashMap nameValueData, Locale locale) throws WTException
objType
- Soft type to use for the new template.nameValueData
- Name value pairs of input data.locale
- The locale of the client, used to return some of the strings in the locale of the client.
WTException
public WTDocument updateDocument(WTDocument document, HashMap nameValueData, Locale locale) throws WTException
document
- The document to be updated.nameValueData
- Name value pairs of data from the UI.locale
- The locale of the client, used to return some of the strings in the locale of the client.
WTException
public Workable checkout(Workable original, String note, Locale locale) throws WTException
original
- The object to be checked out.note
- The note to add to the checkout. Usually null.locale
- The locale of the client, used to return some of the strings in the locale of the client.
WTException
public Workable checkin(Workable workingCopy, HashMap nameValueData, String note, boolean keepCheckedOut, Locale locale) throws WTException
workingCopy
- The object to be checked in and possiblly checked out. The upload of the file contents must take place before calling this method.nameValueData
- Name value pairs of data from the UI.note
- The note to add to the checkout. Usually null.keepCheckedOut
- If true, then after the document is checked in it is checked out. If false, then the document is not checked out.locale
- The locale of the client, used to return some of the strings in the locale of the client.
WTException
public Workable undoCheckout(Workable workingCopy, Locale locale) throws WTException
workingCopy
- The object to have the checkout undone on.locale
- The locale of the client, used to return some of the strings in the locale of the client.
WTException
public Versionable reviseAndCheckout(Versionable original_copy, boolean keepCheckedOut, Locale locale) throws WTException
original_copy
- The object to be revised and then checked out.keepCheckedOut
- If true, then after the document is revised it is checked out. If false, then the document is not checked out.locale
- The locale of the client, used to return some of the strings in the locale of the client.
WTException
public void delete(WTObject object, Locale locale) throws WTException
object
- The object to be deleted.locale
- The locale of the client, used to return some of the strings in the locale of the client.
WTException
public Identified rename(Identified object, String newName, Locale locale) throws WTException
object
- newName
- The new name to change the object to.locale
- The locale of the client, used to return some of the strings in the locale of the client.
WTException
public LifeCycleManaged submitToLifecycle(LifeCycleManaged object, Locale locale) throws WTException
object
- locale
- The locale of the client, used to return some of the strings in the locale of the client.
WTException
public TypeIdentifier[] getDocumentType(Class objClass, String context, Locale locale) throws WTException
objClass
- The class of the object that the type list is requested for.context
- The library, product, project, site, or org that this is requested from. The format of this is the object reference of the container like OR:wt.inf.library.WTLibrary:3182.locale
- The locale of the client, used to return some of the strings in the locale of the client.
WTException
public Persistable[] getDocumentTemplates(Class objClass, String context, Locale locale) throws WTException
objClass
- The class of the object that the template list is requested for.context
- The product or repository that this is requested from.locale
- The locale of the client, used to return some of the strings in the locale of the client.
WTException
public TypeIdentifier[] getTemplateTypes(Class objClass, String context, Locale locale) throws WTException
objClass
- The class of the object that the template type list is requested for.context
- The product or repository that this is requested from.locale
- The locale of the client, used to return some of the strings in the locale of the client.
WTException
public Persistable getCheckedOutObjectState(Class objClass, String fileName, Locale locale) throws WTException
objClass
- Class to check for in the checked out folder.fileName
- The file name to be searched in checkedout folder is passed in as a string.locale
- The locale of the client, used to return some of the strings in the locale of the client.
WTException
public WTDocument setDownloadPath(WTDocument document, String downloadPath, String checksum, Locale locale) throws WTException
document
- The document that has the primary content to be updated with the path that the file was downloaded to.downloadPath
- Path that the file was downloaded to on the checkout.checksum
- Optional to set the checksum of the file downloaded. Probably won't be used.locale
- The locale of the client, used to return some of the strings in the locale of the client.
WTException
public HashMap getCreateTypeAttributes(WTContainer context, TypeIdentifier objType, Locale locale) throws WTException
context
- Container to create the document in.objType
- Soft type to use for the new document.locale
- The locale of the client, used to return some of the strings in the locale of the client.
WTException
public HashMap getUpdateTypeAttributes(WTDocument document, Locale locale) throws WTException
document
- This is the document to be updated.locale
- The locale of the client, used to return some of the strings in the locale of the client.
WTException
public HashMap getContainerTypes(TypeIdentifier objType, Locale locale) throws WTException
objType
- Type identifier to identity which object type to get the list of containers that the object might be able to be created in.locale
- The locale of the client, used to return some of the strings in the locale of the client.
WTException
public Enumeration getContainers(boolean recentlyVisited, String containerName, String containerType, Locale locale) throws WTException
recentlyVisited
- Flag if only recently visited containers should be returned or all containers.containerName
- Search criteria for the name of the container. This criteria is used only when the recentlyVisited is set to false.containerType
- String that is either product, library, project, classic, site, or org.locale
- The locale of the client, used to return some of the strings in the locale of the client.
WTException
public Object[] getFolderList(TypeIdentifier objType, boolean isTemplate, String container, Locale locale) throws WTException
objType
- Type identifier string to identity which object type to get the list of folders that the object might be able to be created in. Of the form wt.doc.WTDocument|SoftType, if this is null or empty the default will be wt.doc.WTDocument.isTemplate
- Indicates if the folder list is being retrieved for a template object.container
- The container that the folder list should be from.locale
- The locale of the client, used to return some of the strings in the locale of the client.
WTException
public HashMap getCreateTemplateAttributes(WTContainer context, TypeIdentifier objType, Locale locale) throws WTException
context
- Container to create the document in.objType
- Soft type to use for the new document.locale
- The locale of the client, used to return some of the strings in the locale of the client.
WTException
public HashMap getCreateFromTemplateAttributes(Templateable objTemplate, WTContainer context, Locale locale) throws WTException
objTemplate
- The template to create the object from.context
- Container to create the document in.locale
- The locale of the client, used to return some of the strings in the locale of the client.
WTException
public Enumeration getOrganizations(String orgName, String orgId, Locale locale) throws WTException
orgName
- Search criteria for the name of the organization.orgId
- Search criteria for the id of the organization.locale
- The locale of the client, used to return some of the strings in the locale of the client.
WTException
public Vector getOneLevelFolderList(TypeIdentifier objType, boolean isTemplate, WTContainer container, Locale locale) throws WTException
objType
- Type identifier to identity which object type to get the list of folders that the object might be able to be created in.isTemplate
- Indicates if the folder list is being retrieved for a template object.container
- The container that the folder list should be from.locale
- The locale of the client, used to return some of the strings in the locale of the client.
WTException
public HashMap getCheckinTypeAttributes(WTDocument document, Locale locale) throws WTException
document
- This is the document to be checked in.locale
- The locale of the client, used to return some of the strings in the locale of the client.
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |