|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SchemaObject
Most schema objects have some common attributes. This class
contains the minimum set of properties exposed by a SchemaObject.
We have 11 types of SchemaObjects :
| Method Summary | |
|---|---|
void |
addExtension(String key,
List<String> values)
Add an extension with its values |
void |
addExtension(String key,
String... values)
Add an extension with its values |
void |
addName(String... names)
Add a new name to the list of names for this SchemaObject. |
void |
clear()
Clear the current SchemaObject : remove all the references to other objects, and all the Maps. |
SchemaObject |
copy()
Copy the current SchemaObject on place |
SchemaObject |
copy(SchemaObject original)
Copies the given schema object into this schema object. |
boolean |
equals(Object o1)
|
String |
getDescription()
Gets a short description about this SchemaObject. |
Map<String,List<String>> |
getExtensions()
|
String |
getName()
Gets the first name in the set of short names for this SchemaObject if any exists for it. |
List<String> |
getNames()
Gets short names for this SchemaObject if any exists for it, otherwise, returns an empty list. |
SchemaObjectType |
getObjectType()
The SchemaObject type : AttributeType DitCOntentRule DitStructureRule LdapComparator (specific to ADS) LdapSyntaxe MatchingRule MatchingRuleUse NameForm Normalizer (specific to ADS) ObjectClass SyntaxChecker (specific to ADS) |
String |
getOid()
Gets usually what is the numeric object identifier assigned to this SchemaObject. |
String |
getSchemaName()
Gets the name of the schema this SchemaObject is associated with. |
String |
getSpecification()
Gets the SchemaObject specification. |
int |
hashCode()
|
boolean |
isDisabled()
Tells if this SchemaObject is disabled. |
boolean |
isEnabled()
Tells if this SchemaObject is enabled. |
boolean |
isObsolete()
Gets whether or not this SchemaObject has been inactivated. |
boolean |
isReadOnly()
Tells if this SchemaObject is ReadOnly. |
void |
lock()
Transform the SchemaObject to an immutable object TODO locked. |
void |
setDescription(String description)
Sets the SchemaObject's description |
void |
setEnabled(boolean enabled)
Sets the SchemaObject state, either enabled or disabled. |
void |
setExtensions(Map<String,List<String>> extensions)
Add an extensions with their values. |
void |
setNames(List<String> names)
Sets the list of names for this SchemaObject. |
void |
setObsolete(boolean obsolete)
Sets the Obsolete flag. |
void |
setOid(String oid)
A special method used when renaming an SchemaObject: we may have to change it's OID |
void |
setReadOnly(boolean isReadOnly)
Sets the SchemaObject readOnly flag |
void |
setSchemaName(String schemaName)
Sets the name of the schema this SchemaObject is associated with. |
void |
setSpecification(String specification)
Sets the SchemaObject's specification |
| Method Detail |
|---|
String getOid()
void setOid(String oid)
oid - The new OIDList<String> getNames()
String getName()
void addName(String... names)
names - The names to addvoid setNames(List<String> names)
names - The list of names. Can be emptyString getDescription()
void setDescription(String description)
description - The SchemaObject's descriptionString getSpecification()
void setSpecification(String specification)
specification - The SchemaObject's specificationboolean isEnabled()
boolean isDisabled()
void setEnabled(boolean enabled)
enabled - The current SchemaObject stateboolean isReadOnly()
void setReadOnly(boolean isReadOnly)
isReadOnly - The current SchemaObject ReadOnly statusboolean isObsolete()
void setObsolete(boolean obsolete)
obsolete - The Obsolete flag stateMap<String,List<String>> getExtensions()
void addExtension(String key, String... values)
key - The extension keyvalues - The associated valuesvoid addExtension(String key, List<String> values)
key - The extension keyvalues - The associated valuesvoid setExtensions(Map<String,List<String>> extensions)
extensions - The extensions mapSchemaObjectType getObjectType()
String getSchemaName()
void setSchemaName(String schemaName)
schemaName - the new schema nameint hashCode()
boolean equals(Object o1)
SchemaObject copy()
SchemaObject copy(SchemaObject original)
original - the original SchemaObject
void clear()
void lock()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||