com.ptc.windchill.cadx.delete
Class DeleteServerHelper
java.lang.Object
com.ptc.windchill.cadx.delete.DeleteServerHelper
- public class DeleteServerHelper
- extends Object
Method Summary |
private static Vector |
addArrayToVector(Object[] objects,
Vector target)
|
private static void |
addErrorMessageWithObjectList(Object[] objects,
String messageCode,
String messageKey,
Locale locale)
|
private static void |
addWarningMessageWithObjectList(Object[] objects,
String messageCode,
String messageKey,
Locale locale)
|
private static void |
getFilteredIterations(Class iterCl,
Class masterCl,
List masters,
ArrayList versions)
|
static ArrayList |
getObjectsLatestVersions(Iterator objects)
|
private static String |
getObjectStringAttribute(Object obj,
String getMethodName)
|
private static String |
getObjName(Object obj)
|
static boolean |
isValidActionObject(Object object,
boolean verbose,
Locale locale)
|
static void |
removeExcludedAndNotInObjectListObjects(TableDescriptor tempTable,
TableDescriptor table)
|
static int |
validateObjectsForDeletion(TableDescriptor table,
boolean showMessages,
Locale locale,
WTContainer context)
Checks if the objects that are contained in the
table are valid for deletion. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OBJECT_IS_CHECKED_OUT
private static final String OBJECT_IS_CHECKED_OUT
- See Also:
- Constant Field Values
INVALID_CHECKED_OUT_STATUS
private static final String INVALID_CHECKED_OUT_STATUS
- See Also:
- Constant Field Values
OBJECT_IS_NOT_LATEST
private static final String OBJECT_IS_NOT_LATEST
- See Also:
- Constant Field Values
NOT_VALID_CLASS_OBJECT
private static final String NOT_VALID_CLASS_OBJECT
- See Also:
- Constant Field Values
DELETE_NOT_SUPPORTED
private static final String DELETE_NOT_SUPPORTED
- See Also:
- Constant Field Values
DELETE_NOT_SUPPORTED_CHECKED_OUT
private static final String DELETE_NOT_SUPPORTED_CHECKED_OUT
- See Also:
- Constant Field Values
MISSING_ASSOCIATED
private static final String MISSING_ASSOCIATED
- See Also:
- Constant Field Values
MISSING_GENERICS
private static final String MISSING_GENERICS
- See Also:
- Constant Field Values
MISSING_INSTANCES
private static final String MISSING_INSTANCES
- See Also:
- Constant Field Values
NOT_LATEST_ITERATION
private static final String NOT_LATEST_ITERATION
- See Also:
- Constant Field Values
NOT_LATEST_VERSION
private static final String NOT_LATEST_VERSION
- See Also:
- Constant Field Values
WITH_INACESSIBLE_ITEMS
private static final String WITH_INACESSIBLE_ITEMS
- See Also:
- Constant Field Values
ERROR_WHILE_DELETING
private static final String ERROR_WHILE_DELETING
- See Also:
- Constant Field Values
NO_ACCESS_TO_CONTAINER
private static final String NO_ACCESS_TO_CONTAINER
- See Also:
- Constant Field Values
IN_BASELINE
private static final String IN_BASELINE
- See Also:
- Constant Field Values
INVALID_DELETE_OBJECTS
private static final String INVALID_DELETE_OBJECTS
- See Also:
- Constant Field Values
OBJECTS_INCLUDED_AND_EXCLUDED_IN_DELETE_SET
private static final String OBJECTS_INCLUDED_AND_EXCLUDED_IN_DELETE_SET
- See Also:
- Constant Field Values
OBJECTS_INCLUDED_IN_DELETE_SET
private static final String OBJECTS_INCLUDED_IN_DELETE_SET
- See Also:
- Constant Field Values
OBJECTS_EXCLUDED_FROM_DELETE_SET
private static final String OBJECTS_EXCLUDED_FROM_DELETE_SET
- See Also:
- Constant Field Values
SET_IS_VALID
public static final int SET_IS_VALID
- See Also:
- Constant Field Values
CANNOT_DELETE
public static final int CANNOT_DELETE
- See Also:
- Constant Field Values
SET_HAS_WARNINGS
public static final int SET_HAS_WARNINGS
- See Also:
- Constant Field Values
CHUNK_SIZE
private static int CHUNK_SIZE
RESOURCE
private static final String RESOURCE
- See Also:
- Constant Field Values
VERBOSE
private static boolean VERBOSE
DeleteServerHelper
public DeleteServerHelper()
isValidActionObject
public static boolean isValidActionObject(Object object,
boolean verbose,
Locale locale)
validateObjectsForDeletion
public static int validateObjectsForDeletion(TableDescriptor table,
boolean showMessages,
Locale locale,
WTContainer context)
throws WTException
- Checks if the objects that are contained in the
table are valid for deletion.
- Parameters:
table
-
- Returns:
-
- Throws:
WTException
addErrorMessageWithObjectList
private static void addErrorMessageWithObjectList(Object[] objects,
String messageCode,
String messageKey,
Locale locale)
addWarningMessageWithObjectList
private static void addWarningMessageWithObjectList(Object[] objects,
String messageCode,
String messageKey,
Locale locale)
addArrayToVector
private static Vector addArrayToVector(Object[] objects,
Vector target)
removeExcludedAndNotInObjectListObjects
public static void removeExcludedAndNotInObjectListObjects(TableDescriptor tempTable,
TableDescriptor table)
throws WTException
- Throws:
WTException
getObjectsLatestVersions
public static ArrayList getObjectsLatestVersions(Iterator objects)
throws WTException
- Throws:
WTException
getFilteredIterations
private static void getFilteredIterations(Class iterCl,
Class masterCl,
List masters,
ArrayList versions)
throws WTException
- Throws:
WTException
getObjectStringAttribute
private static String getObjectStringAttribute(Object obj,
String getMethodName)
getObjName
private static String getObjName(Object obj)