org.xiruss.repository.multiuser.api
Interface MultiUserRepository

All Superinterfaces:
Repository
All Known Subinterfaces:
XirussRepository, XirussRepositoryServer
All Known Implementing Classes:
MultiUserRespositoryBase, MultiUserSchemaAwareRepositoryBase, XirussRepositoryDefaultImpl, XirussRepositoryProxy

public interface MultiUserRepository
extends Repository

A repository that manages access by multiple concurrent users.


Field Summary
static Session nullSession
           
static User nullUser
           
 
Fields inherited from interface org.xiruss.repository.api.Repository
builtinContainerNames, nullBranch, nullDependencyLink, nullDependencyMap, nullMutableSnapshot, nullRepository, nullRepositoryObject, nullResolutionPolicy, nullResource, nullResourceMap, nullSnapshot, nullSnapshotMap, nullStorageManager, nullVersion, nullVersionByResourceMap, nullVersionMap
 
Method Summary
 void endSession(Session session)
          Ends (closes) an active session.
 Session getSession(User user)
          Get a session bound to a specific user.
 Session getSessionById(java.lang.String objId)
           
 long getSessionCount()
           
 java.util.Iterator getSessionIterator()
           
 User getUser(java.lang.String objId)
           
 long getUserCount()
          Returns the number of users defined in the repository.
 java.util.Iterator getUserIterator()
          Returns an iterator over the User objects in the repository.
 
Methods inherited from interface org.xiruss.repository.api.Repository
accept, addStorageManager, createBranch, createDependency, createDependency, createDependency, createMutableSnapshot, createMutableSnapshot, createResolutionPolicy, createResource, createSnapshot, createVersion, getBranch, getBranchById, getBranchByName, getBranchCount, getBranches, getBranchIds, getBranchNames, getDefaultStorageManager, getDependencies, getDependencyById, getDependencyCount, getId, getMutableSnapshotById, getMutableSnapshotCount, getMutableSnapshots, getName, getNullResource, getNullSnapshot, getObjectById, getPolicyById, getPolicyCount, getRepositoryObjectType, getResolutionPolicies, getResourceById, getResourceByKey, getResourceCount, getResourceIds, getResources, getSnapshotById, getSnapshotCount, getSnapShots, getStorageManager, getVersionById, getVersionCount, getVersions, hasBranchNamed, hasResourceNamed, importCompoundDoc, listVersionIds, registerBranchName, registerSnapshot, registerVersion, setDefaultStorageManager, setId, unRegisterBranchName, whereUsedByTypeOnSnapshot, whereUsedByTypeOnSnapshot, whereUsedOnSnapshot, whereUsedOnSnapshot
 

Field Detail

nullSession

static final Session nullSession

nullUser

static final User nullUser
Method Detail

getSession

Session getSession(User user)
Get a session bound to a specific user.

Parameters:
user -

getUser

User getUser(java.lang.String objId)

getUserCount

long getUserCount()
Returns the number of users defined in the repository.


getUserIterator

java.util.Iterator getUserIterator()
Returns an iterator over the User objects in the repository.

Returns:

endSession

void endSession(Session session)
Ends (closes) an active session. It is not an error to close an already closed session.

Parameters:
session -

getSessionById

Session getSessionById(java.lang.String objId)

getSessionCount

long getSessionCount()

getSessionIterator

java.util.Iterator getSessionIterator()