com.evolveum.midpoint.schema.processor
Class ResourceObjectAttribute
java.lang.Object
com.evolveum.midpoint.schema.processor.Property
com.evolveum.midpoint.schema.processor.ResourceObjectAttribute
public class ResourceObjectAttribute
- extends Property
Resource Object Attribute is a Property of Resource Object. All that applies
to property applies also to attribute, e.g. only a whole attributes can be
changed, they may be simple or complex types, they should be representable in
XML, etc. In addition, attribute definition may have some annotations that
suggest its purpose and use on the Resource.
Resource Object Attribute understands resource-specific annotations such as
native attribute name.
Resource Object Attribute is mutable.
- Author:
- Radovan Semancik
Methods inherited from class com.evolveum.midpoint.schema.processor.Property |
createModification, createModification, dump, getDisplayName, getHelp, getName, getValue, getValue, getValues, getValues, serializeToDom, setDefinition, setName, setValue, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ResourceObjectAttribute
public ResourceObjectAttribute()
ResourceObjectAttribute
public ResourceObjectAttribute(javax.xml.namespace.QName name,
PropertyDefinition definition,
java.util.Set<java.lang.Object> values)
ResourceObjectAttribute
public ResourceObjectAttribute(javax.xml.namespace.QName name,
PropertyDefinition definition)
ResourceObjectAttribute
public ResourceObjectAttribute(javax.xml.namespace.QName name)
getDefinition
public ResourceObjectAttributeDefinition getDefinition()
- Description copied from class:
Property
- Returns applicable property definition.
May return null if no definition is applicable or the definition is not
know.
- Overrides:
getDefinition
in class Property
- Returns:
- applicable property definition
getNativeAttributeName
public java.lang.String getNativeAttributeName()
- Returns native attribute name.
Native name of the attribute is a name as it is used on the resource or
as seen by the connector. It is used for diagnostics purposes and may be
used by the connector itself. As the attribute names in XSD have to
comply with XML element name limitations, this may be the only way how to
determine original attribute name.
Returns null if native attribute name is not set or unknown.
The name should be the same as the one used by the resource, if the
resource supports naming of attributes. E.g. in case of LDAP this
annotation should contain "cn", "givenName", etc. If the resource is not
that flexible, the native attribute names may be hardcoded (e.g.
"username", "homeDirectory") or may not be present at all.
- Returns:
- native attribute name
getResourceObjectReference
public javax.xml.namespace.QName getResourceObjectReference()
- Returns resource object reference target Qname.
Contains specification (QName) of a XSD type that is the type of
reference target objects.
Returns null if resource object reference is not set or unknown.
It is used as an annotation for attribute types that point to resource
objects, such as group members lists, role lists, etc. The clients can
use this annotation to detect that the attribute points to a different
object and follow the reference or display it appropriately.
- Returns:
- resource object reference target Qname
Copyright © 2011 evolveum. All Rights Reserved.