private int forceCloseSession ( String repositoryName , String workspaceName ) throws RepositoryException , RepositoryConfigurationException { ManageableRepository mr = repositoryService . getRepository ( repositoryName ) ; WorkspaceContainerFacade wc = mr . getWorkspaceContainer ( workspaceName ) ; SessionRegistry sessionRegistry = ( SessionRegistry ) wc . getComponent ( SessionRegistry . class ) ; return sessionRegistry . closeSessions ( workspaceName ) ; }
Close sessions on specific workspace .