|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.epm.util.EPMOverridableActions.EPMOverridableActionImpl
Nested Class Summary | |
(package private) class |
EPMOverridableActions.EPMOverridableActionImpl.MsgResolutionsPair
Helper class which just holds a message/resolutions pair |
Field Summary | |
private ConflictType |
conflict
|
private WTMessage |
m_defaultMessage
|
private ResolutionType[] |
m_defaultResolutions
|
private WTKeyedHashMap |
mapElements
|
Constructor Summary | |
EPMOverridableActions.EPMOverridableActionImpl(ConflictType conflict)
|
|
EPMOverridableActions.EPMOverridableActionImpl(ConflictType conflict,
ResolutionType resolution)
|
|
EPMOverridableActions.EPMOverridableActionImpl(ConflictType conflict,
ResolutionType resolution,
WTMessage message)
|
Method Summary | |
void |
addElement(Persistable anElement)
addElement |
void |
addElement(Persistable anElement,
ResolutionType[] resolutions,
WTMessage aMsg)
|
void |
addElement(Persistable anElement,
WTMessage aMsg)
|
void |
addElements(WTCollection elements,
ResolutionType[] resolutions,
WTMessage aMsg)
|
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 |
hasConflicts()
Checks wether the conflict is empty or not. |
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()
Overrides the action by using the #resolution for specified targets. |
void |
overrideAction(WTCollection targets)
Overrides the action by using the #resolution for specified targets. |
void |
overrideAction(WTCollection targets,
ResolutionType resolution)
|
void |
removeAllElements()
Clears all the conflict elements except the default one |
boolean |
removeElement(Persistable anElement)
|
String |
toString()
|
void |
validateAction()
Validates the action for specified targets. |
void |
validateAction(WTCollection targets)
Validates the action for specified targets. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private ResolutionType[] m_defaultResolutions
private WTMessage m_defaultMessage
private ConflictType conflict
private WTKeyedHashMap mapElements
Constructor Detail |
public EPMOverridableActions.EPMOverridableActionImpl(ConflictType conflict, ResolutionType resolution, WTMessage message)
public EPMOverridableActions.EPMOverridableActionImpl(ConflictType conflict, ResolutionType resolution)
public EPMOverridableActions.EPMOverridableActionImpl(ConflictType conflict)
Method Detail |
public EPMConflictType getConflict()
getConflict
in interface EPMOverridableAction
public EPMResolutionType getResolution()
getResolution
in interface EPMOverridableAction
public WTMessage getMessage()
getMessage
in interface EPMOverridableAction
public void validateAction(WTCollection targets) throws ConflictException, WTException
validateAction
in interface EPMOverridableAction
targets
-
ConflictException
WTException
public void validateAction() throws ConflictException, WTException
ConflictException
WTException
public boolean isActionAllowed(Object target) throws WTException
isActionAllowed
in interface EPMOverridableAction
target
-
WTException
public boolean removeElement(Persistable anElement)
public void removeAllElements()
public void addElement(Persistable anElement)
public void addElement(Persistable anElement, WTMessage aMsg)
public void addElement(Persistable anElement, ResolutionType[] resolutions, WTMessage aMsg)
public void addElements(WTCollection elements, ResolutionType[] resolutions, WTMessage aMsg) throws WTException
WTException
public boolean hasConflicts()
public void overrideAction() throws WTException
WTException
public void overrideAction(WTCollection targets, ResolutionType resolution) throws WTException
WTException
public void overrideAction(WTCollection targets) throws WTException
EPMOverridableAction
overrideAction
in interface EPMOverridableAction
targets
-
WTException
public WTCollection isActionAllowed(WTCollection targets) throws WTException
isActionAllowed
in interface EPMOverridableAction
targets
-
WTException
public String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |