Interface Schema
- All Known Implementing Classes:
DefaultSchema
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddDependencies(String... dependencies) Add a set of dependencies this schema uses.voiddisable()Disable the schemavoidenable()Enable the schemaGets the set of SchemaObject elements declared in this schemaString[]Gets the names of other schemas that the objects within this Schema depends upon.getOwner()Gets the name of the owner of the schema objects within this Schema.Gets the SchemaLoader this Schema has to be loaded withGets the name of the logical schema the objects of this Schema belong to: e.g. krb5-kdc may be the logical LDAP schema name.booleanChecks whether or not this schema is enabled or disabled.booleanChecks whether or not this schema is enabled or disabled.
-
Method Details
-
isDisabled
boolean isDisabled()Checks whether or not this schema is enabled or disabled.- Returns:
- true if this schema is disabled, false otherwise
-
disable
void disable()Disable the schema -
isEnabled
boolean isEnabled()Checks whether or not this schema is enabled or disabled.- Returns:
- true if this schema is enabled, false otherwise
-
enable
void enable()Enable the schema -
getOwner
String getOwner()Gets the name of the owner of the schema objects within this Schema.- Returns:
- the identifier for the owner of this set's objects
-
getSchemaName
String getSchemaName()Gets the name of the logical schema the objects of this Schema belong to: e.g. krb5-kdc may be the logical LDAP schema name.- Returns:
- the name of the logical schema
-
getDependencies
String[] getDependencies()Gets the names of other schemas that the objects within this Schema depends upon.- Returns:
- the String names of schema dependencies
-
addDependencies
Add a set of dependencies this schema uses.- Parameters:
dependencies- The dependencies to add
-
getContent
Set<SchemaObjectWrapper> getContent()Gets the set of SchemaObject elements declared in this schema- Returns:
- The Set of associated SchemaObjects
-
getSchemaLoader
SchemaLoader getSchemaLoader()Gets the SchemaLoader this Schema has to be loaded with- Returns:
- The SchemaLoader in use
-