Class DeleteObjectCommands
java.lang.Object
com.ptc.windchill.enterprise.object.commands.DeleteObjectCommands
- All Implemented Interfaces:
Serializable,RemoteAccess
Delete Class used to delete objects from the object info page or a object in
a table and then either refresh or redirect the page. If an error occurs
event console will be launched.
Supported API: true
Extendable: true
Supported API: true
Extendable: true
- See Also:
-
Field Summary
Fields inherited from interface wt.method.RemoteAccess
versionID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription_delete(NmCommandBean cb) Will delete the selected object and return a FormResult for the next action either a page refresh, the object previsous revision or redirect to container info page of the object delete.static FormResultdelete(NmCommandBean cb) Will delete the selected object and return a FormResult for the next action either a page refresh, the object previsous version or redirect to container info page of the object delete.protected NmOidWill return the NmOid of the object getting deleted.protected NmOidWill return the container NmOid of the object getting deleted.protected StringWill return the url for the folder page of the Container.protected StringgetNmOidInfoPage(NmOid oid) Will return the url for the info page of the NmOid that is passed in.protected voidWill set the NmOid of the object getting deleted.
-
Constructor Details
-
DeleteObjectCommands
public DeleteObjectCommands()Defaul Constructor
Supported API: true
-
-
Method Details
-
delete
Will delete the selected object and return a FormResult for the next action either a page refresh, the object previsous version or redirect to container info page of the object delete.
Supported API: true- Parameters:
cb- The command bean for the current client- Returns:
- The form result for the next action.
- Throws:
WTException
-
_delete
Will delete the selected object and return a FormResult for the next action either a page refresh, the object previsous revision or redirect to container info page of the object delete.
Supported API: true- Parameters:
cb- The command bean for the current client- Returns:
- The form result for the next action.
- Throws:
WTException
-
getActionOid
Will return the NmOid of the object getting deleted.
Supported API: true- Returns:
- The nmoid of the object.
- Throws:
WTException
-
setActionOid
Will set the NmOid of the object getting deleted.
Supported API: true- Parameters:
The- client data.- Throws:
WTException
-
getContainerOid
Will return the container NmOid of the object getting deleted.
Supported API: true- Returns:
- The nmoid of the container oid.
- Throws:
WTException
-
getNmOidInfoPage
Will return the url for the info page of the NmOid that is passed in.
Supported API: true- Parameters:
oid- The NmOid of the next action.- Returns:
- The url of the info page of the oid.
- Throws:
WTException
-
getFolderPageOfContainer
Will return the url for the folder page of the Container.
Supported API: true- Returns:
- The url of the info page of the oid.
- Throws:
WTException
-