wt.vc.baseline
Class BaselineMemberRIEHandler
java.lang.Object
wt.fc.StandardReferentialIntegrityExceptionHandler
wt.vc.baseline.BaselineMemberRIEHandler
- All Implemented Interfaces:
- ReferentialIntegrityExceptionHandler
- public class BaselineMemberRIEHandler
- extends StandardReferentialIntegrityExceptionHandler
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RESOURCE
private static final String RESOURCE
- See Also:
- Constant Field Values
MATURITY_RESOURCE
private static final String MATURITY_RESOURCE
- See Also:
- Constant Field Values
BaselineMemberRIEHandler
public BaselineMemberRIEHandler()
buildMessage
public int buildMessage(WTValuedMap linkToDeletedMap,
Object[] messages,
int messageIndex)
throws WTException
- Add messages for baseline members. Where the user does not have read access to to the baseline,
show the generic message that says it's in "one or more baselines". If a baselineable is in an
unreadable baseline, do not show the real, other baselines it's a member of -- if they can't even
see one of the baselines, there's not a whole lot they're gonna be able to do to resolve the
issue.
Note: this implementation assumes the user has read permissions to all the objects being deleted.
This is a reasonable assumption whose only drawback is the user might see repeated "Secured object"
cannot be deleted because it is in baseline "xyz" messages.
- Specified by:
buildMessage
in interface ReferentialIntegrityExceptionHandler
- Overrides:
buildMessage
in class StandardReferentialIntegrityExceptionHandler
- Parameters:
linkToDeletedMap
- The link objects to build the message for.messages
- Object array to build messages in.messageIndex
- The index into the message array to start building messages.
- Returns:
- number of messages built
- Throws:
WTException