wt.dataops.containermove.processors
Class MoveGatheringDataValidator

java.lang.Object
  extended bywt.dataops.containermove.processors.MoveGatheringDataValidator
All Implemented Interfaces:
DataValidator

public class MoveGatheringDataValidator
extends Object
implements DataValidator


Field Summary
protected  int globalMessageSeverity
           
protected  JSTableProcessor myTableProcessor
           
private static String RESOURCE
           
private static String RESOURCE_SVR
           
 
Constructor Summary
(package private) MoveGatheringDataValidator(JSTableProcessor tableProcessor)
           
 
Method Summary
private  boolean anyCheckedOutVersions(WTCollection objs)
           
private  boolean hasLibraryContainer(Object obj)
           
private  boolean hasProjectContainer(Object obj)
           
private  boolean userHasModifyPermission(WTPrincipal user, WTCollection objs)
           
 List validate(List data, Locale locale)
          Validates list of persistable objects.
 
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

RESOURCE_SVR

private static final String RESOURCE_SVR
See Also:
Constant Field Values

myTableProcessor

protected JSTableProcessor myTableProcessor

globalMessageSeverity

protected int globalMessageSeverity
Constructor Detail

MoveGatheringDataValidator

MoveGatheringDataValidator(JSTableProcessor tableProcessor)
Method Detail

validate

public List validate(List data,
                     Locale locale)
Description copied from interface: DataValidator
Validates list of persistable objects. Each DataValidity object should have the message property set.

Specified by:
validate in interface DataValidator
Parameters:
data - - List of persistables.
locale - - locale to be used to get localized messages.
Returns:
List of ordered DataValidity objects. Each DataValidity object represents the validity status of the corresponding associated persistable in the data list.

userHasModifyPermission

private boolean userHasModifyPermission(WTPrincipal user,
                                        WTCollection objs)
                                 throws WTException
Throws:
WTException

anyCheckedOutVersions

private boolean anyCheckedOutVersions(WTCollection objs)
                               throws WTException
Throws:
WTException

hasLibraryContainer

private boolean hasLibraryContainer(Object obj)

hasProjectContainer

private boolean hasProjectContainer(Object obj)