com.wewebu.ow.server.ecmimpl.opencmis.util
Class OwCMISResourceCache

java.lang.Object
  extended by com.wewebu.ow.server.ecmimpl.opencmis.util.OwCMISResourceCache

public class OwCMISResourceCache
extends Object

Helper class for resource cache handling.

Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.

For licensing information read the license.txt file or
go to: http://wiki.alfresco.com


Constructor Summary
OwCMISResourceCache()
           
 
Method Summary
 void add(OwCMISResource resource_p)
          Adds a resource to the cache.
 void clear()
          Clear current cache.
 OwCMISResource getResource(String nameOrId_p)
          Return CMIS resource for given name or id.
 Iterator<String> getResourceIDs()
          get a Iterator of available resource IDs
 OwCMISSession getSession(String nameOrId_p)
           
 Collection<OwCMISSession> getSessions()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OwCMISResourceCache

public OwCMISResourceCache()
Method Detail

getResource

public OwCMISResource getResource(String nameOrId_p)
Return CMIS resource for given name or id.

Parameters:
nameOrId_p - String representing name or id
Returns:
OwCMISResource or null if not found/cached

getSession

public OwCMISSession getSession(String nameOrId_p)

add

public void add(OwCMISResource resource_p)
         throws com.wewebu.ow.server.exceptions.OwException
Adds a resource to the cache.

Parameters:
resource_p - OwCMISResource
Throws:
com.wewebu.ow.server.exceptions.OwException

getResourceIDs

public Iterator<String> getResourceIDs()
get a Iterator of available resource IDs

Returns:
Collection of cached resource IDs

getSessions

public Collection<OwCMISSession> getSessions()

clear

public void clear()
Clear current cache.



Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.