Class RemoteSchemaLoader
- java.lang.Object
-
- org.opends.guitools.controlpanel.util.SchemaLoader
-
- org.opends.guitools.controlpanel.util.RemoteSchemaLoader
-
public class RemoteSchemaLoader extends SchemaLoader
Class used to retrieve the schema from the schema files.
-
-
Field Summary
-
Fields inherited from class org.opends.guitools.controlpanel.util.SchemaLoader
matchingRulesToKeep, syntaxesToKeep
-
-
Constructor Summary
Constructors Constructor Description RemoteSchemaLoader()In remote mode we cannot load the matching rules and syntaxes from local configuration, so we should instead bootstrap them from the SDK's core schema.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SchemagetSchema()Returns the schema that was read.SchemareadSchema(ConnectionWrapper connWrapper)Reads and returns the schema.-
Methods inherited from class org.opends.guitools.controlpanel.util.SchemaLoader
getBaseSchema, readSchema
-
-
-
-
Method Detail
-
readSchema
public Schema readSchema(ConnectionWrapper connWrapper) throws LdapException, DirectoryException, InitializationException, ConfigException
Reads and returns the schema.- Parameters:
connWrapper- the connection to be used to load the schema.- Returns:
- the schema
- Throws:
LdapException- if an error occurs reading the schema.DirectoryException- if an error occurs parsing the schema.InitializationException- if an error occurs finding the base schema.ConfigException- if an error occurs loading the configuration required to use the schema classes.
-
getSchema
public Schema getSchema()
Returns the schema that was read.- Overrides:
getSchemain classSchemaLoader- Returns:
- the schema that was read.
-
-