public class ResourceOperation extends java.lang.Object implements IResourceOperation
Example:
An AWM element represents a remote resource. If a tool gets executed on the
element which effectively deletes the corresponding remote resource, a
EResourceProcessingTypes.DELETE resource operation can be created to
delete the AWM element after the execution.
A tool must add created resource operations in the execution context using
ToolExecutionStatus.putResourceOperation(ResourceOperation) for AWM
to process the operations.
| Constructor and Description |
|---|
ResourceOperation(EResourceProcessingTypes pOperation)
Constructs a new simple ResourceOperation.
|
ResourceOperation(EResourceProcessingTypes pOperation,
java.lang.String pResName,
boolean pRefresh,
boolean pSelect)
Constructs a new ResourceOperation.
|
ResourceOperation(EResourceProcessingTypes pOperation,
java.lang.String pResName,
boolean pRefresh,
boolean pSelect,
java.util.Collection<IPropertyValue> pPropertyValues)
Constructs a new ResourceOperation.
|
ResourceOperation(EResourceProcessingTypes pOperation,
java.lang.String pResName,
boolean pRefresh,
boolean pSelect,
java.util.Map<Property,IPropertyValue> pPropsAndValues)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
ResourceOperation |
clone()
Clones the resource operation.
|
java.util.Collection<IPropertyValue> |
getPropertyValues()
Gets property values changed by the resource operation or containing the
changed element ID.
|
java.lang.String |
getResourceName()
Gets the logical affected resource name of the resource operation.
|
EResourceProcessingTypes |
getType()
Gets the resource operation type.
|
boolean |
isRefresh()
Whether the specified resource's
Get All Properties action
should be executed after the resource operation is handled. |
boolean |
isSelect()
Whether the specified resource should be selected in the UI after
handling the resource operation.
|
void |
setResourceName(java.lang.String pResName) |
java.lang.String |
toString() |
public ResourceOperation(EResourceProcessingTypes pOperation, java.lang.String pResName, boolean pRefresh, boolean pSelect)
pOperation - - The ResourceProcessingTypepResName - - The logical name of the resourcepRefresh - - Whether the resource should be refreshed afterwardspSelect - - Whether the resource should be set selected in the
corresponding TAURUS View@Deprecated public ResourceOperation(EResourceProcessingTypes pOperation, java.lang.String pResName, boolean pRefresh, boolean pSelect, java.util.Map<Property,IPropertyValue> pPropsAndValues)
ResourceOperation(EResourceProcessingTypes, String, boolean, boolean, Collection)
instead.pOperation - - The ResourceProcessingTypepResName - - The logical name of the resourcepRefresh - - Whether the resource should be refreshed afterwardspSelect - - Whether the resource should be set selected in the
corresponding TAURUS ViewpPropsAndValues - resource operation properties and valuespublic ResourceOperation(EResourceProcessingTypes pOperation, java.lang.String pResName, boolean pRefresh, boolean pSelect, java.util.Collection<IPropertyValue> pPropertyValues)
pOperation - - The ResourceProcessingTypepResName - - The logical name of the resourcepRefresh - - Whether the resource should be refreshed afterwardspSelect - - Whether the resource should be set selected in the
corresponding TAURUS ViewpPropertyValues - resource operation property valuespublic ResourceOperation(EResourceProcessingTypes pOperation)
pOperation - - The ResourceProcessingTypepublic java.lang.String getResourceName()
IResourceOperationgetResourceName in interface IResourceOperationpublic void setResourceName(java.lang.String pResName)
pResName - the logical resource name to setpublic boolean isRefresh()
IResourceOperationGet All Properties action
should be executed after the resource operation is handled.isRefresh in interface IResourceOperationpublic boolean isSelect()
IResourceOperationisSelect in interface IResourceOperationpublic ResourceOperation clone()
IResourceOperationclone in interface IResourceOperationclone in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.util.Collection<IPropertyValue> getPropertyValues()
IResourceOperationgetPropertyValues in interface IResourceOperationpublic EResourceProcessingTypes getType()
IResourceOperationgetType in interface IResourceOperationCopyright © 2015 Micro Focus GmbH. All rights reserved.