Groovy Documentation

griffon.plugins.cmis
[Groovy] Class SessionHolder

java.lang.Object
  griffon.plugins.cmis.SessionHolder
All Implemented Interfaces:
CmisProvider

@Singleton
class SessionHolder
extends Object

Authors:
Andres Almiray


Field Summary
private static Object[] LOCK

private static org.slf4j.Logger LOG

private Map sessions

 
Constructor Summary
SessionHolder()

 
Method Summary
void disconnectSession(String sessionName)

private org.apache.chemistry.opencmis.client.api.Session fetchSession(String sessionName)

org.apache.chemistry.opencmis.client.api.Session getSession(String sessionName = 'default')

String[] getSessionNames()

boolean isSessionConnected(String sessionName)

private org.apache.chemistry.opencmis.client.api.Session retrieveSession(String sessionName)

void setSession(String sessionName = 'default', org.apache.chemistry.opencmis.client.api.Session session)

private void storeSession(String sessionName, org.apache.chemistry.opencmis.client.api.Session session)

Object withCmis(String sessionName = 'default', Closure closure)

Object withCmis(String sessionName = 'default', CallableWithArgs callable)

 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Field Detail

LOCK

private static final Object[] LOCK


LOG

private static final org.slf4j.Logger LOG


sessions

private final Map sessions


 
Constructor Detail

SessionHolder

SessionHolder()


 
Method Detail

disconnectSession

void disconnectSession(String sessionName)


fetchSession

private org.apache.chemistry.opencmis.client.api.Session fetchSession(String sessionName)


getSession

org.apache.chemistry.opencmis.client.api.Session getSession(String sessionName = 'default')


getSessionNames

String[] getSessionNames()


isSessionConnected

boolean isSessionConnected(String sessionName)


retrieveSession

private org.apache.chemistry.opencmis.client.api.Session retrieveSession(String sessionName)


setSession

void setSession(String sessionName = 'default', org.apache.chemistry.opencmis.client.api.Session session)


storeSession

private void storeSession(String sessionName, org.apache.chemistry.opencmis.client.api.Session session)


withCmis

Object withCmis(String sessionName = 'default', Closure closure)


withCmis

Object withCmis(String sessionName = 'default', CallableWithArgs callable)


 

Groovy Documentation