public class ObjectClassComplexTypeDefinition extends ComplexTypeDefinition
deprecated, displayName, displayOrder, documentation, emphasized, help, ignored, inherited, isAbstract, isRuntimeSchema, prismContext, typeName
INDENT_STRING
Constructor and Description |
---|
ObjectClassComplexTypeDefinition(QName typeName,
PrismContext prismContext) |
Modifier and Type | Method and Description |
---|---|
ObjectClassComplexTypeDefinition |
clone()
Shallow clone.
|
protected void |
copyDefinitionData(ObjectClassComplexTypeDefinition clone) |
<X> ResourceAttributeDefinition<X> |
createAttributeDefinition(QName name,
QName typeName) |
<X> ResourceAttributeDefinition<X> |
createAttributeDefinition(String localName,
QName typeName) |
<X> ResourceAttributeDefinition<X> |
createAttributeDefinition(String localName,
String localTypeName) |
ObjectQuery |
createShadowSearchQuery(String resourceOid) |
boolean |
equals(Object obj) |
protected void |
extendDumpDefinition(StringBuilder sb,
ItemDefinition def) |
protected void |
extendDumpHeader(StringBuilder sb) |
<X> ResourceAttributeDefinition<X> |
findAttributeDefinition(QName name)
Finds a attribute definition by looking at the property name.
|
<X> ResourceAttributeDefinition<X> |
findAttributeDefinition(QName name,
boolean caseInsensitive) |
<X> ResourceAttributeDefinition<X> |
findAttributeDefinition(String name) |
Collection<? extends ResourceAttributeDefinition> |
getAllIdentifiers() |
Collection<? extends ResourceAttributeDefinition> |
getAttributeDefinitions() |
protected String |
getDebugDumpClassName()
Return a human readable name of this class suitable for logs.
|
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.
|
int |
hashCode() |
ResourceAttributeContainer |
instantiate(QName elementName)
This may not be really "clean" as it actually does two steps instead of one.
|
boolean |
isAuxiliary() |
boolean |
isDefaultInAKind()
Indicates whether definition is should be used as default definition in ist kind.
|
boolean |
isPrimaryIdentifier(QName attrName) |
boolean |
isSecondaryIdentifier(QName attrName) |
void |
setAuxiliary(boolean auxiliary) |
void |
setDefaultInAKind(boolean defaultAccountType) |
void |
setDescriptionAttribute(ResourceAttributeDefinition<?> descriptionAttribute) |
void |
setDisplayNameAttribute(QName displayName)
TODO
Convenience method.
|
void |
setDisplayNameAttribute(ResourceAttributeDefinition<?> displayName) |
void |
setIntent(String intent) |
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) |
ResourceAttributeContainerDefinition |
toResourceAttributeContainerDefinition() |
ResourceAttributeContainerDefinition |
toResourceAttributeContainerDefinition(QName elementName) |
add, addDefinition, copyDefinitionData, createPropertyDefinifion, createPropertyDefinifion, createPropertyDefinifion, createPropertyDefinition, debugDump, deepClone, findContainerDefinition, findContainerDefinition, findItemDefinition, findItemDefinition, findItemDefinition, findItemDefinition, findPropertyDefinition, findPropertyDefinition, getCompileTimeClass, getDefinitions, getDocClassName, getExtensionForType, getSchemaNamespace, getSuperType, isContainerMarker, isEmpty, isObjectMarker, isXsdAnyMarker, merge, replaceDefinition, revive, setCompileTimeClass, setContainerMarker, setExtensionForType, setObjectMarker, setSuperType, setXsdAnyMarker
copyDefinitionData, debugDump, getDisplayName, getDisplayOrder, getDocumentation, getDocumentationPreview, getHelp, getPrismContext, getSchemaRegistry, getTypeClass, getTypeClassIfKnown, getTypeName, isAbstract, isDeprecated, isEmphasized, isIgnored, isInherited, isRuntimeSchema, setAbstract, setDeprecated, setDisplayName, setDisplayOrder, setDocumentation, setEmphasized, setHelp, setIgnored, setInherited, setRuntimeSchema, setTypeName, toString
public ObjectClassComplexTypeDefinition(QName typeName, PrismContext prismContext)
public Collection<? extends ResourceAttributeDefinition> getAttributeDefinitions()
public Collection<? extends ResourceAttributeDefinition> getPrimaryIdentifiers()
IllegalStateException
- if there is no definition for the referenced attributedpublic boolean isPrimaryIdentifier(QName attrName)
public Collection<? extends ResourceAttributeDefinition> getSecondaryIdentifiers()
IllegalStateException
- if there is no definition for the referenced attributedpublic boolean isSecondaryIdentifier(QName attrName)
public 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 isAuxiliary()
public void setAuxiliary(boolean auxiliary)
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 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 intent)
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 <X> ResourceAttributeDefinition<X> findAttributeDefinition(QName name)
name
- property definition namepublic <X> ResourceAttributeDefinition<X> findAttributeDefinition(QName name, boolean caseInsensitive)
public <X> ResourceAttributeDefinition<X> findAttributeDefinition(String name)
public <X> ResourceAttributeDefinition<X> createAttributeDefinition(QName name, QName typeName)
public <X> ResourceAttributeDefinition<X> createAttributeDefinition(String localName, QName typeName)
public <X> ResourceAttributeDefinition<X> createAttributeDefinition(String localName, String localTypeName)
public ResourceAttributeContainerDefinition toResourceAttributeContainerDefinition()
public ResourceAttributeContainerDefinition toResourceAttributeContainerDefinition(QName elementName)
public ObjectQuery createShadowSearchQuery(String resourceOid) throws SchemaException
SchemaException
public ResourceAttributeContainer instantiate(QName elementName)
public ObjectClassComplexTypeDefinition clone()
ComplexTypeDefinition
clone
in class ComplexTypeDefinition
protected void copyDefinitionData(ObjectClassComplexTypeDefinition clone)
public int hashCode()
hashCode
in class ComplexTypeDefinition
public boolean equals(Object obj)
equals
in class ComplexTypeDefinition
protected String getDebugDumpClassName()
ComplexTypeDefinition
getDebugDumpClassName
in class ComplexTypeDefinition
protected void extendDumpHeader(StringBuilder sb)
extendDumpHeader
in class ComplexTypeDefinition
protected void extendDumpDefinition(StringBuilder sb, ItemDefinition def)
extendDumpDefinition
in class ComplexTypeDefinition
Copyright © 2016 evolveum. All rights reserved.