|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.evolveum.midpoint.prism.Item<PrismContainerValue<V>>
com.evolveum.midpoint.prism.PrismContainer
com.evolveum.midpoint.schema.processor.ResourceAttributeContainer
public final class ResourceAttributeContainer
Resource Object. Resource Object understands resource-specific annotations, such as identifiers, native object class, etc. Object class can be determined by using the definition (inherited from PropertyContainer)
Field Summary |
---|
Fields inherited from class com.evolveum.midpoint.prism.PrismContainer |
---|
compileTimeClass |
Fields inherited from class com.evolveum.midpoint.prism.Item |
---|
definition, name, parent, prismContext |
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable |
---|
INDENT_STRING |
Constructor Summary | |
---|---|
ResourceAttributeContainer(QName name,
ResourceAttributeContainerDefinition definition,
PrismContext prismContext)
The constructors should be used only occasionally (if used at all). |
Method Summary | ||
---|---|---|
void |
add(ResourceAttribute<?> attribute)
|
|
ResourceAttributeContainer |
clone()
|
|
static ResourceAttributeContainer |
convertFromContainer(PrismContainer<?> origAttrContainer,
ObjectClassComplexTypeDefinition objectClassDefinition)
|
|
protected void |
copyValues(ResourceAttributeContainer clone)
|
|
static ResourceAttributeContainer |
createEmptyContainer(QName elementName,
ObjectClassComplexTypeDefinition objectClassDefinition)
|
|
|
findAttribute(QName attributeQName)
Finds a specific attribute in the resource object by name. |
|
|
findAttribute(ResourceAttributeDefinition attributeDefinition)
Finds a specific attribute in the resource object by definition. |
|
|
findOrCreateAttribute(QName attributeName)
|
|
|
findOrCreateAttribute(ResourceAttributeDefinition attributeDefinition)
|
|
Collection<ResourceAttribute<?>> |
getAttributes()
Returns set of resource object attributes. |
|
protected String |
getDebugDumpClassName()
Return a human readable name of this class suitable for logs. |
|
ResourceAttributeContainerDefinition |
getDefinition()
Returns applicable property container definition. |
|
ResourceAttribute |
getDescriptionAttribute()
Returns description attribute of a resource object. |
|
ResourceAttribute |
getDisplayNameAttribute()
Returns display name attribute of a resource object. |
|
PrismProperty<?> |
getIdentifier()
Returns a (single) identifier. |
|
Collection<ResourceAttribute<?>> |
getIdentifiers()
Returns identifiers. |
|
ResourceAttribute<String> |
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. |
|
PrismProperty |
getSecondaryIdentifier()
Returns a (single) secondary identifier. |
|
Collection<ResourceAttribute<?>> |
getSecondaryIdentifiers()
Returns secondary identifiers. |
|
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. |
Methods inherited from class com.evolveum.midpoint.prism.Item |
---|
accept, add, addAll, applyDefinition, asDomElements, assertDefinitions, assertDefinitions, checkConsistence, checkConsistence, checkConsistence, clear, cloneCollection, contains, contains, containsRealValue, copyValues, createNewDefinitionlessItem, debugDump, diff, diff, diff, diffInternal, equalsRealValue, findValue, fixupDelta, getClonedValues, getDisplayName, getHelp, getName, getParent, getPath, getPrismContext, getUserData, getUserData, getValue, hasRaw, hasRealValue, hasValue, hasValue, isRaw, normalize, remove, remove, removeAll, replace, replaceAll, resetParentCollection, revive, setDefinition, setName, setParent, setPrismContext, setUserData, size |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.evolveum.midpoint.prism.Itemable |
---|
getName, getPath, getPrismContext |
Constructor Detail |
---|
public ResourceAttributeContainer(QName name, ResourceAttributeContainerDefinition definition, PrismContext prismContext)
Method Detail |
---|
public ResourceAttributeContainerDefinition getDefinition()
PrismContainer
getDefinition
in interface Itemable
getDefinition
in interface PrismContainerable
getDefinition
in class PrismContainer
public Collection<ResourceAttribute<?>> getAttributes()
public void add(ResourceAttribute<?> attribute) throws SchemaException
SchemaException
public PrismProperty<?> getIdentifier()
IllegalStateException
- if resource object has multiple identifierspublic Collection<ResourceAttribute<?>> getIdentifiers()
public PrismProperty getSecondaryIdentifier()
IllegalStateException
- if resource object has multiple secondary identifierspublic Collection<ResourceAttribute<?>> getSecondaryIdentifiers()
public ResourceAttribute getDescriptionAttribute()
IllegalStateException
- if there is no definition for the referenced attributedpublic ResourceAttribute<String> getNamingAttribute()
public ResourceAttribute getDisplayNameAttribute()
IllegalStateException
- if there is no definition for the referenced attributedpublic String getNativeObjectClass()
IllegalStateException
- if there is more than one description attribute.public boolean isAccountType()
public boolean isDefaultAccountType()
IllegalStateException
- if more than one default account is suggested in the schema.public <X> ResourceAttribute<X> findAttribute(QName attributeQName)
attributeQName
- attribute name to find.
public <X> ResourceAttribute<X> findAttribute(ResourceAttributeDefinition attributeDefinition)
attributeDefinition
- attribute definition to find.
public <X> ResourceAttribute<X> findOrCreateAttribute(ResourceAttributeDefinition attributeDefinition) throws SchemaException
SchemaException
public <X> ResourceAttribute<X> findOrCreateAttribute(QName attributeName) throws SchemaException
SchemaException
public static ResourceAttributeContainer convertFromContainer(PrismContainer<?> origAttrContainer, ObjectClassComplexTypeDefinition objectClassDefinition) throws SchemaException
SchemaException
public static ResourceAttributeContainer createEmptyContainer(QName elementName, ObjectClassComplexTypeDefinition objectClassDefinition)
public ResourceAttributeContainer clone()
clone
in class PrismContainer
protected void copyValues(ResourceAttributeContainer clone)
protected String getDebugDumpClassName()
getDebugDumpClassName
in class PrismContainer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |