edu.wisc.trace.uch.resource.resourcesheetmanager
Class ResourceSheetManager

java.lang.Object
  extended by edu.wisc.trace.uch.resource.resourcesheetmanager.ResourceSheetManager

public class ResourceSheetManager
extends Object

Handle all request for managing Atomic(Resource Sheet) Resources. Also Manage Resource Sheets and its resources.

Version:
$Revision: 1.1 $
Author:
Parikshit Thakur & Team, Trace R&D Center

Constructor Summary
ResourceSheetManager(ResourceManager resourceManager)
          Constructor.
 
Method Summary
 void addResourceDir(String tdUri)
          Parse <ResDir> Element of Target Description and add it in the list of TargetDescriptions.
 void addToRresourceSheetPropList(Map<String,List<String>> resSheetProps)
          Get required value from the specified resSheetProps and add a new entry of ResourceSheetProperties.
 void clearAtomicResources(List<String> notDeletedUris)
          Clear the specified Resources.
 Map<String,Object> getAtomicOrDynamicResource(String sessionId, Map<String,String> resProps, boolean firstTime)
          Return an Object representing matched Resource with the Resource Properties specified by 'resProps'.
 void updateDynRes(List<String> sessionIds, List<String> eltIds)
          Store Information about the Dynamic Resource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceSheetManager

public ResourceSheetManager(ResourceManager resourceManager)
Constructor. Provide the reference of ResourceManager to the local variables.

Parameters:
resourceManager - an Object of ResourceManager
Method Detail

updateDynRes

public void updateDynRes(List<String> sessionIds,
                         List<String> eltIds)
Store Information about the Dynamic Resource. So when request for resource is made then first check it for Dynamic Resource. If not found then find Resource in available Resource Directories.

Parameters:
sessionIds - a List<String> value of sessionIds
eltIds - a List<String> value of elementIds

addResourceDir

public void addResourceDir(String tdUri)
Parse <ResDir> Element of Target Description and add it in the list of TargetDescriptions.

Parameters:
tdUri - a String value of Target Description URI(tdUri)

getAtomicOrDynamicResource

public Map<String,Object> getAtomicOrDynamicResource(String sessionId,
                                                     Map<String,String> resProps,
                                                     boolean firstTime)
Return an Object representing matched Resource with the Resource Properties specified by 'resProps'.

Parameters:
sessionId - a String value of SessionId
resProps - a Map<String, String> of Resource Properties
Returns:
an Object of Map<String, Object> representing matched Resource

clearAtomicResources

public void clearAtomicResources(List<String> notDeletedUris)
Clear the specified Resources.

Parameters:
notDeletedUris - an Object of List<String>

addToRresourceSheetPropList

public void addToRresourceSheetPropList(Map<String,List<String>> resSheetProps)
Get required value from the specified resSheetProps and add a new entry of ResourceSheetProperties.

Parameters:
resSheetProps - an Object of Map<String, List<String>>


Copyright © 2006-2008 Trace R&D Center, University of Wisconsin-Madison. All Rights Reserved.