Interface VCSGisWorkspace

All Superinterfaces:
org.gvsig.tools.dispose.Disposable

public interface VCSGisWorkspace extends org.gvsig.tools.dispose.Disposable
Author:
gvSIG Team
  • Field Details

  • Method Details

    • getCode

      String getCode()
    • getLabel

      String getLabel()
    • getErrorMessage

      String getErrorMessage(int errcode)
    • getExplorer

      org.gvsig.fmap.dal.store.jdbc2.JDBCServerExplorer getExplorer()
    • getExplorerParameters

      org.gvsig.fmap.dal.store.jdbc.JDBCServerExplorerParameters getExplorerParameters()
    • getFeatureStore

      org.gvsig.fmap.dal.feature.FeatureStore getFeatureStore(String tableName)
      Return the store associted to the tableName. The store don't by used to edit. The store don't load the associted resources. The store is chached, and next calls return the same instance.
      Parameters:
      tableName -
      Returns:
    • openFeatureStore

      org.gvsig.fmap.dal.feature.FeatureStore openFeatureStore(String tableName, boolean ignoreDALResource)
      Return the store associted to the tableName. The store is not cached, every call to this method create a new store.
      Parameters:
      tableName -
      ignoreDALResource -
      Returns:
    • getFeatureType

      org.gvsig.fmap.dal.feature.FeatureType getFeatureType(String tableName)
    • forceReloadWorkspaceEntities

      void forceReloadWorkspaceEntities()
    • reloadWorkspaceEntities

      void reloadWorkspaceEntities()
    • create_table

      void create_table(String name)
    • create_table

      void create_table(VCSGisEntity entity)
    • add

      int add(String name, org.gvsig.fmap.dal.feature.FeatureStore store, String fieldForLabel)
    • add

      int add(String name, org.gvsig.fmap.dal.feature.FeatureStore store, String fieldForLabel, String category, String label)
    • add

      int add(String name, org.gvsig.fmap.dal.feature.FeatureStore source, String fieldForLabel, String category, String label, String model, String resources, String pkName, boolean importData, org.gvsig.tools.task.SimpleTaskStatus status)
    • canCommit

      boolean canCommit()
    • canCommit

      boolean canCommit(org.apache.commons.lang3.mutable.MutableObject<String> message)
    • canCommit

      boolean canCommit(org.apache.commons.lang3.mutable.MutableObject<String> message, List<String> entityCodes)
    • commit

      int commit()
    • commit

      int commit(Timestamp date, String comment, org.gvsig.tools.task.SimpleTaskStatus status)
    • commit

      int commit(Timestamp revisionDate, Timestamp efectiveDate, String comment, org.gvsig.tools.task.SimpleTaskStatus status)
    • commit

      int commit(List<String> entityCodes, Timestamp revisiondate, Timestamp efectivedate, String comment, org.gvsig.tools.task.SimpleTaskStatus status, List<VCSGisTopologyPlanStatus> topologyPlanStatusList)
    • checkout

      int checkout(String tableName)
    • checkout

      int checkout(String tableName, String revisionCode)
    • checkout

      int checkout(String tableName, String revisionCode, org.gvsig.tools.task.SimpleTaskStatus status)
    • checkout

      int checkout(String tableName, String revisionCode, Timestamp efectiveDate, org.gvsig.tools.task.SimpleTaskStatus status)
    • checkout

      int checkout(String tableName, String revisionCode, Timestamp efectiveDate, org.gvsig.fmap.geom.primitive.Envelope roi, org.gvsig.tools.task.SimpleTaskStatus status)
    • checkout

      int checkout(List<String> tableNames, org.gvsig.tools.task.SimpleTaskStatus status)
    • update

      int update(List<String> tableNames, org.gvsig.tools.task.SimpleTaskStatus status)
    • updatePrepare

      int updatePrepare(String tableName)
    • updatePrepare

      int updatePrepare(String tableName, org.gvsig.tools.task.SimpleTaskStatus status)
    • update

      int update(String tableName)
    • update

      int update(String tableName, org.gvsig.tools.task.SimpleTaskStatus status)
    • update

      int update(String tableName, VCSGisWorkspace.UpdateChangeListener changeListener, org.gvsig.tools.task.SimpleTaskStatus status)
    • merge

      int merge(String tableName)
    • merge

      int merge(String tableName, org.gvsig.tools.task.SimpleTaskStatus status)
    • merge

      int merge(String tableName, org.apache.commons.lang3.mutable.MutableLong localChangesCreated, org.gvsig.tools.task.SimpleTaskStatus status)
    • updateClean

      int updateClean(String entityCode)
    • updateClean

      int updateClean(String entityCode, org.gvsig.tools.task.SimpleTaskStatus status)
    • updateNeedMerge

      boolean updateNeedMerge(String entityName)
    • updateEntitiesFromRepository

      int updateEntitiesFromRepository()
    • updateEntitiesFromRepository

      int updateEntitiesFromRepository(org.gvsig.tools.task.SimpleTaskStatus status)
    • getRemoteChanges

    • getRemoteChangesByEntity

      VCSGisWorkspaceChanges<VCSGisRepositoryChange> getRemoteChangesByEntity(String... entityName)
    • getLocalChanges

    • getLocalChanges

    • getLocalChanges

    • hasLocalChanges

      boolean hasLocalChanges(List<VCSGisEntity> entities)
    • reloadRepositoryEntities

      void reloadRepositoryEntities(org.gvsig.tools.task.SimpleTaskStatus status)
    • clearRepositoryEntitiesCached

      void clearRepositoryEntitiesCached()
    • getRepositoryEntities

      List<VCSGisEntity> getRepositoryEntities()
    • getWorkspaceEntities

      List<VCSGisWorkspaceEntity> getWorkspaceEntities()
    • getWorkspaceEntity

      VCSGisWorkspaceEntity getWorkspaceEntity(String entity)
    • getWorkspaceEntityByName

      VCSGisWorkspaceEntity getWorkspaceEntityByName(String entityName)
    • getWorkspaceEntityByCode

      VCSGisWorkspaceEntity getWorkspaceEntityByCode(String entityCode)
    • existsInWorkspace

      boolean existsInWorkspace(VCSGisEntity entity)
    • existsInWorkspace

      boolean existsInWorkspace(org.gvsig.fmap.dal.feature.OpenFeatureStoreParameters parameters)
    • getRepositoryEntity

      VCSGisEntity getRepositoryEntity(String entity)
    • getRepositoryEntityByCode

      VCSGisEntity getRepositoryEntityByCode(String entityCode)
    • getRepositoryEntityByName

      VCSGisEntity getRepositoryEntityByName(String entityName)
    • createUniqueCode

      String createUniqueCode()
    • getEntity

      VCSGisEntity getEntity(String entityName)
    • getRepository

      VCSGisRepository getRepository()
    • getEntitiesOfRemoteChanges

      List<VCSGisEntity> getEntitiesOfRemoteChanges()
    • getEntitiesOfLocalChanges

      List<VCSGisEntity> getEntitiesOfLocalChanges()
    • addToConnectionPool

      void addToConnectionPool()
    • history

      int history(String entityName, String group, Timestamp minDate, Timestamp maxDate, int maxNumberOfRevisions, org.gvsig.tools.task.SimpleTaskStatus status)
    • history

      int history(String entityName, String group, int maxNumberOfRevisions, org.gvsig.tools.task.SimpleTaskStatus status)
    • getRevisions

      org.gvsig.tools.util.GetItemWithSize64<VCSGisRevision> getRevisions(String entityName, String group, String filter)
    • getRevisionsStore

      org.gvsig.fmap.dal.feature.FeatureStore getRevisionsStore()
    • getUserName

      String getUserName(String userCode)
    • getUser

      VCSGisUser getUser(String userCodeOrId)
    • isInMyDatabase

      boolean isInMyDatabase(org.gvsig.fmap.dal.feature.FeatureStore store)
    • isInMyDatabase

      boolean isInMyDatabase(org.gvsig.fmap.dal.feature.OpenFeatureStoreParameters parameters)
    • isInMyDatabase

      boolean isInMyDatabase(String tableName)
    • getRelatedFeature

      org.gvsig.fmap.dal.feature.Feature getRelatedFeature(VCSGisEntity entity, String featureCode)
    • getRelatedFeature

      org.gvsig.fmap.dal.feature.Feature getRelatedFeature(VCSGisRepositoryChange change)
    • removeEntity

      int removeEntity(String nameOrCode)
      Parameters:
      nameOrCode -
      Returns:
    • removeEntity

      int removeEntity(VCSGisEntity entity)
    • removeEntities

      int removeEntities(List<String> namesOrCodes)
    • getUserIdentificationRequester

      VCSGisUserIdentificationRequester getUserIdentificationRequester()
    • setUserIdentificationRequester

      void setUserIdentificationRequester(VCSGisUserIdentificationRequester userIdentificationRequester)
    • getEntityCategories

      Collection<String> getEntityCategories()
    • getWorkspaceEntityCategories

      Collection<String> getWorkspaceEntityCategories()
    • getTopologyPlan

      VCSGisTopologyPlan getTopologyPlan(String topologyPlanCode)
    • importHistory

      int importHistory(org.gvsig.fmap.dal.feature.FeatureStore sourceStore, String name, String label, String category, String attrNameForLabel, String fieldCodeName, String fieldDateName, String fieldOrderName)
    • revert

      int revert(String nameOrCode)
    • revert

      int revert(String nameOrCode, org.gvsig.tools.task.SimpleTaskStatus status)
    • revert

      int revert(String nameOrCode, boolean continueOnErrors, org.gvsig.tools.task.SimpleTaskStatus status)
    • getEntitiesWithSelectedChanges

      List<VCSGisWorkspaceEntity> getEntitiesWithSelectedChanges()
    • export

      int export(String entityName, String tableName, String revisionCode, Timestamp efectiveDate, org.gvsig.fmap.geom.primitive.Envelope roi, org.gvsig.tools.task.SimpleTaskStatus status)
    • getDataModels

      List<String> getDataModels()
    • getRepositoryDataModels

      List<String> getRepositoryDataModels()
    • getWorkspaceDataModels

      List<String> getWorkspaceDataModels()
    • authenticate

      int authenticate(String userId, String password, org.gvsig.tools.task.SimpleTaskStatus status)
    • authenticate

      boolean authenticate(org.gvsig.tools.task.SimpleTaskStatus status)
    • logout

      void logout()
    • createOpenStoreParameters

      org.gvsig.fmap.dal.OpenDataStoreParameters createOpenStoreParameters(String tableName)
    • updateTopologyPlansFromRepository

      void updateTopologyPlansFromRepository(org.gvsig.tools.task.SimpleTaskStatus status)
    • isOutOfDate

      boolean isOutOfDate(org.gvsig.fmap.dal.feature.FeatureStore store, org.gvsig.fmap.dal.feature.Feature feature)
    • isOutOfDate

      boolean isOutOfDate(String tableName, String recordCode)
    • setAllowAssignTheRevisionDate

      boolean setAllowAssignTheRevisionDate(boolean allow)
    • isTheRepositoryLocal

      boolean isTheRepositoryLocal()
    • registerDataModelRepository

      void registerDataModelRepository(String modelName)
    • setOffline

      void setOffline(boolean offline)
    • isOffline

      boolean isOffline()
    • getEntityLabelTemplate

      String getEntityLabelTemplate()
    • formatEntityLabel

      String formatEntityLabel(VCSGisEntity entity)
    • useSafeMode

      boolean useSafeMode()
    • getWorkspaceResourcesTableNames

      List<String> getWorkspaceResourcesTableNames()
    • canUpdate

      boolean canUpdate(org.apache.commons.lang3.mutable.MutableObject<String> message, String tableName)
    • log

      List<VCSGisRepositoryLogData> log(String tableName, String featureRelatedCode, org.gvsig.tools.task.SimpleTaskStatus status)
    • setConfigValue

      void setConfigValue(String name, String value)
    • getLocalChangesSelectedCount

      int getLocalChangesSelectedCount(String entityCode)