wt.epm.util
Interface EPMOverridableAction

All Superinterfaces:
Serializable
All Known Implementing Classes:
EPMOverridableActions.EPMOverridableActionImpl

public interface EPMOverridableAction
extends Serializable

Provides the functionality to override ConflictException

Supported API: false

Extendable: false


Method Summary
 EPMConflictType getConflict()
          Gets the value of the attribute: conflict.
 WTMessage getMessage()
          Gets the value of the attribute: message.
 EPMResolutionType getResolution()
          Gets the value of the attribute: resolution.
 boolean isActionAllowed(Object target)
          Returns true if action valid for specified target.
 WTCollection isActionAllowed(WTCollection targets)
          Checks if action is valid for specified targets.
 void overrideAction(WTCollection targets)
          Overrides the action by using the #resolution for specified targets.
 void validateAction(WTCollection targets)
          Validates the action for specified targets.
 

Method Detail

getConflict

public EPMConflictType getConflict()
Gets the value of the attribute: conflict.

Supported API: false

Returns:
EPMConflictType

getResolution

public EPMResolutionType getResolution()
Gets the value of the attribute: resolution.

Supported API: false

Returns:
EPMResolutionType

getMessage

public WTMessage getMessage()
Gets the value of the attribute: message.

Supported API: false

Returns:
WTMessage

validateAction

public void validateAction(WTCollection targets)
                    throws ConflictException,
                           WTException
Validates the action for specified targets. If action is not valid, it throws ConflictException of type #conflict. This ConflictException can be overridden by using #resolution.

Supported API: false

Parameters:
targets -
Throws:
ConflictException
WTException

isActionAllowed

public boolean isActionAllowed(Object target)
                        throws WTException
Returns true if action valid for specified target.

Supported API: false

Parameters:
target -
Returns:
boolean
Throws:
WTException

overrideAction

public void overrideAction(WTCollection targets)
                    throws WTException
Overrides the action by using the #resolution for specified targets.

Supported API: false

Parameters:
targets -
Throws:
WTException

isActionAllowed

public WTCollection isActionAllowed(WTCollection targets)
                             throws WTException
Checks if action is valid for specified targets. Returns targets for which action is not valid.

Supported API: false

Parameters:
targets -
Returns:
WTCollection
Throws:
WTException