public final class ResourceAttributeContainer extends PrismContainer<ShadowAttributesType>
compileTimeClass
definition, elementName, immutable, incomplete, parent, prismContext, values
INDENT_STRING
Constructor and Description |
---|
ResourceAttributeContainer(QName name,
ResourceAttributeContainerDefinition definition,
PrismContext prismContext)
The constructors should be used only occasionally (if used at all).
|
Modifier and Type | Method and Description |
---|---|
void |
add(ResourceAttribute<?> attribute) |
void |
checkConsistenceInternal(Itemable rootItem,
boolean requireDefinitions,
boolean prohibitRaw,
ConsistencyCheckScope scope) |
ResourceAttributeContainer |
clone()
Literal clone.
|
ResourceAttributeContainer |
cloneComplex(CloneStrategy strategy)
Complex clone with different cloning strategies.
|
<T> boolean |
contains(ResourceAttribute<T> attr) |
static ResourceAttributeContainer |
convertFromContainer(PrismContainer<?> origAttrContainer,
ObjectClassComplexTypeDefinition objectClassDefinition) |
protected void |
copyValues(CloneStrategy strategy,
ResourceAttributeContainer clone) |
static ResourceAttributeContainer |
createEmptyContainer(QName elementName,
ObjectClassComplexTypeDefinition objectClassDefinition) |
<X> ResourceAttribute<X> |
findAttribute(QName attributeQName)
Finds a specific attribute in the resource object by name.
|
<X> ResourceAttribute<X> |
findAttribute(ResourceAttributeDefinition attributeDefinition)
Finds a specific attribute in the resource object by definition.
|
<X> ResourceAttribute<X> |
findOrCreateAttribute(QName attributeName) |
<X> ResourceAttribute<X> |
findOrCreateAttribute(ResourceAttributeDefinition attributeDefinition) |
Collection<ResourceAttribute<?>> |
getAllIdentifiers() |
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<String> |
getDescriptionAttribute()
Returns description attribute of a resource object.
|
ResourceAttribute |
getDisplayNameAttribute()
Returns display name attribute of a resource object.
|
ShadowKindType |
getKind() |
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<?> |
getPrimaryIdentifier()
Returns a (single) primary identifier.
|
Collection<ResourceAttribute<?>> |
getPrimaryIdentifiers()
Returns primary identifiers.
|
<T> PrismProperty<T> |
getSecondaryIdentifier()
Returns a (single) secondary identifier.
|
Collection<ResourceAttribute<?>> |
getSecondaryIdentifiers()
Returns secondary identifiers.
|
boolean |
isDefaultInAKind()
Indicates whether definition is should be used as default account type.
|
accept, add, add, applyDefinition, assertDefinitions, canRepresent, canRepresent, checkDefinition, containsEquivalentValue, containsEquivalentValue, containsItem, copyValues, createDelta, createDelta, createNewValue, createParentIfNeeded, debugDump, deepCloneDefinition, diff, diff, diffModifications, diffModifications, equals, equivalent, find, findContainer, findContainer, findItem, findItem, findItem, findItem, findOrCreateContainer, findOrCreateContainer, findOrCreateItem, findOrCreateItem, findOrCreateProperty, findOrCreateProperty, findOrCreateReference, findOrCreateReference, findPartial, findProperty, findProperty, findReference, findReference, findReferenceByCompositeObjectElementName, findValue, getCompileTimeClass, getContainers, getItems, getNextValue, getOrCreateValue, getPreviousValue, getPropertyRealValue, getPropertyRealValue, getRealValue, getRealValues, getValue, getValue, hasCompleteDefinition, hashCode, isEmpty, mergeValue, mergeValues, mergeValues, newInstance, propagateDeepCloneDefinition, remove, removeContainer, removeContainer, removeItem, removeProperty, removeProperty, removeReference, removeReference, setDefinition, setPropertyRealValue, setPropertyRealValues, setValue, toString, trim, trimDefinitionTree
accept, add, addAll, appendDebugDumpSuffix, applyDefinition, assertDefinitions, assertDefinitions, checkConsistence, checkConsistence, checkConsistence, checkConsistence, checkConsistence, checkImmutability, checkMutability, clear, cloneCollection, contains, contains, contains, containsRealValue, copyValues, createNewDefinitionlessItem, diff, diff, diffInternal, equalsRealValue, filterValues, findValue, findValuesIgnoreMetadata, fixupDelta, getAllValues, getAllValues, getClonedValues, getDisplayName, getElementName, getHelp, getParent, getPath, getPrismContext, getPrismContextLocal, getUserData, getUserData, getValue, getValues, getValues, hasNoValues, hasNoValues, hasRaw, hasRealValue, hasValue, hasValue, isImmutable, isIncomplete, isMetadata, isRaw, isSingleValue, match, merge, modifyUnfrozen, normalize, recomputeAllValues, remove, remove, removeAll, replace, replaceAll, resetParentCollection, revive, setElementName, setImmutable, setIncomplete, setParent, setPrismContext, setUserData, size, valuesExactMatch
finalize, getClass, notify, notifyAll, wait, wait, wait
getComplexTypeDefinition
getElementName, getPath, getPrismContext
debugDump, debugDumpLazily, debugDumpLazily
public ResourceAttributeContainer(QName name, ResourceAttributeContainerDefinition definition, PrismContext prismContext)
public ResourceAttributeContainerDefinition getDefinition()
PrismContainer
May return null if no definition is applicable or the definition is not know.
getDefinition
in interface Itemable
getDefinition
in interface PrismContainerable<ShadowAttributesType>
getDefinition
in class PrismContainer<ShadowAttributesType>
public Collection<ResourceAttribute<?>> getAttributes()
public void add(ResourceAttribute<?> attribute) throws SchemaException
SchemaException
public PrismProperty<?> getPrimaryIdentifier()
IllegalStateException
- if resource object has multiple identifierspublic Collection<ResourceAttribute<?>> getPrimaryIdentifiers()
public <T> PrismProperty<T> getSecondaryIdentifier()
IllegalStateException
- if resource object has multiple secondary identifierspublic Collection<ResourceAttribute<?>> getSecondaryIdentifiers()
public Collection<ResourceAttribute<?>> getAllIdentifiers()
public ResourceAttribute<String> 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 ShadowKindType getKind()
public boolean isDefaultInAKind()
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 <T> boolean contains(ResourceAttribute<T> attr)
public static ResourceAttributeContainer convertFromContainer(PrismContainer<?> origAttrContainer, ObjectClassComplexTypeDefinition objectClassDefinition) throws SchemaException
SchemaException
public static ResourceAttributeContainer createEmptyContainer(QName elementName, ObjectClassComplexTypeDefinition objectClassDefinition)
public ResourceAttributeContainer clone()
Item
clone
in class PrismContainer<ShadowAttributesType>
public ResourceAttributeContainer cloneComplex(CloneStrategy strategy)
Item
cloneComplex
in class PrismContainer<ShadowAttributesType>
CloneStrategy
protected void copyValues(CloneStrategy strategy, ResourceAttributeContainer clone)
public void checkConsistenceInternal(Itemable rootItem, boolean requireDefinitions, boolean prohibitRaw, ConsistencyCheckScope scope)
checkConsistenceInternal
in class PrismContainer<ShadowAttributesType>
protected String getDebugDumpClassName()
getDebugDumpClassName
in class PrismContainer<ShadowAttributesType>
Copyright © 2019 Evolveum. All rights reserved.