public class ResourceAttributeContainerDefinition extends PrismContainerDefinition<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowAttributesType>
Definition
for more details.
Resource Object Definition is immutable. TODO: This will probably need to be
changed to a mutable object.compileTimeClass, complexTypeDefinition
name
deprecated, displayName, displayOrder, documentation, emphasized, help, ignored, inherited, isAbstract, isRuntimeSchema, prismContext, typeName
INDENT_STRING
Constructor and Description |
---|
ResourceAttributeContainerDefinition(QName name,
ObjectClassComplexTypeDefinition complexTypeDefinition,
PrismContext prismContext) |
Modifier and Type | Method and Description |
---|---|
ResourceAttributeContainerDefinition |
clone()
Shallow clone
|
protected void |
copyDefinitionData(ResourceAttributeContainerDefinition clone) |
String |
debugDump(int indent) |
ResourceAttributeDefinition |
findAttributeDefinition(ItemPath elementPath) |
ResourceAttributeDefinition |
findAttributeDefinition(QName elementQName) |
ResourceAttributeDefinition |
findAttributeDefinition(QName elementQName,
boolean caseInsensitive) |
ResourceAttributeDefinition |
findAttributeDefinition(String elementLocalname) |
Collection<? extends ResourceAttributeDefinition> |
getAllIdentifiers() |
List<? extends ResourceAttributeDefinition> |
getAttributeDefinitions() |
ObjectClassComplexTypeDefinition |
getComplexTypeDefinition() |
List<? extends ResourceAttributeDefinition> |
getDefinitions()
Returns set of property definitions.
|
ResourceAttributeDefinition |
getDescriptionAttribute()
Returns the definition of description attribute of a resource object.
|
ResourceAttributeDefinition |
getDisplayNameAttribute()
Returns the definition of display name attribute.
|
String |
getIntent() |
com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowKindType |
getKind() |
ResourceAttributeDefinition |
getNamingAttribute()
Specifies which resource attribute should be used as a "technical" name
for the account.
|
String |
getNativeObjectClass()
Returns the native object class string for the resource object.
|
Collection<? extends ResourceAttributeDefinition> |
getPrimaryIdentifiers()
Returns the definition of primary identifier attributes of a resource object.
|
Collection<? extends ResourceAttributeDefinition> |
getSecondaryIdentifiers()
Returns the definition of secondary identifier attributes of a resource
object.
|
ResourceAttributeContainer |
instantiate()
Create property container instance with a default name.
|
ResourceAttributeContainer |
instantiate(QName name)
Create property container instance with a specified name and element.
|
boolean |
isDefaultInAKind()
Indicates whether definition is should be used as default account type.
|
void |
setDefaultInAKind(boolean defaultAccountType) |
void |
setDescriptionAttribute(ResourceAttributeDefinition descriptionAttribute) |
void |
setDisplayNameAttribute(QName displayName)
TODO
Convenience method.
|
void |
setDisplayNameAttribute(ResourceAttributeDefinition displayName) |
void |
setIntent(String accountTypeName) |
void |
setKind(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowKindType kind) |
void |
setNamingAttribute(QName namingAttribute) |
void |
setNamingAttribute(ResourceAttributeDefinition namingAttribute) |
void |
setNativeObjectClass(String nativeObjectClass) |
<T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> |
toShadowDefinition() |
String |
toString() |
cloneWithReplacedDefinition, copyDefinitionData, createContainerDefinition, createContainerDefinition, createContainerDefinition, createEmptyDelta, createPropertyDefinition, createPropertyDefinition, createPropertyDefinition, createPropertyDefinition, createPropertyDefinition, createPropertyDefinition, createValue, findContainerDefinition, findContainerDefinition, findContainerDefinition, findItemDefinition, findItemDefinition, findItemDefinition, findItemDefinition, findItemDefinition, findNamedItemDefinition, findPropertyDefinition, findPropertyDefinition, findReferenceDefinition, findReferenceDefinition, getCompileTimeClass, getDebugDumpClassName, getDocClassName, getPropertyDefinitions, getSchemaNamespace, isAbstract, isEmpty, isWildcard, revive, setCompileTimeClass, setComplexTypeDefinition
addNamespaceIfApplicable, adoptElementDefinitionFrom, canAdd, canModify, canRead, copyDefinitionData, debugFlags, debugMultiplicity, deepClone, equals, extendToString, getMaxOccurs, getMinOccurs, getName, getNamespace, getValueEnumerationRef, hashCode, isDynamic, isMandatory, isMultiValue, isOperational, isOptional, isSingleValue, isValidFor, isValidFor, setCanAdd, setCanModify, setCanRead, setDynamic, setMaxOccurs, setMinOccurs, setName, setOperational, setReadOnly, setValueEnumerationRef
copyDefinitionData, debugDump, getDisplayName, getDisplayOrder, getDocumentation, getDocumentationPreview, getHelp, getPrismContext, getSchemaRegistry, getTypeClass, getTypeClassIfKnown, getTypeName, isDeprecated, isEmphasized, isIgnored, isInherited, isRuntimeSchema, setAbstract, setDeprecated, setDisplayName, setDisplayOrder, setDocumentation, setEmphasized, setHelp, setIgnored, setInherited, setRuntimeSchema, setTypeName
public ResourceAttributeContainerDefinition(QName name, ObjectClassComplexTypeDefinition complexTypeDefinition, PrismContext prismContext)
public ObjectClassComplexTypeDefinition getComplexTypeDefinition()
getComplexTypeDefinition
in class PrismContainerDefinition<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowAttributesType>
public Collection<? extends ResourceAttributeDefinition> getPrimaryIdentifiers()
IllegalStateException
- if there is no definition for the referenced attributedpublic Collection<? extends ResourceAttributeDefinition> getSecondaryIdentifiers()
IllegalStateException
- if there is no definition for the referenced attributedpublic Collection<? extends ResourceAttributeDefinition> getAllIdentifiers()
public ResourceAttributeDefinition getDescriptionAttribute()
IllegalStateException
- if there is more than one description attribute. But this
should never happen.IllegalStateException
- if there is no definition for the referenced attributedpublic void setDescriptionAttribute(ResourceAttributeDefinition descriptionAttribute)
public ResourceAttributeDefinition getNamingAttribute()
public void setNamingAttribute(ResourceAttributeDefinition namingAttribute)
public void setNamingAttribute(QName namingAttribute)
public String getNativeObjectClass()
IllegalStateException
- if there is more than one description attribute.public void setNativeObjectClass(String nativeObjectClass)
public boolean isDefaultInAKind()
IllegalStateException
- if more than one default account is suggested in the schema.public void setDefaultInAKind(boolean defaultAccountType)
public String getIntent()
public void setIntent(String accountTypeName)
public com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowKindType getKind()
public void setKind(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowKindType kind)
public ResourceAttributeDefinition getDisplayNameAttribute()
IllegalStateException
- if there is more than one display name attribute or the
definition of the referenced attribute does not exist.public void setDisplayNameAttribute(ResourceAttributeDefinition displayName)
public void setDisplayNameAttribute(QName displayName)
displayName
- public ResourceAttributeContainer instantiate()
PrismContainerDefinition
instantiate
in class PrismContainerDefinition<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowAttributesType>
public ResourceAttributeContainer instantiate(QName name)
PrismContainerDefinition
instantiate
in class PrismContainerDefinition<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowAttributesType>
public ResourceAttributeContainerDefinition clone()
PrismContainerDefinition
clone
in class PrismContainerDefinition<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowAttributesType>
protected void copyDefinitionData(ResourceAttributeContainerDefinition clone)
public ResourceAttributeDefinition findAttributeDefinition(QName elementQName)
public ResourceAttributeDefinition findAttributeDefinition(QName elementQName, boolean caseInsensitive)
public ResourceAttributeDefinition findAttributeDefinition(ItemPath elementPath)
public ResourceAttributeDefinition findAttributeDefinition(String elementLocalname)
public List<? extends ResourceAttributeDefinition> getAttributeDefinitions()
public List<? extends ResourceAttributeDefinition> getDefinitions()
PrismContainerDefinition
getDefinitions
in class PrismContainerDefinition<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowAttributesType>
public <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> PrismObjectDefinition<T> toShadowDefinition()
public String debugDump(int indent)
debugDump
in interface DebugDumpable
debugDump
in class PrismContainerDefinition<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowAttributesType>
public String toString()
toString
in class ItemDefinition<PrismContainer<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowAttributesType>>
Copyright © 2016 evolveum. All rights reserved.