Package org.gvsig.vcsgis.lib
Class VCSGisManagerImpl
java.lang.Object
org.gvsig.vcsgis.lib.VCSGisManagerImpl
- All Implemented Interfaces:
VCSGisManager
- Author:
- gvSIG Team
-
Field Summary
FieldsModifier and TypeFieldDescriptionFields inherited from interface org.gvsig.vcsgis.lib.VCSGisManager
DEFAULT_DATA_TABLE, DEFAULT_REPOSITORY_CRS, ERR_AUTHENTICATION_EXPIRED, ERR_CANCELLED_BY_USER, ERR_CANNOT_UPDATE_TABLE_THAT_NOT_EXIST, ERR_CANT_ADD_CHANGE, ERR_CANT_ADD_ENTITY_WITHOUT_PRIMARY_KEY, ERR_CANT_ADD_LAYER, ERR_CANT_ADD_TABLE, ERR_CANT_AUTHENTICATE_USER, ERR_CANT_BUILD_REQUEST, ERR_CANT_BUILD_REQUEST_RESPONSE, ERR_CANT_CHECKOUT, ERR_CANT_COMMIT, ERR_CANT_COMMIT_WITH_FEATURE_CODE_BLANK, ERR_CANT_COMMIT_WITH_FEATURE_DATA_BLANK, ERR_CANT_COMMIT_WORKSPACE_OUTDATED, ERR_CANT_CONSUME_RESPONSE, ERR_CANT_CREATE_TABLE, ERR_CANT_CREATE_TABLE_CHANGES, ERR_CANT_CREATE_TABLE_CONFIG, ERR_CANT_CREATE_TABLE_ENTITIES, ERR_CANT_EXECUTE_REQUEST, ERR_CANT_EXPORT, ERR_CANT_HANDLE_REQUEST, ERR_CANT_INITIALIZE_REPOSITORY, ERR_CANT_INSERT_CHANGE, ERR_CANT_INSERT_ENTITIES, ERR_CANT_INSERT_FEATURES, ERR_CANT_MERGE, ERR_CANT_OPEN_CHANGES, ERR_CANT_OPEN_ENTITIES, ERR_CANT_OPEN_STORE, ERR_CANT_OPEN_WORKSPACE, ERR_CANT_OPEN_WORKSPACE_SERVEREXPLORER, ERR_CANT_PREPARE_UPDATE, ERR_CANT_PREPARE_WORKSPACE, ERR_CANT_REMOVE_CHANGES, ERR_CANT_REMOVE_ENTITY, ERR_CANT_RETRIEVE_ENTITIES, ERR_CANT_RETRIEVE_SOURCE_FEATURES, ERR_CANT_RETRIEVE_TOPOLOGYPLANS, ERR_CANT_RETRIEVE_USERS, ERR_CANT_REVERT, ERR_CANT_UPDATE, ERR_CANT_UPDATE_CLEAN, ERR_CANT_UPDATE_ENTITIES, ERR_DATA_RECORD_NOT_FOUND, ERR_DBFILE_IS_NULL, ERR_ENTITY_ALREADY_EXISTS, ERR_ENTITY_NOT_EXISTS, ERR_ENTITY_NOT_HAS_VCSGISCODE, ERR_EXCEPTION, ERR_INVALID_AUTHENTICATION_TOKEN, ERR_INVALID_DATA, ERR_INVALID_ENTITY, ERR_INVALID_PARAMETERS, ERR_INVALID_RECORDCODE, ERR_INVALID_REPOSITORY, ERR_INVALID_REVISION, ERR_INVALID_REVISION_FOR_ENTITY, ERR_INVALID_USERCODE, ERR_LABEL_IS_NULL, ERR_NO_ERROR, ERR_OFFLINE, ERR_OK, ERR_OPERATION_NOT_ALLOWED_WITH_LINKEDTABLE, ERR_REPOSITORY_URL_NOT_DEFINED, ERR_STORE_NOT_IN_VERSION_CONTROL, ERR_TABLE_IS_EDITING, ERR_TOO_MANY_REPOSITORIES, ERR_TOPOLOGYPLAN_OUTDATED, ERR_TOPOLOGYPLAN_REQUIRED, ERR_UPDATE_NEED_MERGE, ERR_USER_CANCELLED, ERR_USER_NOT_AUTHORIZED, ERR_WORKING_COPIES_FOLDER_NOT_DEFINED, ERR_WSEXPLORER_IS_NULL, FEATURECODE_FIELD_NAME, GUEST_USER_CODE, GUEST_USER_ID, OP_ADD_ENTITY, OP_DELETE, OP_IGNORE, OP_INSERT, OP_UNKNOWN, OP_UPDATE, STATE_CONFLICT, STATE_CORRUPT, STATE_DISCONNECTED, STATE_LOCAL_MODIFIED, STATE_LOCAL_NEW, STATE_LOCAL_OUTDATED, STATE_LOCAL_OUTDATED_AND_MODIFIED, STATE_LOCAL_UNMODIFIED, STATE_LOG, STATE_NOT_IN_LOCAL_OR_REPOSITORY, STATE_REPOSITORY_MODIFIED, STATE_REPOSITORY_NEW, STATE_UNKNOWN, STORESREPOSITORY_VCSGIS_LOCALURL, STORESREPOSITORY_VCSGIS_MODEL, TAG_VCSGIS_CATEGORY, TAG_VCSGIS_DATAMODEL, TAG_VCSGIS_FIELDFORLABEL, TAG_VCSGIS_LABEL, TAG_VCSGIS_RESOURCES, TAG_VCSGIS_TABLENAME, TOPOLOGYPLAN_MODE_MANDATORY, TOPOLOGYPLAN_MODE_RECOMMENDED, TOPOLOGYPLAN_NOTPASSED, TOPOLOGYPLAN_PASSED, TOPOLOGYPLAN_UNKNOWN, VCSGISCODELEN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToIdentityManager(VCSGisWorkspace workspace) voidclean()createServerController(VCSGisRepository repository) createTopologyPlanStatus(String topologyPlanCode, String hashCode, boolean passed) voidderegisterWorkspace(File dbfile) voidderegisterWorkspace(String workspaceCode) voidderegisterWorkspace(VCSGisWorkspace workspace) 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) getWorkspaceDescriptor(String code) static StringintinitRepository(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 wsfile, VCSGisRepository repo, String label, org.gvsig.tools.task.SimpleTaskStatus status) intinitWorkspace(org.gvsig.fmap.dal.store.jdbc2.JDBCServerExplorer wsexplorer, VCSGisRepository repository, String label, org.gvsig.tools.task.SimpleTaskStatus status) booleanisRepository(org.gvsig.fmap.dal.store.jdbc.JDBCServerExplorerParameters params) booleanbooleanbooleanisWorkspace(File dbfile) booleanisWorkspace(org.gvsig.fmap.dal.store.jdbc.JDBCServerExplorerParameters params) 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 wsexplorer) openWorkspace(org.gvsig.fmap.dal.store.jdbc2.JDBCServerExplorer wsexplorer, boolean useCache) 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) voidrestoreWorkspaces(Map<String, VCSGisWorkspaceDescriptor> descriptors) voidsetAuthenticateRequestFactory(org.gvsig.tools.util.Factory<VCSGisAuthenticateRequest> authenticateRequestFactory) voidsetCodeGenerator(VCSGisCodeGenerator generator) voidsetIdentityControllertFactory(org.gvsig.tools.util.Factory<VCSGisIdentityController> IdentityControllerFactory) voidsetUserIdentificationRequester(VCSGisUserIdentificationRequester userIdentificationRequester) voidsetWriterForProtocolDebugging(Writer writer)
-
Field Details
-
INTERNAL_WORKSPACE_TABLES
-
INTERNAL_REPOSITORY_TABLES
-
-
Constructor Details
-
VCSGisManagerImpl
public VCSGisManagerImpl()
-
-
Method Details
-
clean
public void clean()- Specified by:
cleanin interfaceVCSGisManager
-
getWorkspaces
- Specified by:
getWorkspacesin interfaceVCSGisManager
-
restoreWorkspaces
- Specified by:
restoreWorkspacesin interfaceVCSGisManager
-
initWorkspace
public int initWorkspace(File wsfile, VCSGisRepository repo, String label, org.gvsig.tools.task.SimpleTaskStatus status) - Specified by:
initWorkspacein interfaceVCSGisManager
-
initWorkspace
public int initWorkspace(org.gvsig.fmap.dal.store.jdbc2.JDBCServerExplorer wsexplorer, VCSGisRepository repository, String label, org.gvsig.tools.task.SimpleTaskStatus status) - Specified by:
initWorkspacein interfaceVCSGisManager
-
openWorkspace
- Specified by:
openWorkspacein interfaceVCSGisManager
-
openWorkspace
- Specified by:
openWorkspacein interfaceVCSGisManager
-
openWorkspace
public VCSGisWorkspace openWorkspace(org.gvsig.fmap.dal.store.jdbc2.JDBCServerExplorer wsexplorer, boolean useCache) -
openWorkspace
- Specified by:
openWorkspacein interfaceVCSGisManager
-
openWorkspace
public VCSGisWorkspace openWorkspace(org.gvsig.fmap.dal.store.jdbc2.JDBCServerExplorer wsexplorer, String label) - Specified by:
openWorkspacein interfaceVCSGisManager
-
registerWorkspace
- Specified by:
registerWorkspacein interfaceVCSGisManager
-
deregisterWorkspace
- Specified by:
deregisterWorkspacein interfaceVCSGisManager
-
deregisterWorkspace
- Specified by:
deregisterWorkspacein interfaceVCSGisManager
-
deregisterWorkspace
- Specified by:
deregisterWorkspacein interfaceVCSGisManager
-
getWorkspace
- Specified by:
getWorkspacein interfaceVCSGisManager
-
isRepository
public boolean isRepository(org.gvsig.fmap.dal.store.jdbc.JDBCServerExplorerParameters params) - Specified by:
isRepositoryin interfaceVCSGisManager
-
isWorkspace
public boolean isWorkspace(org.gvsig.fmap.dal.store.jdbc.JDBCServerExplorerParameters params) - Specified by:
isWorkspacein interfaceVCSGisManager
-
isWorkspace
- Specified by:
isWorkspacein interfaceVCSGisManager
-
hexId
-
getWorkspaceDescriptor
- Specified by:
getWorkspaceDescriptorin interfaceVCSGisManager
-
initRepository
public int initRepository(org.gvsig.fmap.dal.store.jdbc.JDBCServerExplorerParameters repositoryParameters, org.gvsig.tools.task.SimpleTaskStatus status) - Specified by:
initRepositoryin interfaceVCSGisManager
-
initRepository
public 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) - Specified by:
initRepositoryin interfaceVCSGisManager
-
openRepository
public VCSGisRepositoryLocaldbImpl openRepository(org.gvsig.fmap.dal.store.jdbc.JDBCServerExplorerParameters repositoryParameters) - Specified by:
openRepositoryin interfaceVCSGisManager
-
openRepository
- Specified by:
openRepositoryin interfaceVCSGisManager
-
openRepository
- Specified by:
openRepositoryin interfaceVCSGisManager
-
createServerController
- Specified by:
createServerControllerin interfaceVCSGisManager
-
setCodeGenerator
- Specified by:
setCodeGeneratorin interfaceVCSGisManager
-
getCodeGenerator
- Specified by:
getCodeGeneratorin interfaceVCSGisManager
-
getErrorMessage
- Specified by:
getErrorMessagein interfaceVCSGisManager
-
setUserIdentificationRequester
public void setUserIdentificationRequester(VCSGisUserIdentificationRequester userIdentificationRequester) - Specified by:
setUserIdentificationRequesterin interfaceVCSGisManager
-
getUserIdentificationRequester
- Specified by:
getUserIdentificationRequesterin interfaceVCSGisManager
-
setAuthenticateRequestFactory
public void setAuthenticateRequestFactory(org.gvsig.tools.util.Factory<VCSGisAuthenticateRequest> authenticateRequestFactory) - Specified by:
setAuthenticateRequestFactoryin interfaceVCSGisManager
-
getAuthenticateRequestFactory
- Specified by:
getAuthenticateRequestFactoryin interfaceVCSGisManager
-
setIdentityControllertFactory
public void setIdentityControllertFactory(org.gvsig.tools.util.Factory<VCSGisIdentityController> IdentityControllerFactory) - Specified by:
setIdentityControllertFactoryin interfaceVCSGisManager
-
getIdentityControllerFactory
- Specified by:
getIdentityControllerFactoryin interfaceVCSGisManager
-
createTopologyPlanStatus
public VCSGisTopologyPlanStatus createTopologyPlanStatus(String topologyPlanCode, String hashCode, boolean passed) - Specified by:
createTopologyPlanStatusin interfaceVCSGisManager
-
getServletClass
- Specified by:
getServletClassin interfaceVCSGisManager
-
getPreparedWorkingCopyInformation
- Specified by:
getPreparedWorkingCopyInformationin interfaceVCSGisManager
-
getPreparedWorkingCopyInformation
public List<VCSGisPreparedWorkingCopyInformation> getPreparedWorkingCopyInformation(org.gvsig.fmap.dal.store.jdbc.JDBCServerExplorerParameters repositoryParameters) - Specified by:
getPreparedWorkingCopyInformationin interfaceVCSGisManager
-
preparedWorkingCopy
public int preparedWorkingCopy(URL server, String name, String label, String categories, String username, String userpass) - Specified by:
preparedWorkingCopyin interfaceVCSGisManager
-
getEditingStores
public List<org.apache.commons.lang3.tuple.Pair<WeakReference<org.gvsig.fmap.dal.feature.FeatureStore>,Integer>> getEditingStores()- Specified by:
getEditingStoresin interfaceVCSGisManager
-
forceRemoveFromEditingStores
public void forceRemoveFromEditingStores(org.gvsig.fmap.dal.feature.FeatureStore store) - Specified by:
forceRemoveFromEditingStoresin interfaceVCSGisManager
-
isThereAnyStoreInEditing
public boolean isThereAnyStoreInEditing()- Specified by:
isThereAnyStoreInEditingin interfaceVCSGisManager
-
IsThereConflictingStoresInEdition
public boolean IsThereConflictingStoresInEdition()- Specified by:
IsThereConflictingStoresInEditionin interfaceVCSGisManager
-
setWriterForProtocolDebugging
- Specified by:
setWriterForProtocolDebuggingin interfaceVCSGisManager
-
getWriterForProtocolDebugging
- Specified by:
getWriterForProtocolDebuggingin interfaceVCSGisManager
-
addToIdentityManager
-