wt.vc.baseline
Class BaselineMemberRIEHandler

java.lang.Object
  extended bywt.fc.StandardReferentialIntegrityExceptionHandler
      extended bywt.vc.baseline.BaselineMemberRIEHandler
All Implemented Interfaces:
ReferentialIntegrityExceptionHandler

public class BaselineMemberRIEHandler
extends StandardReferentialIntegrityExceptionHandler


Field Summary
private static String MATURITY_RESOURCE
           
private static String RESOURCE
           
 
Fields inherited from class wt.fc.StandardReferentialIntegrityExceptionHandler
 
Fields inherited from interface wt.fc.ReferentialIntegrityExceptionHandler
DEFAULT_SELECTOR
 
Constructor Summary
BaselineMemberRIEHandler()
           
 
Method Summary
 int buildMessage(WTValuedMap linkToDeletedMap, Object[] messages, int messageIndex)
          Add messages for baseline members.
 
Methods inherited from class wt.fc.StandardReferentialIntegrityExceptionHandler
buildMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

MATURITY_RESOURCE

private static final String MATURITY_RESOURCE
See Also:
Constant Field Values
Constructor Detail

BaselineMemberRIEHandler

public BaselineMemberRIEHandler()
Method Detail

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