com.ptc.windchill.uwgm.proesrv.cache
Class FolderRequestCacheAdapter

java.lang.Object
  extended bycom.ptc.windchill.uwgm.proesrv.cache.RequestCacheAdapter
      extended bycom.ptc.windchill.uwgm.proesrv.cache.FolderRequestCacheAdapter
All Implemented Interfaces:
FolderRequestCache

public class FolderRequestCacheAdapter
extends RequestCacheAdapter
implements FolderRequestCache


Field Summary
protected  Object folderObject
           
protected  com.ptc.windchill.uwgm.soap.uwgmdb.FolderType folderType
           
private static Log log
          logging
 
Fields inherited from class com.ptc.windchill.uwgm.proesrv.cache.RequestCacheAdapter
 
Constructor Summary
FolderRequestCacheAdapter()
           
 
Method Summary
private  void assignUwgmFolderPersistable(com.ptc.windchill.uwgm.soap.uwgmdb.Folder uwgmFolder)
           
private  com.ptc.windchill.uwgm.soap.uwgmdb.FolderType convertCommonFolderType(FolderHelper.FolderType folderType)
           
private  FakeFolder findFakeFolder(com.ptc.windchill.uwgm.soap.uwgmdb.Folder uwgmFolder, ObjectIdentifier oid)
           
private  EPMWorkspace findWorkspace(com.ptc.windchill.uwgm.soap.uwgmdb.Folder uwgmFolder, Folder folder, WTPrincipal principal)
           
 Object getFolderObject()
          returns Folder object
 com.ptc.windchill.uwgm.soap.uwgmdb.FolderType getFolderType()
          returns folder type as Uwgm FolderType
protected  void validateFolder(RequestContext requestContext, com.ptc.windchill.uwgm.soap.uwgmdb.Folder uwgmFolder)
           
protected  void validateRequestData(RequestContext requestContext, com.ptc.windchill.uwgm.soap.uwgm.UwgmRequest uwgmRequest)
          abstract validateRequestData method to be overwritten by RequestCacheAdapter implementations
 
Methods inherited from class com.ptc.windchill.uwgm.proesrv.cache.RequestCacheAdapter
checkCacheData, isValid, setValid, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

folderObject

protected Object folderObject

folderType

protected com.ptc.windchill.uwgm.soap.uwgmdb.FolderType folderType

log

private static Log log
logging

Constructor Detail

FolderRequestCacheAdapter

public FolderRequestCacheAdapter()
Method Detail

validateRequestData

protected void validateRequestData(RequestContext requestContext,
                                   com.ptc.windchill.uwgm.soap.uwgm.UwgmRequest uwgmRequest)
                            throws RequestValidationException,
                                   UwgmErrorException
Description copied from class: RequestCacheAdapter
abstract validateRequestData method to be overwritten by RequestCacheAdapter implementations

Specified by:
validateRequestData in class RequestCacheAdapter
Parameters:
requestContext - RequestContext
uwgmRequest - UwgmRequest
Throws:
RequestValidationException
UwgmErrorException

validateFolder

protected void validateFolder(RequestContext requestContext,
                              com.ptc.windchill.uwgm.soap.uwgmdb.Folder uwgmFolder)
                       throws RequestValidationException,
                              UwgmErrorException
Throws:
RequestValidationException
UwgmErrorException

getFolderType

public com.ptc.windchill.uwgm.soap.uwgmdb.FolderType getFolderType()
returns folder type as Uwgm FolderType

Specified by:
getFolderType in interface FolderRequestCache
Returns:
FolderType

getFolderObject

public Object getFolderObject()
Description copied from interface: FolderRequestCache
returns Folder object

cast object to appropriate type according to getFolderType()

Specified by:
getFolderObject in interface FolderRequestCache
Returns:
Object

findFakeFolder

private FakeFolder findFakeFolder(com.ptc.windchill.uwgm.soap.uwgmdb.Folder uwgmFolder,
                                  ObjectIdentifier oid)
                           throws RequestValidationException
Throws:
RequestValidationException

findWorkspace

private EPMWorkspace findWorkspace(com.ptc.windchill.uwgm.soap.uwgmdb.Folder uwgmFolder,
                                   Folder folder,
                                   WTPrincipal principal)
                            throws RequestValidationException,
                                   WTException
Throws:
RequestValidationException
WTException

convertCommonFolderType

private com.ptc.windchill.uwgm.soap.uwgmdb.FolderType convertCommonFolderType(FolderHelper.FolderType folderType)

assignUwgmFolderPersistable

private void assignUwgmFolderPersistable(com.ptc.windchill.uwgm.soap.uwgmdb.Folder uwgmFolder)