Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright (C) 2003-2010 eXo Platform SAS.
   *
   * This program is free software; you can redistribute it and/or
   * modify it under the terms of the GNU Affero General Public License
   * as published by the Free Software Foundation; either version 3
   * of the License, or (at your option) any later version.
   *
   * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, see<http://www.gnu.org/licenses/>.
  */
 package org.exoplatform.services.jcr.ext.repository.creation;
 
Created by The eXo Platform SAS.
Date:

Author(s):
Karpenko Sergiy
Version:
$Id: RepositoryCreationService.java 111 2008-11-11 11:11:11Z serg $
 
 public interface RepositoryCreationService
 {
   
Reserves, validates and creates repository in a simplified form.

Parameters:
rEntry - repository Entry - note that datasource must not exist.
backupId - backup id
creationProps - storage creation properties
Throws:
org.exoplatform.services.jcr.config.RepositoryConfigurationException if some exception occurred during repository creation or repository name is absent in reserved list
RepositoryCreationServiceException if some exception occurred during repository creation or repository name is absent in reserved list
 
    void createRepository(String backupIdRepositoryEntry rEntryStorageCreationProperties creationProps)
Reserves, validates and creates repository in a simplified form.

Parameters:
rEntry - repository Entry - note that datasource must not exist.
backupId - backup id
Throws:
org.exoplatform.services.jcr.config.RepositoryConfigurationException if some exception occurred during repository creation or repository name is absent in reserved list
RepositoryCreationServiceException if some exception occurred during repository creation or repository name is absent in reserved list
 
    void createRepository(String backupIdRepositoryEntry rEntrythrows RepositoryConfigurationException,
       RepositoryCreationException;

   
Reserve repository name to prevent repository creation with same name from other place in same time via this service.

Parameters:
repositoryName - repositoryName
Returns:
repository token. Anyone obtaining a token can later create a repository of reserved name.
Throws:
RepositoryCreationServiceException if can't reserve name
 
    String reserveRepositoryName(String repositoryNamethrows RepositoryCreationException;

   
Creates repository, using token of already reserved repository name. Good for cases, when repository creation should be delayed or made asynchronously in dedicated thread.

Parameters:
rEntry - repository entry - note, that datasource must not exist
backupId - backup id
rToken - token
creationProps - storage creation properties
Throws:
org.exoplatform.services.jcr.config.RepositoryConfigurationException if some exception occurred during repository creation or repository name is absent in reserved list
RepositoryCreationServiceException if some exception occurred during repository creation or repository name is absent in reserved list
 
    void createRepository(String backupIdRepositoryEntry rEntryString rTokenStorageCreationProperties creationProps)
Creates repository, using token of already reserved repository name. Good for cases, when repository creation should be delayed or made asynchronously in dedicated thread.

Parameters:
rEntry - repository entry - note, that datasource must not exist
backupId - backup id
rToken - token
Throws:
org.exoplatform.services.jcr.config.RepositoryConfigurationException if some exception occurred during repository creation or repository name is absent in reserved list
RepositoryCreationServiceException if some exception occurred during repository creation or repository name is absent in reserved list
 
    void createRepository(String backupIdRepositoryEntry rEntryString rToken)
Remove previously created repository.

Parameters:
repositoryName - the repository name to delete
forceRemove - force close all opened sessions
Throws:
RepositoryCreationServiceException if some exception occurred during repository removing occurred
   void removeRepository(String repositoryNameboolean forceRemovethrows RepositoryCreationException;
New to GrepCode? Check out our FAQ X