|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.evolveum.midpoint.prism.Definition
com.evolveum.midpoint.prism.ComplexTypeDefinition
com.evolveum.midpoint.schema.processor.ObjectClassComplexTypeDefinition
public class ObjectClassComplexTypeDefinition
Field Summary |
---|
Fields inherited from class com.evolveum.midpoint.prism.Definition |
---|
defaultName, displayName, displayOrder, help, ignored, prismContext, typeName |
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable |
---|
INDENT_STRING |
Constructor Summary | |
---|---|
ObjectClassComplexTypeDefinition(QName defaultName,
QName typeName,
PrismContext prismContext)
|
Method Summary | |
---|---|
ObjectClassComplexTypeDefinition |
clone()
Shallow clone. |
protected void |
copyDefinitionData(ObjectClassComplexTypeDefinition clone)
|
ResourceAttributeDefinition |
createAttributeDefinition(QName name,
QName typeName)
|
ResourceAttributeDefinition |
createAttributeDefinition(String localName,
QName typeName)
|
ResourceAttributeDefinition |
createAttributeDefinition(String localName,
String localTypeName)
|
ResourceAttributeDefinition |
findAttributeDefinition(QName name)
Finds a attribute definition by looking at the property name. |
ResourceAttributeDefinition |
findAttributeDefinition(String name)
|
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. |
Collection<ResourceAttributeDefinition> |
getIdentifiers()
Returns the definition of identifier attributes of a resource object. |
String |
getIntent()
|
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. |
Set<ResourceAttributeDefinition> |
getSecondaryIdentifiers()
Returns the definition of secondary identifier attributes of a resource object. |
ResourceAttributeContainer |
instantiate(QName elementName)
This may not be really "clean" as it actually does two steps instead of one. |
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. |
boolean |
isIdentifier(QName attrName)
|
boolean |
isSecondaryIdentifier(QName attrName)
|
void |
setAccountType(boolean accountType)
|
void |
setDefaultAccountType(boolean defaultAccountType)
|
void |
setDescriptionAttribute(ResourceAttributeDefinition descriptionAttribute)
|
void |
setDisplayNameAttribute(QName displayName)
TODO Convenience method. |
void |
setDisplayNameAttribute(ResourceAttributeDefinition displayName)
|
void |
setIntent(String intent)
|
void |
setNamingAttribute(QName namingAttribute)
|
void |
setNamingAttribute(ResourceAttributeDefinition namingAttribute)
|
void |
setNativeObjectClass(String nativeObjectClass)
|
ResourceAttributeContainerDefinition |
toResourceAttributeContainerDefinition(QName elementName)
|
Methods inherited from class com.evolveum.midpoint.prism.Definition |
---|
copyDefinitionData, debugDump, dump, equals, getDefaultName, getDisplayName, getDisplayOrder, getHelp, getPrismContext, getSchemaRegistry, getTypeClass, getTypeName, hashCode, isIgnored, setDisplayName, setDisplayOrder, setHelp, setIgnored, setTypeName, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ObjectClassComplexTypeDefinition(QName defaultName, QName typeName, PrismContext prismContext)
Method Detail |
---|
public Collection<? extends ResourceAttributeDefinition> getAttributeDefinitions()
public Collection<ResourceAttributeDefinition> getIdentifiers()
IllegalStateException
- if there is no definition for the referenced attributedpublic boolean isIdentifier(QName attrName)
public Set<ResourceAttributeDefinition> getSecondaryIdentifiers()
IllegalStateException
- if there is no definition for the referenced attributedpublic boolean isSecondaryIdentifier(QName attrName)
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 isAccountType()
public void setAccountType(boolean accountType)
public boolean isDefaultAccountType()
IllegalStateException
- if more than one default account is suggested in the schema.public void setDefaultAccountType(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 ResourceAttributeDefinition findAttributeDefinition(QName name)
name
- property definition name
public ResourceAttributeDefinition findAttributeDefinition(String name)
public ResourceAttributeDefinition createAttributeDefinition(QName name, QName typeName)
public ResourceAttributeDefinition createAttributeDefinition(String localName, QName typeName)
public ResourceAttributeDefinition createAttributeDefinition(String localName, String localTypeName)
public ResourceAttributeContainerDefinition toResourceAttributeContainerDefinition(QName elementName)
public ResourceAttributeContainer instantiate(QName elementName)
public ObjectClassComplexTypeDefinition clone()
ComplexTypeDefinition
clone
in class ComplexTypeDefinition
protected void copyDefinitionData(ObjectClassComplexTypeDefinition clone)
protected String getDebugDumpClassName()
ComplexTypeDefinition
getDebugDumpClassName
in class ComplexTypeDefinition
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |