com.ptc.netmarkets.folder
Class NmFolderCacheHelper
java.lang.Object
com.ptc.netmarkets.folder.NmFolderCacheHelper
- All Implemented Interfaces:
- Serializable
- public class NmFolderCacheHelper
- extends Object
- implements Serializable
Class responsible for creating and maintaining the folder cache.
Supported API: false
Extendable: false
- See Also:
- Serialized Form
Method Summary |
private void |
addChangeModel(NmChangeModel nmcm,
NmOid keyOid,
NmOid oid,
WTContainer container,
boolean get_row_data)
|
private int |
adjustTarget(Persistable target,
int type)
|
private void |
createProjectModelCache()
Creates a ProjectModelCache . |
private boolean |
excludeClass(Persistable object)
|
private static ArrayList |
getAP()
|
private static ArrayList |
getCMList(NmOid projectOid)
|
private WTContainerRef |
getContainerRef(Persistable target)
|
private static Persistable |
getDeletedSharedTarget(SharedContainerMap scm)
|
private static Folder |
getFolder(FolderEntry folder_entry)
Returns a folder but grounds possible exception (possibly thrown in delete
operations). |
private List |
getList(Object obj)
|
private ManagerService |
getManagerService()
|
private static ObjectIdentifier |
getOid(Object obj)
|
static String |
getOidString(Object object)
Returns String representation of the object's oid (debugging). |
private NmOid |
getParentFolderOid(Persistable target)
|
ProjectModelCache |
getProjectModelCache()
Returns the ProjectModelCache . |
private String |
getServiceClassName()
|
private NmOid |
getShareMapFolderOid(SharedContainerMap scm,
Persistable target)
|
private NmOid |
getTargetOid(Persistable target)
|
static WTCollection |
getTargetsFromMaps(WTCollection maps)
|
private boolean |
isCheckedOutToSandbox(Persistable object,
WTContainerRef cont_ref)
|
private boolean |
isDisplayable(Persistable object)
|
private boolean |
isInDefaultDomain(Persistable object,
WTContainerRef contRef)
|
private boolean |
isThreadWorthy()
|
private boolean |
isThreadWorthy(NmOid projectOid)
|
private boolean |
proceed(WTContainerRef cont_ref,
Persistable target,
NmOid oid)
|
private void |
processAddShareEvent(DataSharingServiceEvent share_event)
|
private void |
processCleanupLink(PersistenceManagerEvent pm_event)
|
private void |
processCMList(NmOid containerOid)
|
private void |
processContainer(WTContainer container)
|
private void |
processDisableShareEvent(DataSharingServiceEvent share_event)
|
private void |
processEnableShareEvent(DataSharingServiceEvent share_event)
|
private void |
processMultiTarget(List target_info_list)
|
private void |
processPostChangeFolderEvent(FolderServiceEvent fs_event)
|
private void |
processPostChangeIdentityEvent(IdentityServiceEvent id_event)
|
private void |
processPostCheckinEvent(WorkInProgressServiceEvent wip_event)
|
private void |
processPostCommitIterationEvent(SessionIterationEvent event)
|
private void |
processPostContainerCreateEvent(WTContainerServiceEvent event)
|
private void |
processPostCopyEvent(EnterpriseServiceEvent es_event)
|
private void |
processPostSbCheckinEvent(SandboxServiceCheckinEvent sb_event)
|
private void |
processPostSbUndoCheckoutEvent(SandboxServiceUndoCheckoutEvent sb_event)
|
private void |
processPostStoreEvent(PersistenceManagerEvent pm_event)
|
private void |
processPostUploadEvent(ContentServiceEvent cs_event)
|
private void |
processPreContainerCreateEvent(WTContainerServiceEvent event)
|
private void |
processPreDeleteEvent(PersistenceManagerEvent pm_event)
|
private void |
processRemoveShareEvent(DataSharingServiceEvent share_event)
|
private void |
processShareMaps(WTCollection maps,
int type)
|
private void |
processShareMaps(WTCollection maps,
int type,
WTCollection targetShareMaps)
|
private void |
processShareMaps(WTCollection maps,
int type,
WTCollection targetShareMaps,
NmOid preOid)
|
private void |
processShareMaps(WTCollection maps,
int type,
WTCollection targetShareMaps,
NmOid preOid,
int type2)
|
private void |
processStateChangeEvent(LifeCycleServiceEvent lc_event)
|
private void |
processSwitchShareEvent(DataSharingServiceEvent share_event)
|
private void |
processTarget(Persistable target,
int type,
NmOid pre_oid)
|
private void |
processTarget(Persistable target,
int type,
NmOid pre_oid,
WTCollection maps)
|
private void |
processUpdateEvent(PersistenceManagerEvent pm_event)
|
private static String |
showChangeType(int type)
|
private String |
showWTCollection(WTCollection collection)
|
private void |
updateCache(WTContainerRef cont_ref,
List update_info_list)
|
private void |
updateRemoveModel(Versioned object,
String type,
NmChangeModel remove_model)
|
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
CLASSNAME
private static final String CLASSNAME
service
private StandardNmFolderService service
PROCESS_SHARE_MOVE
public static final String PROCESS_SHARE_MOVE
- See Also:
- Constant Field Values
ALLOW_CACHING
private static final boolean ALLOW_CACHING
VERBOSE
private static final boolean VERBOSE
projectModelCache
private ProjectModelCache projectModelCache
NmFolderCacheHelper
public NmFolderCacheHelper(StandardNmFolderService service)
throws WTException
Supported API: false
- Parameters:
service
-
- Throws:
WTException
createProjectModelCache
private void createProjectModelCache()
throws WTException
- Creates a
ProjectModelCache
. Register
listeners for all events that may cause a cache update (too numerous
to list here).
- Throws:
WTException
getProjectModelCache
public ProjectModelCache getProjectModelCache()
throws WTException
- Returns the
ProjectModelCache
.
If it doesn't exist it creates one and returns it.
Supported API: false
- Returns:
- ProjectModelCache
- Throws:
WTException
processTarget
private void processTarget(Persistable target,
int type,
NmOid pre_oid)
throws WTException
- Throws:
WTException
processTarget
private void processTarget(Persistable target,
int type,
NmOid pre_oid,
WTCollection maps)
throws WTException
- Throws:
WTException
adjustTarget
private int adjustTarget(Persistable target,
int type)
throws WTException
- Throws:
WTException
processMultiTarget
private void processMultiTarget(List target_info_list)
throws WTException
- Throws:
WTException
processContainer
private void processContainer(WTContainer container)
throws WTException
- Throws:
WTException
processShareMaps
private void processShareMaps(WTCollection maps,
int type)
throws WTException
- Throws:
WTException
processShareMaps
private void processShareMaps(WTCollection maps,
int type,
WTCollection targetShareMaps)
throws WTException
- Throws:
WTException
processShareMaps
private void processShareMaps(WTCollection maps,
int type,
WTCollection targetShareMaps,
NmOid preOid)
throws WTException
- Throws:
WTException
processShareMaps
private void processShareMaps(WTCollection maps,
int type,
WTCollection targetShareMaps,
NmOid preOid,
int type2)
throws WTException
- Throws:
WTException
updateCache
private void updateCache(WTContainerRef cont_ref,
List update_info_list)
throws WTException
- Throws:
WTException
updateRemoveModel
private void updateRemoveModel(Versioned object,
String type,
NmChangeModel remove_model)
throws WTException
- Throws:
WTException
proceed
private boolean proceed(WTContainerRef cont_ref,
Persistable target,
NmOid oid)
throws WTException
- Throws:
WTException
processAddShareEvent
private void processAddShareEvent(DataSharingServiceEvent share_event)
throws WTException
- Throws:
WTException
processRemoveShareEvent
private void processRemoveShareEvent(DataSharingServiceEvent share_event)
throws WTException
- Throws:
WTException
processDisableShareEvent
private void processDisableShareEvent(DataSharingServiceEvent share_event)
throws WTException
- Throws:
WTException
processEnableShareEvent
private void processEnableShareEvent(DataSharingServiceEvent share_event)
throws WTException
- Throws:
WTException
processSwitchShareEvent
private void processSwitchShareEvent(DataSharingServiceEvent share_event)
throws WTException
- Throws:
WTException
processPostSbUndoCheckoutEvent
private void processPostSbUndoCheckoutEvent(SandboxServiceUndoCheckoutEvent sb_event)
throws WTException
- Throws:
WTException
processPostSbCheckinEvent
private void processPostSbCheckinEvent(SandboxServiceCheckinEvent sb_event)
throws WTException
- Throws:
WTException
processPostCheckinEvent
private void processPostCheckinEvent(WorkInProgressServiceEvent wip_event)
throws WTException
- Throws:
WTException
processPostChangeIdentityEvent
private void processPostChangeIdentityEvent(IdentityServiceEvent id_event)
throws WTException
- Throws:
WTException
processPostChangeFolderEvent
private void processPostChangeFolderEvent(FolderServiceEvent fs_event)
throws WTException
- Throws:
WTException
processCMList
private void processCMList(NmOid containerOid)
throws WTException
- Throws:
WTException
processStateChangeEvent
private void processStateChangeEvent(LifeCycleServiceEvent lc_event)
throws WTException
- Throws:
WTException
processPostCopyEvent
private void processPostCopyEvent(EnterpriseServiceEvent es_event)
throws WTException
- Throws:
WTException
processPostUploadEvent
private void processPostUploadEvent(ContentServiceEvent cs_event)
throws WTException
- Throws:
WTException
processPreContainerCreateEvent
private void processPreContainerCreateEvent(WTContainerServiceEvent event)
throws WTException
- Throws:
WTException
processPostContainerCreateEvent
private void processPostContainerCreateEvent(WTContainerServiceEvent event)
throws WTException
- Throws:
WTException
processPostCommitIterationEvent
private void processPostCommitIterationEvent(SessionIterationEvent event)
throws WTException
- Throws:
WTException
processUpdateEvent
private void processUpdateEvent(PersistenceManagerEvent pm_event)
throws WTException
- Throws:
WTException
processPostStoreEvent
private void processPostStoreEvent(PersistenceManagerEvent pm_event)
throws WTException
- Throws:
WTException
processCleanupLink
private void processCleanupLink(PersistenceManagerEvent pm_event)
throws WTException
- Throws:
WTException
processPreDeleteEvent
private void processPreDeleteEvent(PersistenceManagerEvent pm_event)
throws WTException
- Throws:
WTException
getContainerRef
private WTContainerRef getContainerRef(Persistable target)
throws WTException
- Throws:
WTException
addChangeModel
private void addChangeModel(NmChangeModel nmcm,
NmOid keyOid,
NmOid oid,
WTContainer container,
boolean get_row_data)
throws WTException
- Throws:
WTException
getTargetOid
private NmOid getTargetOid(Persistable target)
throws WTException
- Throws:
WTException
excludeClass
private boolean excludeClass(Persistable object)
getParentFolderOid
private NmOid getParentFolderOid(Persistable target)
throws WTException
- Throws:
WTException
getShareMapFolderOid
private NmOid getShareMapFolderOid(SharedContainerMap scm,
Persistable target)
throws WTException
- Throws:
WTException
isInDefaultDomain
private boolean isInDefaultDomain(Persistable object,
WTContainerRef contRef)
throws WTException
- Throws:
WTException
showChangeType
private static String showChangeType(int type)
isDisplayable
private boolean isDisplayable(Persistable object)
throws WTException
- Throws:
WTException
isCheckedOutToSandbox
private boolean isCheckedOutToSandbox(Persistable object,
WTContainerRef cont_ref)
throws WTException
- Throws:
WTException
showWTCollection
private String showWTCollection(WTCollection collection)
throws WTException
- Throws:
WTException
getManagerService
private ManagerService getManagerService()
getServiceClassName
private String getServiceClassName()
isThreadWorthy
private boolean isThreadWorthy()
isThreadWorthy
private boolean isThreadWorthy(NmOid projectOid)
getList
private List getList(Object obj)
getOid
private static ObjectIdentifier getOid(Object obj)
throws WTException
- Throws:
WTException
getOidString
public static String getOidString(Object object)
- Returns String representation of the object's oid (debugging).
getFolder
private static Folder getFolder(FolderEntry folder_entry)
- Returns a folder but grounds possible exception (possibly thrown in delete
operations).
getAP
private static ArrayList getAP()
throws WTException
- Throws:
WTException
getCMList
private static ArrayList getCMList(NmOid projectOid)
throws WTException
- Throws:
WTException
getDeletedSharedTarget
private static Persistable getDeletedSharedTarget(SharedContainerMap scm)
getTargetsFromMaps
public static WTCollection getTargetsFromMaps(WTCollection maps)
throws WTException
- Throws:
WTException