|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.evolveum.midpoint.schema.processor.Definition
com.evolveum.midpoint.schema.processor.ItemDefinition
com.evolveum.midpoint.schema.processor.PropertyContainerDefinition
com.evolveum.midpoint.schema.processor.ResourceObjectDefinition
public class ResourceObjectDefinition
Resource Object Definition (Object Class).
Object Class refers to a type of object on the Resource. Unix account, Active
Directory group, inetOrgPerson LDAP objectclass or a schema of USERS database
table are all Object Classes from the midPoint point of view. Object class
defines a set of attribute names, types for each attributes and few
additional properties.
This class represents schema definition for resource object (object class).
See Definition
for more details.
Resource Object Definition is immutable. TODO: This will probably need to be
changed to a mutable object.
Field Summary |
---|
Fields inherited from class com.evolveum.midpoint.schema.processor.PropertyContainerDefinition |
---|
complexTypeDefinition, schema |
Fields inherited from class com.evolveum.midpoint.schema.processor.ItemDefinition |
---|
name |
Fields inherited from class com.evolveum.midpoint.schema.processor.Definition |
---|
defaultName, displayName, help, ignored, typeName |
Constructor Summary | |
---|---|
ResourceObjectDefinition(Schema schema,
javax.xml.namespace.QName name,
ComplexTypeDefinition complexTypeDefinition)
|
Method Summary | |
---|---|
ResourceObjectAttributeDefinition |
createAttributeDefinition(javax.xml.namespace.QName name,
javax.xml.namespace.QName typeName)
|
ResourceObjectAttributeDefinition |
createAttributeDefinition(java.lang.String localName,
javax.xml.namespace.QName typeName)
|
ResourceObjectAttributeDefinition |
createAttributeDefinition(java.lang.String localName,
java.lang.String localTypeName)
|
java.lang.String |
dump(int indent)
|
ResourceObjectAttributeDefinition |
findAttributeDefinition(javax.xml.namespace.QName elementQName)
|
ResourceObjectAttributeDefinition |
findAttributeDefinition(java.lang.String elementLocalname)
|
ResourceObjectAttributeDefinition |
getDescriptionAttribute()
Returns the definition of description attribute of a resource object. |
ResourceObjectAttributeDefinition |
getDisplayNameAttribute()
Returns the definition of display name attribute. |
java.util.Set<ResourceObjectAttributeDefinition> |
getIdentifiers()
Returns the definition of identifier attributes of a resource object. |
ResourceObjectAttributeDefinition |
getNamingAttribute()
Specifies which resource attribute should be used as a "technical" name for the account. |
java.lang.String |
getNativeObjectClass()
Returns the native object class string for the resource object. |
java.util.Set<ResourceObjectAttributeDefinition> |
getSecondaryIdentifiers()
Returns the definition of secondary identifier attributes of a resource object. |
ResourceObject |
instantiate()
Create property container instance with a default name. |
PropertyContainer |
instantiate(javax.xml.namespace.QName name)
Create property container instance with a specified name. |
PropertyContainer |
instantiate(javax.xml.namespace.QName name,
java.lang.Object element)
Create property container instance with a specified name and element. |
boolean |
isAccountType()
Indicates whether definition is should be used as account type. |
boolean |
isDefaultAccountType()
Indicates whether definition is should be used as default account type. |
java.util.Set<ResourceObjectAttribute> |
parseAttributes(java.util.List<java.lang.Object> elements)
|
java.util.Set<ResourceObjectAttribute> |
parseIdentifiers(java.util.List<java.lang.Object> elements)
|
void |
setAccountType(boolean accountType)
|
void |
setDefaultAccountType(boolean defaultAccountType)
|
void |
setDescriptionAttribute(ResourceObjectAttributeDefinition descriptionAttribute)
|
void |
setDisplayNameAttribute(javax.xml.namespace.QName displayName)
TODO Convenience method. |
void |
setDisplayNameAttribute(ResourceObjectAttributeDefinition displayName)
|
void |
setNamingAttribute(javax.xml.namespace.QName namingAttribute)
|
void |
setNamingAttribute(ResourceObjectAttributeDefinition namingAttribute)
|
void |
setNativeObjectClass(java.lang.String nativeObjectClass)
|
java.lang.String |
toString()
|
Methods inherited from class com.evolveum.midpoint.schema.processor.PropertyContainerDefinition |
---|
createPropertyDefinition, createPropertyDefinition, createPropertyDefinition, createPropertyDefinition, createPropertyDefinition, createPropertyDefinition, findItemDefinition, findItemDefinition, findPropertyContainerDefinition, findPropertyDefinition, getDefinitions, getPropertyDefinitions, getSchemaNamespace, isEmpty, parseAsContent, parseAsContent, parseItem, parseItem, parseItem, parseItems, parseItems |
Methods inherited from class com.evolveum.midpoint.schema.processor.ItemDefinition |
---|
getName, getNameOrDefaultName |
Methods inherited from class com.evolveum.midpoint.schema.processor.Definition |
---|
dump, getDefaultName, getDisplayName, getHelp, getTypeName, isIgnored, setDisplayName, setHelp, setIgnored |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ResourceObjectDefinition(Schema schema, javax.xml.namespace.QName name, ComplexTypeDefinition complexTypeDefinition)
Method Detail |
---|
public java.util.Set<ResourceObjectAttributeDefinition> getIdentifiers()
java.lang.IllegalStateException
- if there is no definition for the referenced attributedpublic java.util.Set<ResourceObjectAttributeDefinition> getSecondaryIdentifiers()
java.lang.IllegalStateException
- if there is no definition for the referenced attributedpublic ResourceObjectAttributeDefinition getDescriptionAttribute()
java.lang.IllegalStateException
- if there is more than one description attribute. But this
should never happen.
java.lang.IllegalStateException
- if there is no definition for the referenced attributedpublic void setDescriptionAttribute(ResourceObjectAttributeDefinition descriptionAttribute)
public ResourceObjectAttributeDefinition getNamingAttribute()
public void setNamingAttribute(ResourceObjectAttributeDefinition namingAttribute)
public void setNamingAttribute(javax.xml.namespace.QName namingAttribute)
public java.lang.String getNativeObjectClass()
java.lang.IllegalStateException
- if there is more than one description attribute.public void setNativeObjectClass(java.lang.String nativeObjectClass)
public boolean isAccountType()
public void setAccountType(boolean accountType)
public boolean isDefaultAccountType()
java.lang.IllegalStateException
- if more than one default account is suggested in the schema.public void setDefaultAccountType(boolean defaultAccountType)
public ResourceObjectAttributeDefinition getDisplayNameAttribute()
java.lang.IllegalStateException
- if there is more than one display name attribute or the
definition of the referenced attribute does not exist.public void setDisplayNameAttribute(ResourceObjectAttributeDefinition displayName)
public void setDisplayNameAttribute(javax.xml.namespace.QName displayName)
displayName
- public ResourceObject instantiate()
PropertyContainerDefinition
instantiate
in class PropertyContainerDefinition
public java.util.Set<ResourceObjectAttribute> parseAttributes(java.util.List<java.lang.Object> elements) throws SchemaException
SchemaException
public java.util.Set<ResourceObjectAttribute> parseIdentifiers(java.util.List<java.lang.Object> elements) throws SchemaException
SchemaException
public ResourceObjectAttributeDefinition findAttributeDefinition(javax.xml.namespace.QName elementQName)
public ResourceObjectAttributeDefinition findAttributeDefinition(java.lang.String elementLocalname)
public ResourceObjectAttributeDefinition createAttributeDefinition(javax.xml.namespace.QName name, javax.xml.namespace.QName typeName)
public ResourceObjectAttributeDefinition createAttributeDefinition(java.lang.String localName, javax.xml.namespace.QName typeName)
public ResourceObjectAttributeDefinition createAttributeDefinition(java.lang.String localName, java.lang.String localTypeName)
public PropertyContainer instantiate(javax.xml.namespace.QName name)
PropertyContainerDefinition
instantiate
in class PropertyContainerDefinition
public PropertyContainer instantiate(javax.xml.namespace.QName name, java.lang.Object element)
PropertyContainerDefinition
instantiate
in class PropertyContainerDefinition
public java.lang.String dump(int indent)
dump
in class PropertyContainerDefinition
public java.lang.String toString()
toString
in class ItemDefinition
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |