Package org.gvsig.vcsgis.lib
Interface VCSGisManager
public interface VCSGisManager
- Author:
- gvSIG Teamn
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final Stringstatic final Stringstatic final Stringstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionvoidclean()createServerController(VCSGisRepository repository) createTopologyPlanStatus(String topologyPlanCode, String hashCode, boolean passed) voidderegisterWorkspace(File dbfile) voidderegisterWorkspace(String workspaceCode) voidderegisterWorkspace(VCSGisWorkspace workspace) Deregister the VCSGis-workspace of this manager.voidforceRemoveFromEditingStores(org.gvsig.fmap.dal.feature.FeatureStore store) org.gvsig.tools.util.Factory<VCSGisAuthenticateRequest> List<org.apache.commons.lang3.tuple.Pair<WeakReference<org.gvsig.fmap.dal.feature.FeatureStore>, Integer>> getErrorMessage(int errcode) org.gvsig.tools.util.Factory<VCSGisIdentityController> getPreparedWorkingCopyInformation(URL server) getPreparedWorkingCopyInformation(org.gvsig.fmap.dal.store.jdbc.JDBCServerExplorerParameters repositoryParameters) Class<? extends javax.servlet.http.HttpServlet> getServletClass(String name) getWorkspace(org.gvsig.fmap.dal.feature.FeatureStore store) Returns the workspace associated with the store.getWorkspaceDescriptor(String code) Return a Map with the workspace descriptors registered in this manager.intinitRepository(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) intinitRepository(org.gvsig.fmap.dal.store.jdbc.JDBCServerExplorerParameters repositoryParameters, org.gvsig.tools.task.SimpleTaskStatus status) intinitWorkspace(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.intinitWorkspace(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.booleanisRepository(org.gvsig.fmap.dal.store.jdbc.JDBCServerExplorerParameters params) booleanbooleanbooleanisWorkspace(File dbfile) Return true if the file is a database of H2 that contains a VCSGis-workspace, otherwise return false.booleanisWorkspace(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.openRepository(URL repository) openRepository(javax.json.JsonObject jsonrepo) openRepository(org.gvsig.fmap.dal.store.jdbc.JDBCServerExplorerParameters repositoryParameters) openWorkspace(File wsfile) openWorkspace(File wsfile, String label) openWorkspace(org.gvsig.fmap.dal.store.jdbc2.JDBCServerExplorer workspace) openWorkspace(org.gvsig.fmap.dal.store.jdbc2.JDBCServerExplorer wsexplorer, String label) intpreparedWorkingCopy(URL server, String name, String label, String categories, String username, String userpass) voidregisterWorkspace(VCSGisWorkspace workspace) Register a VCSGis-workspace in this manager.voidrestoreWorkspaces(Map<String, VCSGisWorkspaceDescriptor> descriptors) Replace the current registered workspaces by the indicaded as the Map of parameters in this manager.voidsetAuthenticateRequestFactory(org.gvsig.tools.util.Factory<VCSGisAuthenticateRequest> authenticateRequest) voidsetCodeGenerator(VCSGisCodeGenerator generator) voidsetIdentityControllertFactory(org.gvsig.tools.util.Factory<VCSGisIdentityController> IdentityControllerFactory) voidsetUserIdentificationRequester(VCSGisUserIdentificationRequester userIdentificationRequester) voidsetWriterForProtocolDebugging(Writer writer)
-
Field Details
-
STORESREPOSITORY_VCSGIS_MODEL
- See Also:
-
STORESREPOSITORY_VCSGIS_LOCALURL
- See Also:
-
ERR_OK
static final int ERR_OK- See Also:
-
ERR_NO_ERROR
static final int ERR_NO_ERROR- See Also:
-
ERR_DBFILE_IS_NULL
static final int ERR_DBFILE_IS_NULL- See Also:
-
ERR_WSEXPLORER_IS_NULL
static final int ERR_WSEXPLORER_IS_NULL- See Also:
-
ERR_CANT_OPEN_WORKSPACE
static final int ERR_CANT_OPEN_WORKSPACE- See Also:
-
ERR_CANT_OPEN_WORKSPACE_SERVEREXPLORER
static final int ERR_CANT_OPEN_WORKSPACE_SERVEREXPLORER- See Also:
-
ERR_STORE_NOT_IN_VERSION_CONTROL
static final int ERR_STORE_NOT_IN_VERSION_CONTROL- See Also:
-
ERR_LABEL_IS_NULL
static final int ERR_LABEL_IS_NULL- See Also:
-
ERR_CANT_EXECUTE_REQUEST
static final int ERR_CANT_EXECUTE_REQUEST- See Also:
-
ERR_CANT_BUILD_REQUEST_RESPONSE
static final int ERR_CANT_BUILD_REQUEST_RESPONSE- See Also:
-
ERR_CANT_BUILD_REQUEST
static final int ERR_CANT_BUILD_REQUEST- See Also:
-
ERR_CANT_HANDLE_REQUEST
static final int ERR_CANT_HANDLE_REQUEST- See Also:
-
ERR_CANT_INITIALIZE_REPOSITORY
static final int ERR_CANT_INITIALIZE_REPOSITORY- See Also:
-
ERR_CANT_CONSUME_RESPONSE
static final int ERR_CANT_CONSUME_RESPONSE- See Also:
-
ERR_INVALID_DATA
static final int ERR_INVALID_DATA- See Also:
-
ERR_INVALID_REPOSITORY
static final int ERR_INVALID_REPOSITORY- See Also:
-
ERR_INVALID_REVISION
static final int ERR_INVALID_REVISION- See Also:
-
ERR_INVALID_REVISION_FOR_ENTITY
static final int ERR_INVALID_REVISION_FOR_ENTITY- See Also:
-
ERR_CANCELLED_BY_USER
static final int ERR_CANCELLED_BY_USER- See Also:
-
ERR_CANT_ADD_LAYER
static final int ERR_CANT_ADD_LAYER- See Also:
-
ERR_CANT_AUTHENTICATE_USER
static final int ERR_CANT_AUTHENTICATE_USER- See Also:
-
ERR_INVALID_AUTHENTICATION_TOKEN
static final int ERR_INVALID_AUTHENTICATION_TOKEN- See Also:
-
ERR_USER_NOT_AUTHORIZED
static final int ERR_USER_NOT_AUTHORIZED- See Also:
-
ERR_AUTHENTICATION_EXPIRED
static final int ERR_AUTHENTICATION_EXPIRED- See Also:
-
ERR_INVALID_USERCODE
static final int ERR_INVALID_USERCODE- See Also:
-
ERR_INVALID_PARAMETERS
static final int ERR_INVALID_PARAMETERS- See Also:
-
ERR_EXCEPTION
static final int ERR_EXCEPTION- See Also:
-
ERR_TABLE_IS_EDITING
static final int ERR_TABLE_IS_EDITING- See Also:
-
ERR_CANT_RETRIEVE_USERS
static final int ERR_CANT_RETRIEVE_USERS- See Also:
-
ERR_CANT_RETRIEVE_TOPOLOGYPLANS
static final int ERR_CANT_RETRIEVE_TOPOLOGYPLANS- See Also:
-
ERR_TOPOLOGYPLAN_REQUIRED
static final int ERR_TOPOLOGYPLAN_REQUIRED- See Also:
-
ERR_TOPOLOGYPLAN_OUTDATED
static final int ERR_TOPOLOGYPLAN_OUTDATED- See Also:
-
ERR_INVALID_RECORDCODE
static final int ERR_INVALID_RECORDCODE- See Also:
-
ERR_DATA_RECORD_NOT_FOUND
static final int ERR_DATA_RECORD_NOT_FOUND- See Also:
-
ERR_INVALID_ENTITY
static final int ERR_INVALID_ENTITY- See Also:
-
ERR_OPERATION_NOT_ALLOWED_WITH_LINKEDTABLE
static final int ERR_OPERATION_NOT_ALLOWED_WITH_LINKEDTABLE- See Also:
-
ERR_TOO_MANY_REPOSITORIES
static final int ERR_TOO_MANY_REPOSITORIES- See Also:
-
ERR_CANT_CREATE_TABLE
static final int ERR_CANT_CREATE_TABLE- See Also:
-
ERR_CANT_CREATE_TABLE_CONFIG
static final int ERR_CANT_CREATE_TABLE_CONFIG- See Also:
-
ERR_CANT_CREATE_TABLE_ENTITIES
static final int ERR_CANT_CREATE_TABLE_ENTITIES- See Also:
-
ERR_CANT_CREATE_TABLE_CHANGES
static final int ERR_CANT_CREATE_TABLE_CHANGES- See Also:
-
ERR_ENTITY_ALREADY_EXISTS
static final int ERR_ENTITY_ALREADY_EXISTS- See Also:
-
ERR_ENTITY_NOT_HAS_VCSGISCODE
static final int ERR_ENTITY_NOT_HAS_VCSGISCODE- See Also:
-
ERR_CANT_OPEN_ENTITIES
static final int ERR_CANT_OPEN_ENTITIES- See Also:
-
ERR_CANT_INSERT_ENTITIES
static final int ERR_CANT_INSERT_ENTITIES- See Also:
-
ERR_ENTITY_NOT_EXISTS
static final int ERR_ENTITY_NOT_EXISTS- See Also:
-
ERR_CANT_RETRIEVE_ENTITIES
static final int ERR_CANT_RETRIEVE_ENTITIES- See Also:
-
ERR_CANT_ADD_ENTITY_WITHOUT_PRIMARY_KEY
static final int ERR_CANT_ADD_ENTITY_WITHOUT_PRIMARY_KEY- See Also:
-
ERR_CANT_ADD_TABLE
static final int ERR_CANT_ADD_TABLE- See Also:
-
ERR_CANT_REMOVE_ENTITY
static final int ERR_CANT_REMOVE_ENTITY- See Also:
-
ERR_CANT_OPEN_CHANGES
static final int ERR_CANT_OPEN_CHANGES- See Also:
-
ERR_CANT_INSERT_CHANGE
static final int ERR_CANT_INSERT_CHANGE- See Also:
-
ERR_CANT_ADD_CHANGE
static final int ERR_CANT_ADD_CHANGE- See Also:
-
ERR_CANT_REMOVE_CHANGES
static final int ERR_CANT_REMOVE_CHANGES- See Also:
-
ERR_CANT_OPEN_STORE
static final int ERR_CANT_OPEN_STORE- See Also:
-
ERR_CANT_RETRIEVE_SOURCE_FEATURES
static final int ERR_CANT_RETRIEVE_SOURCE_FEATURES- See Also:
-
ERR_CANT_INSERT_FEATURES
static final int ERR_CANT_INSERT_FEATURES- See Also:
-
ERR_CANT_COMMIT
static final int ERR_CANT_COMMIT- See Also:
-
ERR_CANT_COMMIT_WORKSPACE_OUTDATED
static final int ERR_CANT_COMMIT_WORKSPACE_OUTDATED- See Also:
-
ERR_CANT_COMMIT_WITH_FEATURE_CODE_BLANK
static final int ERR_CANT_COMMIT_WITH_FEATURE_CODE_BLANK- See Also:
-
ERR_CANT_COMMIT_WITH_FEATURE_DATA_BLANK
static final int ERR_CANT_COMMIT_WITH_FEATURE_DATA_BLANK- See Also:
-
ERR_CANT_CHECKOUT
static final int ERR_CANT_CHECKOUT- See Also:
-
ERR_CANT_REVERT
static final int ERR_CANT_REVERT- See Also:
-
ERR_CANT_UPDATE_ENTITIES
static final int ERR_CANT_UPDATE_ENTITIES- See Also:
-
ERR_CANT_UPDATE
static final int ERR_CANT_UPDATE- See Also:
-
ERR_CANT_PREPARE_UPDATE
static final int ERR_CANT_PREPARE_UPDATE- See Also:
-
ERR_UPDATE_NEED_MERGE
static final int ERR_UPDATE_NEED_MERGE- See Also:
-
ERR_CANT_UPDATE_CLEAN
static final int ERR_CANT_UPDATE_CLEAN- See Also:
-
ERR_CANT_MERGE
static final int ERR_CANT_MERGE- See Also:
-
ERR_CANNOT_UPDATE_TABLE_THAT_NOT_EXIST
static final int ERR_CANNOT_UPDATE_TABLE_THAT_NOT_EXIST- See Also:
-
ERR_CANT_PREPARE_WORKSPACE
static final int ERR_CANT_PREPARE_WORKSPACE- See Also:
-
ERR_REPOSITORY_URL_NOT_DEFINED
static final int ERR_REPOSITORY_URL_NOT_DEFINED- See Also:
-
ERR_WORKING_COPIES_FOLDER_NOT_DEFINED
static final int ERR_WORKING_COPIES_FOLDER_NOT_DEFINED- See Also:
-
ERR_CANT_EXPORT
static final int ERR_CANT_EXPORT- See Also:
-
ERR_USER_CANCELLED
static final int ERR_USER_CANCELLED- See Also:
-
ERR_OFFLINE
static final int ERR_OFFLINE- See Also:
-
STATE_UNKNOWN
static final int STATE_UNKNOWN- See Also:
-
STATE_LOCAL_UNMODIFIED
static final int STATE_LOCAL_UNMODIFIED- See Also:
-
STATE_LOCAL_NEW
static final int STATE_LOCAL_NEW- See Also:
-
STATE_LOCAL_MODIFIED
static final int STATE_LOCAL_MODIFIED- See Also:
-
STATE_LOCAL_OUTDATED
static final int STATE_LOCAL_OUTDATED- See Also:
-
STATE_LOCAL_OUTDATED_AND_MODIFIED
static final int STATE_LOCAL_OUTDATED_AND_MODIFIED- See Also:
-
STATE_CONFLICT
static final int STATE_CONFLICT- See Also:
-
STATE_REPOSITORY_NEW
static final int STATE_REPOSITORY_NEW- See Also:
-
STATE_NOT_IN_LOCAL_OR_REPOSITORY
static final int STATE_NOT_IN_LOCAL_OR_REPOSITORY- See Also:
-
STATE_DISCONNECTED
static final int STATE_DISCONNECTED- See Also:
-
STATE_CORRUPT
static final int STATE_CORRUPT- See Also:
-
STATE_REPOSITORY_MODIFIED
static final int STATE_REPOSITORY_MODIFIED- See Also:
-
STATE_LOG
static final int STATE_LOG- See Also:
-
OP_UNKNOWN
static final int OP_UNKNOWN- See Also:
-
OP_DELETE
static final int OP_DELETE- See Also:
-
OP_UPDATE
static final int OP_UPDATE- See Also:
-
OP_INSERT
static final int OP_INSERT- See Also:
-
OP_ADD_ENTITY
static final int OP_ADD_ENTITY- See Also:
-
OP_IGNORE
static final int OP_IGNORE- See Also:
-
TOPOLOGYPLAN_UNKNOWN
static final int TOPOLOGYPLAN_UNKNOWN- See Also:
-
TOPOLOGYPLAN_PASSED
static final int TOPOLOGYPLAN_PASSED- See Also:
-
TOPOLOGYPLAN_NOTPASSED
static final int TOPOLOGYPLAN_NOTPASSED- See Also:
-
TOPOLOGYPLAN_MODE_RECOMMENDED
static final int TOPOLOGYPLAN_MODE_RECOMMENDED- See Also:
-
TOPOLOGYPLAN_MODE_MANDATORY
static final int TOPOLOGYPLAN_MODE_MANDATORY- See Also:
-
DEFAULT_DATA_TABLE
- See Also:
-
FEATURECODE_FIELD_NAME
- See Also:
-
VCSGISCODELEN
static final int VCSGISCODELEN- See Also:
-
TAG_VCSGIS_LABEL
- See Also:
-
TAG_VCSGIS_DATAMODEL
- See Also:
-
TAG_VCSGIS_CATEGORY
- See Also:
-
TAG_VCSGIS_FIELDFORLABEL
- See Also:
-
TAG_VCSGIS_RESOURCES
- See Also:
-
TAG_VCSGIS_TABLENAME
- See Also:
-
GUEST_USER_CODE
- See Also:
-
GUEST_USER_ID
- See Also:
-
DEFAULT_REPOSITORY_CRS
- See Also:
-
-
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
-
openWorkspace
-
openWorkspace
-
openWorkspace
VCSGisWorkspace openWorkspace(org.gvsig.fmap.dal.store.jdbc2.JDBCServerExplorer wsexplorer, String label) -
getWorkspaces
Map<String,VCSGisWorkspaceDescriptor> 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
Register a VCSGis-workspace in this manager.- Parameters:
workspace- to register
-
deregisterWorkspace
-
deregisterWorkspace
Deregister the VCSGis-workspace of this manager.- Parameters:
workspace- to deregister
-
deregisterWorkspace
-
restoreWorkspaces
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
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
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
-
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
-
openRepository
-
createServerController
-
setCodeGenerator
-
getCodeGenerator
VCSGisCodeGenerator getCodeGenerator() -
getErrorMessage
-
setUserIdentificationRequester
-
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
-
getPreparedWorkingCopyInformation
-
getPreparedWorkingCopyInformation
List<VCSGisPreparedWorkingCopyInformation> getPreparedWorkingCopyInformation(org.gvsig.fmap.dal.store.jdbc.JDBCServerExplorerParameters repositoryParameters) -
preparedWorkingCopy
-
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
-
getWriterForProtocolDebugging
Writer getWriterForProtocolDebugging()
-