|
||||||||||
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, isRuntimeSchema, 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 |
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable |
---|
INDENT_STRING |
Constructor Summary | |
---|---|
ResourceObjectDefinition(Schema schema,
javax.xml.namespace.QName name,
ComplexTypeDefinition complexTypeDefinition)
|
Method Summary | |
---|---|
ResourceObjectDefinition |
clone()
Shallow clone |
protected void |
copyDefinitionData(ResourceObjectDefinition clone)
|
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 |
debugDump(int indent)
|
ResourceObjectAttributeDefinition |
findAttributeDefinition(javax.xml.namespace.QName elementQName)
|
ResourceObjectAttributeDefinition |
findAttributeDefinition(java.lang.String elementLocalname)
|
java.lang.String |
getAccountTypeName()
|
java.util.Collection<? extends ResourceObjectAttributeDefinition> |
getAttributeDefinitions()
|
ResourceObjectAttributeDefinition |
getDescriptionAttribute()
Returns the definition of description attribute of a resource object. |
ResourceObjectAttributeDefinition |
getDisplayNameAttribute()
Returns the definition of display name attribute. |
java.util.Collection<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()
|
ResourceObject |
instantiate(PropertyPath parentPath)
Create property container instance with a default name. |
PropertyContainer |
instantiate(javax.xml.namespace.QName name)
|
PropertyContainer |
instantiate(javax.xml.namespace.QName name,
java.lang.Object element)
|
PropertyContainer |
instantiate(javax.xml.namespace.QName name,
java.lang.Object element,
PropertyPath parentPath)
Create property container instance with a specified name and element. |
PropertyContainer |
instantiate(javax.xml.namespace.QName name,
PropertyPath parentPath)
Create property container instance with a specified name. |
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> |
parseAttributes(java.util.List<java.lang.Object> elements,
PropertyPath parentPath)
|
java.util.Collection<? extends ResourceObjectAttribute> |
parseIdentifiers(java.util.List<java.lang.Object> elements)
|
java.util.Collection<? extends ResourceObjectAttribute> |
parseIdentifiers(java.util.List<java.lang.Object> elements,
PropertyPath parentPath)
|
void |
setAccountType(boolean accountType)
|
void |
setAccountTypeName(java.lang.String accountTypeName)
|
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.ItemDefinition |
---|
copyDefinitionData, equals, getName, getNameOrDefaultName, hashCode, setName |
Methods inherited from class com.evolveum.midpoint.schema.processor.Definition |
---|
copyDefinitionData, debugDump, dump, getDefaultName, getDisplayName, getHelp, getTypeName, isIgnored, setDisplayName, setHelp, setIgnored |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ResourceObjectDefinition(Schema schema, javax.xml.namespace.QName name, ComplexTypeDefinition complexTypeDefinition)
Method Detail |
---|
public java.util.Collection<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 java.lang.String getAccountTypeName()
public void setAccountTypeName(java.lang.String accountTypeName)
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()
public PropertyContainer instantiate(javax.xml.namespace.QName name)
public PropertyContainer instantiate(javax.xml.namespace.QName name, java.lang.Object element)
public ResourceObject instantiate(PropertyPath parentPath)
PropertyContainerDefinition
instantiate
in class PropertyContainerDefinition
public PropertyContainer instantiate(javax.xml.namespace.QName name, PropertyPath parentPath)
PropertyContainerDefinition
instantiate
in class PropertyContainerDefinition
public PropertyContainer instantiate(javax.xml.namespace.QName name, java.lang.Object element, PropertyPath parentPath)
PropertyContainerDefinition
instantiate
in class PropertyContainerDefinition
public ResourceObjectDefinition clone()
PropertyContainerDefinition
clone
in class PropertyContainerDefinition
protected void copyDefinitionData(ResourceObjectDefinition clone)
public java.util.Set<ResourceObjectAttribute> parseAttributes(java.util.List<java.lang.Object> elements, PropertyPath parentPath) throws SchemaException
SchemaException
public java.util.Set<ResourceObjectAttribute> parseAttributes(java.util.List<java.lang.Object> elements) throws SchemaException
SchemaException
public java.util.Collection<? extends ResourceObjectAttribute> parseIdentifiers(java.util.List<java.lang.Object> elements, PropertyPath parentPath) throws SchemaException
SchemaException
public java.util.Collection<? extends 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 java.util.Collection<? extends ResourceObjectAttributeDefinition> getAttributeDefinitions()
public java.lang.String debugDump(int indent)
debugDump
in interface DebugDumpable
debugDump
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 |