Class VCSGisRepositoryLocaldbImpl
java.lang.Object
org.gvsig.tools.dispose.impl.AbstractDisposable
org.gvsig.vcsgis.lib.repository.AbstractRepository
org.gvsig.vcsgis.lib.repository.localdb.VCSGisRepositoryLocaldbImpl
- All Implemented Interfaces:
org.gvsig.json.SupportFromJson,org.gvsig.json.SupportJson,org.gvsig.json.SupportToJson,org.gvsig.tools.dispose.Disposable,org.gvsig.tools.util.PropertiesSupport,VCSGisRepository,VCSGisRepositoryLocaldb
public class VCSGisRepositoryLocaldbImpl
extends AbstractRepository
implements VCSGisRepositoryLocaldb
- Author:
- gvSIG Team
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class org.gvsig.vcsgis.lib.repository.AbstractRepository
propertiesHelper, token, userCodeFields inherited from interface org.gvsig.vcsgis.lib.repository.VCSGisRepository
DATA_TABLE_BATCH_SIZE, NOTIFICATION_COMMAND, NOTIFICATION_COSA, NOTIFICATION_URL -
Constructor Summary
ConstructorsConstructorDescriptionVCSGisRepositoryLocaldbImpl(org.gvsig.fmap.dal.store.jdbc.JDBCServerExplorerParameters serverParameters, VCSGisCodeGenerator codeGenerator) -
Method Summary
Modifier and TypeMethodDescriptionstatic intcreate(org.gvsig.fmap.dal.store.jdbc.JDBCServerExplorerParameters serverParameters, VCSGisCodeGenerator codeGenerator, org.gvsig.crs.projection.lib.Projection crs, org.gvsig.fmap.geom.primitive.Envelope tablebbox, boolean indexGeometries, org.gvsig.tools.task.SimpleTaskStatus status) createAuthenticateRequest(String userName, String password) createCheckoutRequest(String entityName) createHistoryRequest(String entityName) createLogRequest(String entityName) createRevisionChangesRequest(String entityName) createRowCreateRequest(String entityName, String localRevisionCode) createRowDeleteRequest(String entityName, String localRevisionCode) createRowIsOutofdatedRequest(String entityName, String localRevisionCode, String recordCode) createRowUpdateRequest(String entityName, String localRevisionCode) createUpdateRequest(String entityName) booleandeleteEntity(String entityCodeOrName) protected voidvoidfromJson(javax.json.JsonObject json) org.apache.commons.lang3.tuple.Pair<String, VCSGisUser> getAuthenticationToken(String userid, String password, SupportError error) getCode()getConfigValue(String name) getConfigValues(String... names) org.gvsig.crs.projection.lib.ProjectiongetCRS()getDataRepoTable(String dataTableName) intgetEntityByName(String entityName) org.gvsig.fmap.dal.feature.FeatureStoregetFeatureStore(String tableName, boolean ignoreDalResource) org.apache.commons.lang3.tuple.Pair<String, VCSGisUser> booleangetLabel()org.gvsig.fmap.dal.store.jdbc2.JDBCServerExplorerorg.gvsig.fmap.dal.SQLBuilderlonggetUserByCode(String userCode) getUserByName(String userName) booleanintisAuthenticated(String userid, String authenticationToken, String operation, SupportError error) booleanisAuthenticated(VCSGisRequest request) booleanbooleanintisAuthorized(String userid, String authenticationToken, String operation, SupportError error) booleanisAuthorized(VCSGisRequest request) booleanisAuthorized(VCSGisRequest request, String operation) voidnotifyWatchers(VCSGisRequest request) voidnotifyWatchers(VCSGisRequest request, String tableName, String revisionCode) org.gvsig.fmap.dal.feature.FeatureStoreopenFeatureStore(String tableName, boolean ignoreDalResource) org.gvsig.fmap.dal.feature.FeatureStoreopenFeatureStore(String tableName, String sql, boolean ignoreDalResource) org.gvsig.fmap.dal.feature.FeatureStoreopenFeatureStore(String tableName, String sql, int batchSize, boolean ignoreDalResource) static voidvoidsetAllowAssignTheRevisionDate(boolean allowAssignTheRevisionDate) voidsetConfigValue(String name, String value) voidsetDataTableBatchSize(int dataTableBatchSize) voidsetWatchersNotifier(HooksRepoTable.WatchersNotifier watchersNotifier) org.gvsig.json.JsonObjectBuildervoidupdateFeatureTypeOfEntity(String entity, org.gvsig.fmap.dal.feature.FeatureType featureType) Methods inherited from class org.gvsig.vcsgis.lib.repository.AbstractRepository
addObserver, authenticate, execute, getAuthenticationToken, getProperties, getProperty, getUserCode, setAuthenticationToken, setProperty, setUserCode, toJsonMethods inherited from class org.gvsig.tools.dispose.impl.AbstractDisposable
dispose, disposeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gvsig.tools.dispose.Disposable
disposeMethods inherited from interface org.gvsig.tools.util.PropertiesSupport
getProperties, getProperty, setPropertyMethods inherited from interface org.gvsig.json.SupportToJson
toJson, toJson, toJsonBuilderMethods inherited from interface org.gvsig.vcsgis.lib.repository.VCSGisRepository
addObserver, authenticate, execute, getAuthenticationToken, getUserCode, setAuthenticationToken, setUserCode
-
Field Details
-
CONFIG_REPOSITORY_CODE_NAME
- See Also:
-
CONFIG_AUTHENTICATION_NAME
- See Also:
-
CONFIG_AUTHORIZATION_NAME
- See Also:
-
CONFIG_PREPARED_WORKING_COPIES_FOLDER_NAME
- See Also:
-
CONFIG_REPOSITORY_URL_NAME
- See Also:
-
CONFIG_TRUSTED_CLIENT_IP_NAME
- See Also:
-
CONFIG_REPOSITORY_CRS
- See Also:
-
CONFIG_TIMEOUT_FOR_RECEIVE_ELEMENTS
- See Also:
-
CONFIG_CHECKOUT_ALGORITHM
- See Also:
-
CONFIG_INDEX_GEOMETRIES
- See Also:
-
CONFIG_IDENTITY_CONTROLLER
- See Also:
-
CONFIG_CHECKOUT_WITH_REVNUMBER
- See Also:
-
buildBox2D_traces
-
-
Constructor Details
-
VCSGisRepositoryLocaldbImpl
public VCSGisRepositoryLocaldbImpl() -
VCSGisRepositoryLocaldbImpl
public VCSGisRepositoryLocaldbImpl(org.gvsig.fmap.dal.store.jdbc.JDBCServerExplorerParameters serverParameters, VCSGisCodeGenerator codeGenerator)
-
-
Method Details
-
create
public static int create(org.gvsig.fmap.dal.store.jdbc.JDBCServerExplorerParameters serverParameters, VCSGisCodeGenerator codeGenerator, org.gvsig.crs.projection.lib.Projection crs, org.gvsig.fmap.geom.primitive.Envelope tablebbox, boolean indexGeometries, org.gvsig.tools.task.SimpleTaskStatus status) -
getConfigValues
- Specified by:
getConfigValuesin interfaceVCSGisRepositoryLocaldb
-
getConfigValue
- Specified by:
getConfigValuein interfaceVCSGisRepositoryLocaldb
-
setConfigValue
- Specified by:
setConfigValuein interfaceVCSGisRepositoryLocaldb
-
doDispose
protected void doDispose()- Specified by:
doDisposein classorg.gvsig.tools.dispose.impl.AbstractDisposable
-
getLabel
- Specified by:
getLabelin interfaceVCSGisRepository- Overrides:
getLabelin classAbstractRepository
-
createUniqueCode
- Specified by:
createUniqueCodein interfaceVCSGisRepository- Overrides:
createUniqueCodein classAbstractRepository
-
getServerExplorer
public org.gvsig.fmap.dal.store.jdbc2.JDBCServerExplorer getServerExplorer()- Specified by:
getServerExplorerin interfaceVCSGisRepositoryLocaldb
-
selfRegister
public static void selfRegister() -
createCommitRequest
- Specified by:
createCommitRequestin interfaceVCSGisRepository
-
createUpdateRequest
- Specified by:
createUpdateRequestin interfaceVCSGisRepository
-
createCheckoutRequest
- Specified by:
createCheckoutRequestin interfaceVCSGisRepository
-
fromJson
public void fromJson(javax.json.JsonObject json) - Specified by:
fromJsonin interfaceorg.gvsig.json.SupportFromJson
-
toJsonBuilder
public org.gvsig.json.JsonObjectBuilder toJsonBuilder()- Specified by:
toJsonBuilderin interfaceorg.gvsig.json.SupportToJson
-
getFeatureStore
public org.gvsig.fmap.dal.feature.FeatureStore getFeatureStore(String tableName, boolean ignoreDalResource) - Specified by:
getFeatureStorein interfaceVCSGisRepositoryLocaldb
-
openFeatureStore
public org.gvsig.fmap.dal.feature.FeatureStore openFeatureStore(String tableName, boolean ignoreDalResource) -
openFeatureStore
-
openFeatureStore
-
createEntitiesRequest
- Specified by:
createEntitiesRequestin interfaceVCSGisRepository
-
createListWCRequest
- Specified by:
createListWCRequestin interfaceVCSGisRepository
-
createHistoryRequest
- Specified by:
createHistoryRequestin interfaceVCSGisRepository
-
getEntityByName
- Specified by:
getEntityByNamein interfaceVCSGisRepository
-
createRowCreateRequest
- Specified by:
createRowCreateRequestin interfaceVCSGisRepository
-
createRowDeleteRequest
- Specified by:
createRowDeleteRequestin interfaceVCSGisRepository
-
createRowUpdateRequest
- Specified by:
createRowUpdateRequestin interfaceVCSGisRepository
-
createTopologyPlansRequest
- Specified by:
createTopologyPlansRequestin interfaceVCSGisRepository
-
createUsersRequest
- Specified by:
createUsersRequestin interfaceVCSGisRepository
-
notifyWatchers
-
notifyWatchers
-
isAllowedToAssignTheRevisionDate
public boolean isAllowedToAssignTheRevisionDate() -
setAllowAssignTheRevisionDate
public void setAllowAssignTheRevisionDate(boolean allowAssignTheRevisionDate) -
getUserByCode
- Specified by:
getUserByCodein interfaceVCSGisRepositoryLocaldb
-
getUserByName
- Specified by:
getUserByNamein interfaceVCSGisRepositoryLocaldb
-
getAuthenticationToken
public org.apache.commons.lang3.tuple.Pair<String,VCSGisUser> getAuthenticationToken(String userid, String password, SupportError error) -
getGuestAuthenticationToken
-
isAuthenticationRequired
public boolean isAuthenticationRequired()- Specified by:
isAuthenticationRequiredin interfaceVCSGisRepositoryLocaldb
-
isAuthorizationRequired
public boolean isAuthorizationRequired()- Specified by:
isAuthorizationRequiredin interfaceVCSGisRepositoryLocaldb
-
isAuthenticated
public int isAuthenticated(String userid, String authenticationToken, String operation, SupportError error) -
isAuthorized
public int isAuthorized(String userid, String authenticationToken, String operation, SupportError error) -
isAuthenticated
-
isAuthorized
-
isAuthorized
-
createAuthenticateRequest
- Specified by:
createAuthenticateRequestin interfaceVCSGisRepository
-
getDataTableBatchSize
public int getDataTableBatchSize()- Specified by:
getDataTableBatchSizein interfaceVCSGisRepository- Overrides:
getDataTableBatchSizein classAbstractRepository
-
createRowIsOutofdatedRequest
public VCSGisRowIsOutofdateRequest createRowIsOutofdatedRequest(String entityName, String localRevisionCode, String recordCode) - Specified by:
createRowIsOutofdatedRequestin interfaceVCSGisRepository
-
createPrepareWCRequest
- Specified by:
createPrepareWCRequestin interfaceVCSGisRepository
-
createRevisionChangesRequest
- Specified by:
createRevisionChangesRequestin interfaceVCSGisRepository
-
createLogRequest
- Specified by:
createLogRequestin interfaceVCSGisRepository
-
getWorkingCopiesFolder
-
getCRS
public org.gvsig.crs.projection.lib.Projection getCRS()- Specified by:
getCRSin interfaceVCSGisRepositoryLocaldb
-
getDataRepoTable
-
getTimeoutForReceiveElements
public long getTimeoutForReceiveElements()- Specified by:
getTimeoutForReceiveElementsin interfaceVCSGisRepository
-
setDataTableBatchSize
public void setDataTableBatchSize(int dataTableBatchSize) -
sqldebug
- Throws:
SQLException
-
getIndexGeometries
public boolean getIndexGeometries()- Specified by:
getIndexGeometriesin interfaceVCSGisRepositoryLocaldb
-
getSQLBuilder
public org.gvsig.fmap.dal.SQLBuilder getSQLBuilder() -
updateFeatureTypeOfEntity
public void updateFeatureTypeOfEntity(String entity, org.gvsig.fmap.dal.feature.FeatureType featureType) - Specified by:
updateFeatureTypeOfEntityin interfaceVCSGisRepositoryLocaldb
-
deleteEntity
- Specified by:
deleteEntityin interfaceVCSGisRepositoryLocaldb
-
setWatchersNotifier
-
getCode
- Specified by:
getCodein interfaceVCSGisRepository
-