Class DefaultSchema

    • Constructor Detail

      • DefaultSchema

        public DefaultSchema​(SchemaLoader schemaLoader,
                             String name)
        Creates a new instance of DefaultSchema.
        Parameters:
        schemaLoader - The ShcemaLoader to use
        name - The schema's name
      • DefaultSchema

        public DefaultSchema​(SchemaLoader schemaLoader,
                             String name,
                             String owner)
        Creates a new instance of DefaultSchema.
        Parameters:
        schemaLoader - The ShcemaLoader to use
        name - The schema's name
        owner - the schema's owner
      • DefaultSchema

        public DefaultSchema​(SchemaLoader schemaLoader,
                             String name,
                             String owner,
                             String[] dependencies)
        Creates a new instance of DefaultSchema.
        Parameters:
        schemaLoader - The ShcemaLoader to use
        name - The schema's name
        owner - the schema's owner
        dependencies - The list of schemas it depends on
      • DefaultSchema

        public DefaultSchema​(SchemaLoader schemaLoader,
                             String name,
                             String owner,
                             String[] dependencies,
                             boolean disabled)
        Creates a new instance of DefaultSchema.
        Parameters:
        schemaLoader - The ShcemaLoader to use
        name - The schema's name
        owner - the schema's owner
        dependencies - The list of schemas it depends on
        disabled - Set the status for this schema
    • Method Detail

      • getDependencies

        public String[] getDependencies()
        Gets the names of other schemas that the objects within this Schema depends upon.
        Specified by:
        getDependencies in interface Schema
        Returns:
        the String names of schema dependencies
      • addDependencies

        public void addDependencies​(String... dependenciesToAdd)
        Add a set of dependencies this schema uses.
        Specified by:
        addDependencies in interface Schema
        Parameters:
        dependenciesToAdd - The dependencies to add
      • getOwner

        public String getOwner()
        Gets the name of the owner of the schema objects within this Schema.
        Specified by:
        getOwner in interface Schema
        Returns:
        the identifier for the owner of this set's objects
      • getSchemaName

        public 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.
        Specified by:
        getSchemaName in interface Schema
        Returns:
        the name of the logical schema
      • isDisabled

        public boolean isDisabled()
        Checks whether or not this schema is enabled or disabled.
        Specified by:
        isDisabled in interface Schema
        Returns:
        true if this schema is disabled, false otherwise
      • isEnabled

        public boolean isEnabled()
        Checks whether or not this schema is enabled or disabled.
        Specified by:
        isEnabled in interface Schema
        Returns:
        true if this schema is enabled, false otherwise
      • enable

        public void enable()
        Enable the schema
        Specified by:
        enable in interface Schema