Interface VCSGisManager


public interface VCSGisManager
Author:
gvSIG Teamn
  • Field Details

  • Method Details

    • clean

      void clean()
    • initWorkspace

      int initWorkspace(org.gvsig.fmap.dal.store.jdbc2.JDBCServerExplorer database, VCSGisRepository repository, String label, org.gvsig.tools.task.SimpleTaskStatus status)
      Initializes a workspace in the indicated database with the indicated label and associates it with the indicated repository. It fails if a workspace is already created in that database. A code will be assigned to the workspace automatically.
      Parameters:
      database - in which to initialize the workspace.
      repository - to associate the workspace with.
      label - repository to associate the workspace with.
      status -
      Returns:
      a error code.
    • initWorkspace

      int initWorkspace(File dbfile, VCSGisRepository repository, String label, org.gvsig.tools.task.SimpleTaskStatus status)
      Initializes a workspace in the H2 database associated with the indicated file with the indicated label and associating it with the indicated repository. It fails if a workspace is already created in that database. A code will be assigned to the workspace automatically.
      Parameters:
      dbfile - file associated with database H2 in which to initialize the workspace.
      repository - to associate the workspace with.
      label - repository to associate the workspace with.
      status -
      Returns:
      a error code.
    • openWorkspace

      VCSGisWorkspace openWorkspace(org.gvsig.fmap.dal.store.jdbc2.JDBCServerExplorer workspace)
    • openWorkspace

      VCSGisWorkspace openWorkspace(File wsfile)
    • openWorkspace

      VCSGisWorkspace openWorkspace(File wsfile, String label)
    • openWorkspace

      VCSGisWorkspace openWorkspace(org.gvsig.fmap.dal.store.jdbc2.JDBCServerExplorer wsexplorer, String label)
    • getWorkspaces

      Return a Map with the workspace descriptors registered in this manager. The Map is indexed by the code of the workspace. If the manager has not any workspace registered, return a empty Map.
      Returns:
      the Map with the registered workspace descriptors.
    • registerWorkspace

      void registerWorkspace(VCSGisWorkspace workspace)
      Register a VCSGis-workspace in this manager.
      Parameters:
      workspace - to register
    • deregisterWorkspace

      void deregisterWorkspace(File dbfile)
    • deregisterWorkspace

      void deregisterWorkspace(VCSGisWorkspace workspace)
      Deregister the VCSGis-workspace of this manager.
      Parameters:
      workspace - to deregister
    • deregisterWorkspace

      void deregisterWorkspace(String workspaceCode)
    • restoreWorkspaces

      void restoreWorkspaces(Map<String,VCSGisWorkspaceDescriptor> descriptors)
      Replace the current registered workspaces by the indicaded as the Map of parameters in this manager. If descriptors is null, remove al registered workspaces in this manager. This method is designed to support the persistence of this manager's workspaces.
      Parameters:
      descriptors -
    • getWorkspace

      VCSGisWorkspace getWorkspace(org.gvsig.fmap.dal.feature.FeatureStore store)
      Returns the workspace associated with the store. If the store is not associated with any registered workspace, it returns null. The method can add properties to the store to optimize future invocations.
      Parameters:
      store -
      Returns:
      the workspace of the store or null.
    • isWorkspace

      boolean isWorkspace(File dbfile)
      Return true if the file is a database of H2 that contains a VCSGis-workspace, otherwise return false.
      Parameters:
      dbfile -
      Returns:
    • isWorkspace

      boolean isWorkspace(org.gvsig.fmap.dal.store.jdbc.JDBCServerExplorerParameters params)
      Return true if the explorer parameters reference a database that contains a VCSGis-workspace, otherwise return false.
      Parameters:
      params -
      Returns:
    • isRepository

      boolean isRepository(org.gvsig.fmap.dal.store.jdbc.JDBCServerExplorerParameters params)
    • getWorkspaceDescriptor

      VCSGisWorkspaceDescriptor getWorkspaceDescriptor(String code)
    • initRepository

      int initRepository(org.gvsig.fmap.dal.store.jdbc.JDBCServerExplorerParameters repositoryParameters, org.gvsig.crs.projection.lib.Projection crs, org.gvsig.fmap.geom.primitive.Envelope tablebbox, boolean indexGeometries, org.gvsig.tools.task.SimpleTaskStatus status)
    • initRepository

      int initRepository(org.gvsig.fmap.dal.store.jdbc.JDBCServerExplorerParameters repositoryParameters, org.gvsig.tools.task.SimpleTaskStatus status)
    • openRepository

      VCSGisRepository openRepository(org.gvsig.fmap.dal.store.jdbc.JDBCServerExplorerParameters repositoryParameters)
    • openRepository

      VCSGisRepository openRepository(URL repository)
    • openRepository

      VCSGisRepository openRepository(javax.json.JsonObject jsonrepo)
    • createServerController

      VCSGisServerController createServerController(VCSGisRepository repository)
    • setCodeGenerator

      void setCodeGenerator(VCSGisCodeGenerator generator)
    • getCodeGenerator

      VCSGisCodeGenerator getCodeGenerator()
    • getErrorMessage

      String getErrorMessage(int errcode)
    • setUserIdentificationRequester

      void setUserIdentificationRequester(VCSGisUserIdentificationRequester userIdentificationRequester)
    • getUserIdentificationRequester

      VCSGisUserIdentificationRequester getUserIdentificationRequester()
    • setAuthenticateRequestFactory

      void setAuthenticateRequestFactory(org.gvsig.tools.util.Factory<VCSGisAuthenticateRequest> authenticateRequest)
    • getAuthenticateRequestFactory

      org.gvsig.tools.util.Factory<VCSGisAuthenticateRequest> getAuthenticateRequestFactory()
    • setIdentityControllertFactory

      void setIdentityControllertFactory(org.gvsig.tools.util.Factory<VCSGisIdentityController> IdentityControllerFactory)
    • getIdentityControllerFactory

      org.gvsig.tools.util.Factory<VCSGisIdentityController> getIdentityControllerFactory()
    • createTopologyPlanStatus

      VCSGisTopologyPlanStatus createTopologyPlanStatus(String topologyPlanCode, String hashCode, boolean passed)
    • getServletClass

      Class<? extends javax.servlet.http.HttpServlet> getServletClass(String name)
    • getPreparedWorkingCopyInformation

      List<VCSGisPreparedWorkingCopyInformation> getPreparedWorkingCopyInformation(URL server)
    • getPreparedWorkingCopyInformation

      List<VCSGisPreparedWorkingCopyInformation> getPreparedWorkingCopyInformation(org.gvsig.fmap.dal.store.jdbc.JDBCServerExplorerParameters repositoryParameters)
    • preparedWorkingCopy

      int preparedWorkingCopy(URL server, String name, String label, String categories, String username, String userpass)
    • getEditingStores

      List<org.apache.commons.lang3.tuple.Pair<WeakReference<org.gvsig.fmap.dal.feature.FeatureStore>,Integer>> getEditingStores()
    • forceRemoveFromEditingStores

      void forceRemoveFromEditingStores(org.gvsig.fmap.dal.feature.FeatureStore store)
    • isThereAnyStoreInEditing

      boolean isThereAnyStoreInEditing()
    • IsThereConflictingStoresInEdition

      boolean IsThereConflictingStoresInEdition()
    • setWriterForProtocolDebugging

      void setWriterForProtocolDebugging(Writer writer)
    • getWriterForProtocolDebugging

      Writer getWriterForProtocolDebugging()