|
||||||||||
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.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.
Constructor Summary | |
---|---|
ResourceObjectDefinition(Schema schema,
javax.xml.namespace.QName name,
javax.xml.namespace.QName defaultName,
javax.xml.namespace.QName typeName)
|
Method Summary | |
---|---|
ResourceObjectAttributeDefinition |
findAttributeDefinition(javax.xml.namespace.QName elementQName)
|
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()
|
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<org.w3c.dom.Element> elements)
|
java.util.Set<ResourceObjectAttribute> |
parseIdentifiers(java.util.List<org.w3c.dom.Element> elements)
|
void |
setAccountType(boolean accountType)
|
void |
setDefaultAccountType(boolean defaultAccountType)
|
void |
setDescriptionAttribute(ResourceObjectAttributeDefinition descriptionAttribute)
|
void |
setNamingAttribute(ResourceObjectAttributeDefinition namingAttribute)
|
Methods inherited from class com.evolveum.midpoint.schema.processor.PropertyContainerDefinition |
---|
debugDump, findPropertyDefinition, findPropertyDefinition, getDefinitions, instantiate, parseProperties, parseProperties, parseProperties, serializePropertiesToDom |
Methods inherited from class com.evolveum.midpoint.schema.processor.Definition |
---|
getDefaultName, getDisplayName, getHelp, getName, getNameOrDefaultName, getTypeName, toString |
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, javax.xml.namespace.QName defaultName, javax.xml.namespace.QName typeName)
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 java.lang.String getNativeObjectClass()
java.lang.IllegalStateException
- if there is more than one description attribute.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 ResourceObject instantiate()
instantiate
in class PropertyContainerDefinition
public java.util.Set<ResourceObjectAttribute> parseAttributes(java.util.List<org.w3c.dom.Element> elements)
public java.util.Set<ResourceObjectAttribute> parseIdentifiers(java.util.List<org.w3c.dom.Element> elements)
public ResourceObjectAttributeDefinition findAttributeDefinition(javax.xml.namespace.QName elementQName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |