de.mid.innovator.srv2api.icw2meta
Class ADRevisionHelper

java.lang.Object
  extended by de.mid.innovator.srv2api.icw2meta.ADRevisionHelper

public abstract class ADRevisionHelper
extends Object

This is a utility class for ADRevision that provides static methods for creation or other purposes.

See Also:
ADRevision

Method Summary
static ARG_RevisionRepositoriesList checkOutModel(SrvContext srvCtx, String locationRepository, String revisionReference, String locationCheckOut, boolean readOnly, String sectionName)
          Copies the specified revision from the revision repository to the given location and starts a repository server.
static void createRevisionRepository(SrvContext srvCtx, String locationRepository, String uuid)
          Creates a revision repository at the specified location.
static void deleteRevision(SrvContext srvCtx, String locationRepository, String revisionReference)
          Deletes the revision from the revision repository at the specified location.
static void deleteRevisionRepository(SrvContext srvCtx, String locationRepository)
          Deletes the revision repository at the specified location.
static ARG_RevisionRepositoriesList getListRevisionRepositories(SrvContext srvCtx, String uuid)
          List all known revision repositories.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

checkOutModel

public static ARG_RevisionRepositoriesList checkOutModel(SrvContext srvCtx,
                                                         String locationRepository,
                                                         String revisionReference,
                                                         String locationCheckOut,
                                                         boolean readOnly,
                                                         String sectionName)
                                                  throws InoNetException,
                                                         SrvErrorException
Copies the specified revision from the revision repository to the given location and starts a repository server.

Parameters:
srvCtx - The context of the related innovator server.
locationRepository - location of the revision repository
revisionReference - branch/tag name of the revision to be checked out
locationCheckOut - target direcotry relative to inoprj for check out
readOnly - start server in read only mode and delete repository at server shutdown
sectionName - name of primary section
Throws:
InoNetException
SrvErrorException

createRevisionRepository

public static void createRevisionRepository(SrvContext srvCtx,
                                            String locationRepository,
                                            String uuid)
                                     throws InoNetException,
                                            SrvErrorException
Creates a revision repository at the specified location. The repository can hold revisions of the model with the given uuid.

Parameters:
srvCtx - The context of the related innovator server.
locationRepository - location of the revision repository
uuid - uuid of the model whose revision are stored in the repository
Throws:
InoNetException
SrvErrorException

deleteRevision

public static void deleteRevision(SrvContext srvCtx,
                                  String locationRepository,
                                  String revisionReference)
                           throws InoNetException,
                                  SrvErrorException
Deletes the revision from the revision repository at the specified location.

Parameters:
srvCtx - The context of the related innovator server.
locationRepository - location of the revision repository
revisionReference - branch/tag name of the revision
Throws:
InoNetException
SrvErrorException

deleteRevisionRepository

public static void deleteRevisionRepository(SrvContext srvCtx,
                                            String locationRepository)
                                     throws InoNetException,
                                            SrvErrorException
Deletes the revision repository at the specified location.

Parameters:
srvCtx - The context of the related innovator server.
locationRepository - location of the revision repository
Throws:
InoNetException
SrvErrorException

getListRevisionRepositories

public static ARG_RevisionRepositoriesList getListRevisionRepositories(SrvContext srvCtx,
                                                                       String uuid)
                                                                throws InoNetException,
                                                                       SrvErrorException
List all known revision repositories.

Parameters:
srvCtx - The context of the related innovator server.
uuid - restrict result by this uuid
Throws:
InoNetException
SrvErrorException