public final class JMapServerSystemData
extends java.lang.Object
implements java.io.Serializable
Serializable
.Constructor and Description |
---|
JMapServerSystemData(User administrator)
Creates a new JMapServerSystemData using the specified User as the new JMap Server Acl administrator.
|
Modifier and Type | Method and Description |
---|---|
ConnectionPoolInfo |
getConnectionPool(int poolId)
Verifies if the poolInfo exists in the DatabaseConnectionPool, if it
does it returns the DatabaseConnectionPoolInfo.
|
ConnectionPoolInfo |
getConnectionPool(java.lang.String name)
Verifies if the poolInfo exists in the DatabaseConnectionPool, if it
does it returns the DatabaseConnectionPoolInfo.
|
DatabaseConnectionPoolInfo |
getDatabaseConnectionPool(int poolId) |
DatabaseConnectionPoolInfo |
getDatabaseConnectionPool(java.lang.String name) |
java.lang.String |
getDatabaseConnectionPoolLastStackTrace(int poolId) |
java.util.Collection<DatabaseConnectionPoolInfo> |
getDatabaseConnectionPools()
Returns an unmodifiable collection that contains all database connection pools configured in the system database.
|
java.lang.String |
getLayerLastStackTrace(int projectId,
int layerId) |
int |
getLayerStatus(int projectId,
int layerId) |
MetadataTemplate |
getMetadataTemplate(int templateId) |
MetadataTemplate |
getMetadataTemplate(java.lang.String name) |
java.util.Collection<MetadataTemplate> |
getMetadataTemplates()
Returns an unmodifiable collection that contains all metadata templates configured in the system database.
|
JMapServerProject |
getProject(int projectId)
Returns the JMapServerProject object whose id is equals to the specified id.
|
JMapServerProject |
getProject(java.lang.String name)
Returns the JMapServerProject object whose name equals to the specified name.
|
java.util.Map<java.lang.Integer,java.util.List<java.lang.Integer>> |
getProjectLayers(int dsId) |
java.util.Collection<JMapServerProject> |
getProjects()
Returns an unmodifiable collection that contains all projects configured in the system database.
|
java.util.Collection<java.lang.Integer> |
getProjectsIds() |
java.lang.String |
getRemoteConnectionLastStackTrace(int poolId) |
JMapServerRemoteConnectionPoolInfo |
getRemoteConnectionPool(int poolId) |
JMapServerRemoteConnectionPoolInfo |
getRemoteConnectionPool(java.lang.String name) |
java.util.Collection<JMapServerRemoteConnectionPoolInfo> |
getRemoteConnectionPools()
Returns an unmodifiable collection that contains all database connection pools configured in the system database.
|
int |
getRemoteConnectionStatus(int poolId) |
java.util.Collection<ReservedSessionsInfo> |
getReservedSessions(SessionType sessionType)
Returns an unmodifiable collection that contains all reserved users configured for a specific session type in the system database.
|
ReservedSessionsInfo |
getReservedSessions(SessionType sessionType,
java.lang.String username) |
SdeConnectionPoolInfo |
getSdeConnectionPool(int poolId) |
SdeConnectionPoolInfo |
getSdeConnectionPool(java.lang.String name) |
java.util.Collection<SdeConnectionPoolInfo> |
getSdeConnectionPools()
Returns an unmodifiable collection that contains all SDE database connection pools configured in the system database.
|
SpatialDataSourceInfo |
getSpatialDataSource(IdentifierType identifierType,
java.lang.Object identifier) |
SpatialDataSourceInfo |
getSpatialDataSource(int dsId)
Returns the SpatialDataSourceInfo object whose id is equals to the specified dataSourceId.
|
SpatialDataSourceInfo |
getSpatialDataSource(java.lang.String name)
Returns the SpatialDataSourceInfo object whose name is equals to the specified name.
|
java.lang.String |
getSpatialDataSourceLastStackTrace(int dsId) |
java.util.Collection<SpatialDataSourceInfo> |
getSpatialDataSources()
Returns an unmodifiable collection that contains all spatial data sources configured in the system database.
|
java.util.Collection<java.lang.Integer> |
getSpatialDataSourcesIds() |
int |
getSpatialDataSourceStatus(int dsId) |
StyleTemplate |
getStyleTemplate(int styleId) |
StyleTemplate |
getStyleTemplate(java.lang.String name) |
java.util.Collection<StyleTemplate> |
getStyleTemplates()
Returns an unmodifiable collection that contains all style templates configured in the system database.
|
boolean |
isProjectExists(int projectId) |
boolean |
isSpatialDataSourceExists(int dsId) |
boolean |
savePartialDatabaseConnectionPool(PersistenceDelegate<DatabaseConnectionPoolInfo> persistenceDelegate) |
boolean |
savePartialMetadataTemplate(PersistenceDelegate<MetadataTemplate> persistenceDelegate) |
boolean |
savePartialProject(PersistenceDelegate<JMapServerProject> persistenceDelegate) |
boolean |
savePartialRemoteConnectionPool(PersistenceDelegate<JMapServerRemoteConnectionPoolInfo> persistenceDelegate) |
boolean |
savePartialStyleTemplate(PersistenceDelegate<StyleTemplate> persistenceDelegate) |
java.lang.String |
toString() |
protected static void |
updateInfoRequests(JMapServerInfoReport[] infoRequests)
Updates all AttributeQuery objects that are configured to use the
spatial data source having the specified id.
|
public JMapServerSystemData(User administrator)
administrator
- the administrator of the new JMap Server Acl object.public SpatialDataSourceInfo getSpatialDataSource(int dsId)
dsId
- the id of the SpatialDataSourceInfo object to return.null
if none was found.public java.lang.String getDatabaseConnectionPoolLastStackTrace(int poolId)
public java.lang.String getRemoteConnectionLastStackTrace(int poolId)
public int getRemoteConnectionStatus(int poolId)
public int getSpatialDataSourceStatus(int dsId)
public java.lang.String getSpatialDataSourceLastStackTrace(int dsId)
public int getLayerStatus(int projectId, int layerId)
public java.lang.String getLayerLastStackTrace(int projectId, int layerId)
public boolean isSpatialDataSourceExists(int dsId)
public boolean isProjectExists(int projectId)
public java.util.Map<java.lang.Integer,java.util.List<java.lang.Integer>> getProjectLayers(int dsId)
public SpatialDataSourceInfo getSpatialDataSource(java.lang.String name)
name
- the name of the SpatialDataSourceInfo object to return.null
if
none was found.public SpatialDataSourceInfo getSpatialDataSource(IdentifierType identifierType, java.lang.Object identifier)
public StyleTemplate getStyleTemplate(int styleId)
public StyleTemplate getStyleTemplate(java.lang.String name)
public MetadataTemplate getMetadataTemplate(int templateId)
public MetadataTemplate getMetadataTemplate(java.lang.String name)
public DatabaseConnectionPoolInfo getDatabaseConnectionPool(int poolId)
public DatabaseConnectionPoolInfo getDatabaseConnectionPool(java.lang.String name)
public SdeConnectionPoolInfo getSdeConnectionPool(int poolId)
public SdeConnectionPoolInfo getSdeConnectionPool(java.lang.String name)
public ConnectionPoolInfo getConnectionPool(int poolId)
poolId
- id of the ConnectionPoolInfopublic ConnectionPoolInfo getConnectionPool(java.lang.String name)
name
- name of the ConnectionPoolInfopublic JMapServerProject getProject(int projectId)
projectId
- the id of the JMapServerProject object to return.null
if
none was found.public JMapServerProject getProject(java.lang.String name)
name
- the name of the JMapServerProject object to return.null
if
none was found.public java.util.Collection<SpatialDataSourceInfo> getSpatialDataSources()
public java.util.Collection<java.lang.Integer> getSpatialDataSourcesIds()
public java.util.Collection<JMapServerProject> getProjects()
public java.util.Collection<java.lang.Integer> getProjectsIds()
public java.util.Collection<StyleTemplate> getStyleTemplates()
public java.util.Collection<MetadataTemplate> getMetadataTemplates()
public java.util.Collection<DatabaseConnectionPoolInfo> getDatabaseConnectionPools()
public java.util.Collection<SdeConnectionPoolInfo> getSdeConnectionPools()
public java.util.Collection<JMapServerRemoteConnectionPoolInfo> getRemoteConnectionPools()
public ReservedSessionsInfo getReservedSessions(SessionType sessionType, java.lang.String username)
public java.util.Collection<ReservedSessionsInfo> getReservedSessions(SessionType sessionType)
public JMapServerRemoteConnectionPoolInfo getRemoteConnectionPool(int poolId)
public JMapServerRemoteConnectionPoolInfo getRemoteConnectionPool(java.lang.String name)
public boolean savePartialDatabaseConnectionPool(PersistenceDelegate<DatabaseConnectionPoolInfo> persistenceDelegate)
public boolean savePartialProject(PersistenceDelegate<JMapServerProject> persistenceDelegate)
public boolean savePartialStyleTemplate(PersistenceDelegate<StyleTemplate> persistenceDelegate)
public boolean savePartialMetadataTemplate(PersistenceDelegate<MetadataTemplate> persistenceDelegate)
public boolean savePartialRemoteConnectionPool(PersistenceDelegate<JMapServerRemoteConnectionPoolInfo> persistenceDelegate)
public java.lang.String toString()
toString
in class java.lang.Object
protected static void updateInfoRequests(JMapServerInfoReport[] infoRequests)