Interface ResourceAttributeContainer
-
- All Superinterfaces:
DebugDumpable
,Freezable
,Item<PrismContainerValue<ShadowAttributesType>,PrismContainerDefinition<ShadowAttributesType>>
,Itemable
,ParentVisitable
,PathVisitable
,PrismContainer<ShadowAttributesType>
,PrismContainerable<ShadowAttributesType>
,PrismContextSensitive
,Revivable
,Serializable
,Visitable
- All Known Implementing Classes:
ResourceAttributeContainerImpl
public interface ResourceAttributeContainer extends PrismContainer<ShadowAttributesType>
-
-
Field Summary
-
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
-
Method Summary
-
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDump, debugDumpLazily, debugDumpLazily
-
Methods inherited from interface com.evolveum.midpoint.prism.Freezable
checkImmutable, checkMutable, freeze, isImmutable
-
Methods inherited from interface com.evolveum.midpoint.prism.Item
acceptParentVisitor, add, add, addAll, addAll, addIgnoringEquivalents, addRespectingMetadataAndCloning, applyDefinition, assertDefinitions, assertDefinitions, assertDefinitions, checkConsistence, checkConsistence, checkConsistence, checkConsistence, checkConsistence, checkConsistenceInternal, clear, contains, contains, copy, diff, diff, equals, equals, equals, filterValues, filterYields, find, findValue, findValue, getAllValues, getAnyValue, getAnyValue, getClonedValues, getDisplayName, getElementName, getHelp, getHighestId, getParent, getPath, getPrismContextLocal, getRealValue, getRealValuesArray, getRealValuesOrRawTypes, getUserData, getUserData, getValues, hasAnyValue, hasCompleteDefinition, hashCode, hashCode, hashCode, hasNoValues, hasRaw, isEmpty, isIncomplete, isOperational, isRaw, isSingleValue, isSingleValueByDefinition, merge, normalize, recomputeAllValues, remove, remove, removeAll, removeIf, removeRespectingMetadata, replace, replaceAll, setElementName, setIncomplete, setParent, setPrismContext, setUserData, size, valuesStream
-
Methods inherited from interface com.evolveum.midpoint.prism.PrismContainer
accept, add, applyDefinition, canRepresent, canRepresent, cloneComplex, containsItem, createDelta, createDelta, createImmutableClone, createNewValue, deepCloneDefinition, diff, diff, diffModifications, equivalent, findContainer, findCreateItem, findCreateItem, findItem, findItem, findItem, findOrCreateContainer, findOrCreateItem, findOrCreateItem, findOrCreateProperty, findOrCreateReference, findPartial, findProperty, findReference, findValue, getCompileTimeClass, getPropertyRealValue, getRealValue, getRealValues, getValue, getValue, mergeValue, mergeValues, mergeValues, remove, removeContainer, removeItem, removeProperty, removeReference, setContainerRealValue, setDefinition, setPropertyRealValue, setPropertyRealValues, setRealValue, setValue, trim, trimDefinitionTree
-
Methods inherited from interface com.evolveum.midpoint.prism.PrismContainerable
getComplexTypeDefinition
-
Methods inherited from interface com.evolveum.midpoint.prism.PrismContextSensitive
getPrismContext
-
-
-
-
Method Detail
-
convertFromContainer
static ResourceAttributeContainer convertFromContainer(PrismContainer<?> origAttrContainer, ObjectClassComplexTypeDefinition objectClassDefinition) throws SchemaException
- Throws:
SchemaException
-
createEmptyContainer
static ResourceAttributeContainerImpl createEmptyContainer(QName elementName, ObjectClassComplexTypeDefinition objectClassDefinition)
-
getDefinition
ResourceAttributeContainerDefinition getDefinition()
Description copied from interface:Item
Returns applicable definition.May return null if no definition is applicable or the definition is not known.
- Specified by:
getDefinition
in interfaceItem<PrismContainerValue<ShadowAttributesType>,PrismContainerDefinition<ShadowAttributesType>>
- Specified by:
getDefinition
in interfaceItemable
- Specified by:
getDefinition
in interfacePrismContainer<ShadowAttributesType>
- Specified by:
getDefinition
in interfacePrismContainerable<ShadowAttributesType>
- Returns:
- applicable definition
-
getAttributes
Collection<ResourceAttribute<?>> getAttributes()
-
add
void add(ResourceAttribute<?> attribute) throws SchemaException
- Throws:
SchemaException
-
getPrimaryIdentifier
PrismProperty<?> getPrimaryIdentifier()
-
getPrimaryIdentifiers
Collection<ResourceAttribute<?>> getPrimaryIdentifiers()
-
getSecondaryIdentifier
<T> PrismProperty<T> getSecondaryIdentifier()
-
getSecondaryIdentifiers
Collection<ResourceAttribute<?>> getSecondaryIdentifiers()
-
getAllIdentifiers
Collection<ResourceAttribute<?>> getAllIdentifiers()
-
extractAttributesByDefinitions
@NotNull @NotNull Collection<ResourceAttribute<?>> extractAttributesByDefinitions(Collection<? extends ResourceAttributeDefinition> definitions)
-
getDescriptionAttribute
ResourceAttribute<String> getDescriptionAttribute()
-
getNamingAttribute
ResourceAttribute<String> getNamingAttribute()
-
getDisplayNameAttribute
ResourceAttribute getDisplayNameAttribute()
-
getNativeObjectClass
String getNativeObjectClass()
-
getKind
ShadowKindType getKind()
-
isDefaultInAKind
boolean isDefaultInAKind()
-
findAttribute
<X> ResourceAttribute<X> findAttribute(QName attributeQName)
-
findAttribute
<X> ResourceAttribute<X> findAttribute(ResourceAttributeDefinition attributeDefinition)
-
findOrCreateAttribute
<X> ResourceAttribute<X> findOrCreateAttribute(ResourceAttributeDefinition attributeDefinition) throws SchemaException
- Throws:
SchemaException
-
findOrCreateAttribute
<X> ResourceAttribute<X> findOrCreateAttribute(QName attributeName) throws SchemaException
- Throws:
SchemaException
-
contains
<T> boolean contains(ResourceAttribute<T> attr)
-
clone
ResourceAttributeContainer clone()
Description copied from interface:Item
Literal clone.- Specified by:
clone
in interfaceItem<PrismContainerValue<ShadowAttributesType>,PrismContainerDefinition<ShadowAttributesType>>
- Specified by:
clone
in interfacePrismContainer<ShadowAttributesType>
-
-