|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.ixb.objectset.ObjectSetHelper
Nested Class Summary | |
private static class |
ObjectSetHelper.ComputeObjectSetVisitor
|
Field Summary | |
private static Object |
lock
|
static int |
OBJECT_PAGE_SIZE
|
private static IxbDocument |
objectSetRegistry
|
static String |
XML_TAG_DISPLAY_SEPERATE
|
static String |
XML_TAG_SEARCH_CLASS
|
Constructor Summary | |
ObjectSetHelper()
|
Method Summary | |
static int |
accumulateObjectsToPageForGeneratorsAndFilters(WTHashSet structuredObjects,
ObjectSetGeneratorInfo[] gens,
ObjectSetFilterInfo[] fils,
WTContainerRef sourceContainer,
int currentIndex,
int pageSize)
|
static int |
accumulateObjectsToPageForGeneratorsAndFilters(WTHashSet structuredObjects,
String[] generatorIds,
String[] generatorParams,
String[] filterIds,
String[] filterParams,
WTContainerRef sourceContainer,
int currentIndex,
int pageSize)
|
static Set |
computeObjectSetForGeneratorAndFilters(ObjectSetGenerator generator,
ObjectSetFilter[] filters,
WTContainerRef sourceContainer)
|
static Set |
computeObjectSetForGivenGeneratorsAndFilters(String[] generatorIds,
String[] generatorParams,
String[] filterIds,
String[] filterParams)
|
static Set |
computeObjectSetForGivenGeneratorsAndFilters(String[] generatorIds,
String[] generatorParams,
String[] filterIds,
String[] filterParams,
WTContainerRef sourceContainer)
|
private static ConfigSpec |
getConfigSpec(Object obj)
|
private static ConfigSpec |
getEPMDocConfigSpec(EPMDocument doc)
|
static Vector |
getListOfObjectSetFilters(boolean displayablenly)
Get all object set filters as Vector. |
static Vector |
getListOfObjectSetGenerators(boolean displayablenly)
Get all object set generators as Vector. |
static Vector |
getListOfObjectSetHandlerIds(String searchClassName,
boolean exactClassMatch)
Get all object set generator information applicable to the class with name searchClassName as a Vector . |
private static Vector |
getListOfObjectSetHandlers(String handlerType)
|
static Object |
getNonWorkingCopyInPublicDomain(Object ob)
If the given object is a working copy of Workable, the object is substituted by its predecessor; And finally, if the modified object is in Personal Cabinet, return null; |
private static ConfigSpec |
getPartConfigSpec(WTPart part)
|
private static ConfigSpec |
getWTDocConfigSpec(WTDocument doc)
|
static boolean |
isLinkLinkingObjInPersonalCabinetOrWorkingCopy(ObjectToObjectLink link)
For a given ObjectToObjectLink object, test whether either of its linked objects is either a working copy or in personal cabinet |
static boolean |
isWorkingCopyOrInPersonalCabinet(Persistable ob)
Test the target object is a working copy or in personal cabinet.. |
static ObjectSetFilter |
newObjectSetFilter(String filterId)
|
static ObjectSetGenerator |
newObjectSetGenerator(String generatorId)
|
static ObjectSetGenerator |
newObjectSetGenerator(String generatorId,
WTContainerRef container)
|
static ObjectSetGenerator |
newObjectSetGenerator(String generatorId,
WTContainerRef container,
ConfigSpec configSpec)
|
private static ObjectSetHandler |
newObjectSetHandler(String handlerType,
String handlerId)
|
private static boolean |
objectShldSkipForConfigSpec(String oid,
WTContainerRef container)
Testing if the object should be excluded from being exported because of the "current" configuration Return true if yes |
private static void |
PP(String s)
|
private static void |
prepareObjectSetRegistry()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static IxbDocument objectSetRegistry
private static Object lock
public static final String XML_TAG_DISPLAY_SEPERATE
public static final String XML_TAG_SEARCH_CLASS
public static int OBJECT_PAGE_SIZE
Constructor Detail |
public ObjectSetHelper()
Method Detail |
private static void prepareObjectSetRegistry() throws WTException
WTException
public static Vector getListOfObjectSetGenerators(boolean displayablenly) throws WTException
WTException
public static Vector getListOfObjectSetFilters(boolean displayablenly) throws WTException
WTException
private static Vector getListOfObjectSetHandlers(String handlerType) throws WTException
WTException
public static Vector getListOfObjectSetHandlerIds(String searchClassName, boolean exactClassMatch) throws WTException
Vector
.
Eelements in the vector are String
, representing the generator ID.
If parameter exactClassSearch is false, all generators applicable to
this class and its parent classes will be returned; otherwise only
generators for this class will be returned.
searchClassName
-
WTException
public static Set computeObjectSetForGivenGeneratorsAndFilters(String[] generatorIds, String[] generatorParams, String[] filterIds, String[] filterParams) throws WTException
WTException
public static Set computeObjectSetForGivenGeneratorsAndFilters(String[] generatorIds, String[] generatorParams, String[] filterIds, String[] filterParams, WTContainerRef sourceContainer) throws WTException
WTException
public static Set computeObjectSetForGeneratorAndFilters(ObjectSetGenerator generator, ObjectSetFilter[] filters, WTContainerRef sourceContainer) throws WTException
WTException
public static int accumulateObjectsToPageForGeneratorsAndFilters(WTHashSet structuredObjects, String[] generatorIds, String[] generatorParams, String[] filterIds, String[] filterParams, WTContainerRef sourceContainer, int currentIndex, int pageSize) throws WTException
WTException
public static int accumulateObjectsToPageForGeneratorsAndFilters(WTHashSet structuredObjects, ObjectSetGeneratorInfo[] gens, ObjectSetFilterInfo[] fils, WTContainerRef sourceContainer, int currentIndex, int pageSize) throws WTException
WTException
public static ObjectSetGenerator newObjectSetGenerator(String generatorId) throws WTException
WTException
public static ObjectSetGenerator newObjectSetGenerator(String generatorId, WTContainerRef container) throws WTException
WTException
public static ObjectSetGenerator newObjectSetGenerator(String generatorId, WTContainerRef container, ConfigSpec configSpec) throws WTException
generatorId
- ObjectSetGenerator id from registrycontainer
- Source contextconfigSpec
- Custom config spec to be used during navigation of structures
WTException
public static ObjectSetFilter newObjectSetFilter(String filterId) throws WTException
WTException
private static ObjectSetHandler newObjectSetHandler(String handlerType, String handlerId) throws WTException
WTException
public static boolean isWorkingCopyOrInPersonalCabinet(Persistable ob) throws WTException
WTException
public static Object getNonWorkingCopyInPublicDomain(Object ob) throws WTException
WTException
public static boolean isLinkLinkingObjInPersonalCabinetOrWorkingCopy(ObjectToObjectLink link) throws WTException
WTException
private static void PP(String s)
private static boolean objectShldSkipForConfigSpec(String oid, WTContainerRef container) throws WTException
WTException
private static ConfigSpec getConfigSpec(Object obj) throws WTException
WTException
private static ConfigSpec getPartConfigSpec(WTPart part) throws WTException
WTException
private static ConfigSpec getWTDocConfigSpec(WTDocument doc) throws WTException
WTException
private static ConfigSpec getEPMDocConfigSpec(EPMDocument doc) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |