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

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

public class ContainerRequestCacheAdapter
extends RequestCacheAdapter
implements ContainerRequestCache

RequestCacheAdapter for all ContainerRequestCache implementations


Field Summary
private static Log log
          logging
protected  WTContainer wtContainer
           
 
Fields inherited from class com.ptc.windchill.uwgm.proesrv.cache.RequestCacheAdapter
 
Constructor Summary
ContainerRequestCacheAdapter()
           
 
Method Summary
private  ContainerType convertContainerType(com.ptc.windchill.uwgm.soap.uwgmdb.ContainerType uwgmContainerType)
          converts container type
 WTContainer getContainer()
           
protected  void validateContainer(RequestContext requestContext, com.ptc.windchill.uwgm.soap.uwgmdb.Container uwgmDBContainer)
          validates UWGM Container
protected  void validateRequestData(RequestContext requestContext, com.ptc.windchill.uwgm.soap.uwgm.UwgmRequest uwgmRequest)
          validates UWGM ContainerRequest
 
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

wtContainer

protected WTContainer wtContainer

log

private static Log log
logging

Constructor Detail

ContainerRequestCacheAdapter

public ContainerRequestCacheAdapter()
Method Detail

validateRequestData

protected void validateRequestData(RequestContext requestContext,
                                   com.ptc.windchill.uwgm.soap.uwgm.UwgmRequest uwgmRequest)
                            throws RequestValidationException,
                                   UwgmErrorException
validates UWGM ContainerRequest

checks:

1. if a continer with given OID exisits 2. if user has autorization for container

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

validateContainer

protected void validateContainer(RequestContext requestContext,
                                 com.ptc.windchill.uwgm.soap.uwgmdb.Container uwgmDBContainer)
                          throws RequestValidationException,
                                 UwgmErrorException
validates UWGM Container

checks:

1. if a continer with given OID exisits 2. if user has autorization for container

Throws:
RequestValidationException
WTException
UwgmErrorException

getContainer

public WTContainer getContainer()
Specified by:
getContainer in interface ContainerRequestCache
Returns:
WTContainer

convertContainerType

private ContainerType convertContainerType(com.ptc.windchill.uwgm.soap.uwgmdb.ContainerType uwgmContainerType)
                                    throws UwgmErrorException
converts container type

Parameters:
uwgmContainerType - ContainerType
Returns:
ContainerType
Throws:
UwgmErrorException