public class JDBCWorkspaceIOService extends JDBCAbstractIOService implements NFEWorkspaceIOService
Constructor and Description |
---|
JDBCWorkspaceIOService(NFEIOServiceProvider serviceProvider) |
Modifier and Type | Method and Description |
---|---|
void |
disableAllVersioning()
Disables the versioning for the model general tables and feature layers tables.
|
void |
disableVersioningForFeatureLayers(java.util.List<NFEFeatureLayer> featureLayersToVersionList)
Disables the versioning for the feature layers table: feature table, relation table and hierarchy table.
|
void |
disableVersioningForGeneralTables()
Disables the versioning for the model general tables: RULE_INSTANCE, FT_RULE_REL, FT_CLASS_REL and network tables (links and nodes).
|
void |
enableAllVersioning()
Enables the versioning for the model general tables and feature layers tables.
|
void |
enableVersioningForFeatureLayers(java.util.List<NFEFeatureLayer> featureLayersToVersionList)
Enables versioning for the feature layers table: feature table, relation table and hierarchy table.
|
void |
enableVersioningForGeneralTables()
Enables versioning for the model general tables: RULE_INSTANCE, FT_RULE_REL, FT_CLASS_REL and network tables (links and nodes).
|
java.util.List<NFEWorkspace> |
getModelWorkspaces(long modelId)
Returns the workspaces and the data related to the workspaces work area for the specified model.
|
java.lang.String |
getParentWorkspace(java.lang.String workspaceName)
Gets the parent workspace of the specified workspace.
|
NFEConflictsDescriptor |
getWorkspaceConflicts(java.lang.String childWorkspace, java.lang.String parentWorkspace)
Returns the workspace conflicts.
|
void |
mergeWorkspace(java.lang.String workspaceName, java.lang.String parentWorkspace, boolean refreshLinkGeometries)
Merges child and parent workspaces.
|
void |
removeWorkspace(java.lang.String workspace)
Removes the workspace and the related record in the model workspace relationship table USER_SDO_NFE_MODEL_WORKSPACE.
|
void |
resolveConflicts(java.util.List<FeatureAttributeDescriptor> featureAttributeDescriptorList, java.lang.String childWorkspace, java.lang.String parentWorkspace, java.lang.String choosenWorkspace)
This function resolves workspace conflicts for the specified attributes by using the attributes values in the parent or child workspace as specified in the chosen workspace parameter.
|
void |
saveWorkspace(java.lang.String parentWorkspace, NFEWorkspace nfeWorkspace)
Saves the workspace and create a record in the model workspace relationship table USER_SDO_NFE_MODEL_WORKSPACE.
|
void |
updateVersioning(boolean isVersionable)
Updates the column USER_SDO_NFE_MODEL_METADATA.VERSIONABLE_IND with the value isVersionable.
|
void |
updateWorkspace(NFEWorkspace nfeWorkspace)
Updates the workspace related record in the table USER_SDO_NFE_MODEL_WORKSPACE with the data in the object NFEWorkspace.
|
getDataSource, getModel, getServiceProvider, setDataSource, setModel
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDataSource, getModel, getServiceProvider, setDataSource, setModel
public JDBCWorkspaceIOService(NFEIOServiceProvider serviceProvider)
public void enableVersioningForFeatureLayers(java.util.List<NFEFeatureLayer> featureLayersToVersionList) throws NFEIOException
NFEWorkspaceIOService
enableVersioningForFeatureLayers
in interface NFEWorkspaceIOService
featureLayersToVersionList
- feature layersNFEIOException
- if an NFE error occurs.public void enableVersioningForGeneralTables() throws NFEIOException
NFEWorkspaceIOService
enableVersioningForGeneralTables
in interface NFEWorkspaceIOService
NFEIOException
- if an NFE error occurs.public void enableAllVersioning() throws NFEIOException
NFEWorkspaceIOService
enableAllVersioning
in interface NFEWorkspaceIOService
NFEIOException
- if an NFE error occurs.public void disableVersioningForFeatureLayers(java.util.List<NFEFeatureLayer> featureLayersToVersionList) throws NFEIOException
NFEWorkspaceIOService
disableVersioningForFeatureLayers
in interface NFEWorkspaceIOService
featureLayersToVersionList
- feature layersNFEIOException
- if an NFE error occurs.public void disableVersioningForGeneralTables() throws NFEIOException
NFEWorkspaceIOService
disableVersioningForGeneralTables
in interface NFEWorkspaceIOService
NFEIOException
- if an NFE error occurs.public void disableAllVersioning() throws NFEIOException
NFEWorkspaceIOService
disableAllVersioning
in interface NFEWorkspaceIOService
NFEIOException
- if an NFE error occurs.public void mergeWorkspace(java.lang.String workspaceName, java.lang.String parentWorkspace, boolean refreshLinkGeometries) throws NFEIOException
NFEWorkspaceIOService
mergeWorkspace
in interface NFEWorkspaceIOService
workspaceName
- child workspace to mergeparentWorkspace
- parent workspace to mergerefreshLinkGeometries
- if true refresh the modified link geometries to ensure that the start and end of the link are the same than the start and end node geometries of the link.NFEIOException
- if an NFE error occurs.public void resolveConflicts(java.util.List<FeatureAttributeDescriptor> featureAttributeDescriptorList, java.lang.String childWorkspace, java.lang.String parentWorkspace, java.lang.String choosenWorkspace) throws NFEIOException
NFEWorkspaceIOService
resolveConflicts
in interface NFEWorkspaceIOService
featureAttributeDescriptorList
- the conflicts involving the attributes in the list will resolvedchildWorkspace
- child workspaceparentWorkspace
- parent workspacechoosenWorkspace
- chosen workspaceNFEIOException
- if an NFE error occurs.public java.lang.String getParentWorkspace(java.lang.String workspaceName) throws NFEIOException
NFEWorkspaceIOService
getParentWorkspace
in interface NFEWorkspaceIOService
workspaceName
- workspaceNFEIOException
- if an NFE error occurs.public NFEConflictsDescriptor getWorkspaceConflicts(java.lang.String childWorkspace, java.lang.String parentWorkspace) throws NFEIOException
NFEWorkspaceIOService
getWorkspaceConflicts
in interface NFEWorkspaceIOService
childWorkspace
- child workspaceparentWorkspace
- parent workspaceNFEIOException
- if an NFE error occurs.public java.util.List<NFEWorkspace> getModelWorkspaces(long modelId) throws NFEIOException
NFEWorkspaceIOService
getModelWorkspaces
in interface NFEWorkspaceIOService
modelId
- model identifierNFEIOException
- if an NFE error occurs.public void updateVersioning(boolean isVersionable) throws NFEIOException
NFEWorkspaceIOService
updateVersioning
in interface NFEWorkspaceIOService
isVersionable
- true if the model is versionable, false otherwiseNFEIOException
- if an NFE error occurs.public void saveWorkspace(java.lang.String parentWorkspace, NFEWorkspace nfeWorkspace) throws NFEIOException
NFEWorkspaceIOService
saveWorkspace
in interface NFEWorkspaceIOService
parentWorkspace
- parent workspace of the saved workspacenfeWorkspace
- workspace dataNFEIOException
- if an NFE error occurs.public void removeWorkspace(java.lang.String workspace) throws NFEIOException
NFEWorkspaceIOService
removeWorkspace
in interface NFEWorkspaceIOService
workspace
- workspace to removeNFEIOException
- if an NFE error occurs.public void updateWorkspace(NFEWorkspace nfeWorkspace) throws NFEIOException
NFEWorkspaceIOService
updateWorkspace
in interface NFEWorkspaceIOService
nfeWorkspace
- workspace dataNFEIOException
- if an NFE error occurs.