public class CompositeRefinedObjectClassDefinitionImpl extends Object implements CompositeRefinedObjectClassDefinition
INDENT_STRING
Constructor and Description |
---|
CompositeRefinedObjectClassDefinitionImpl(RefinedObjectClassDefinition structuralObjectClassDefinition,
Collection<RefinedObjectClassDefinition> auxiliaryObjectClassDefinitions) |
Modifier and Type | Method and Description |
---|---|
CompositeRefinedObjectClassDefinitionImpl |
clone()
Does a shallow clone of this definition (i.e.
|
boolean |
containsAttributeDefinition(ItemPathType pathType) |
boolean |
containsAttributeDefinition(QName attributeName) |
PrismObject<ShadowType> |
createBlankShadow(RefinedObjectClassDefinition definition) |
ObjectQuery |
createShadowSearchQuery(String resourceOid) |
String |
debugDump()
Show the content of the object intended for diagnostics by system administrator.
|
String |
debugDump(int indent) |
protected String |
debugDump(int indent,
LayerType layer) |
CompositeRefinedObjectClassDefinitionImpl |
deepClone(Map<QName,ComplexTypeDefinition> ctdMap)
Does a deep clone of this definition.
|
boolean |
equals(Object obj) |
RefinedAssociationDefinition |
findAssociationDefinition(QName name) |
<X> RefinedAttributeDefinition<X> |
findAttributeDefinition(QName name)
Finds a attribute definition by looking at the property name.
|
<X> RefinedAttributeDefinition<X> |
findAttributeDefinition(QName elementQName,
boolean caseInsensitive)
Finds a attribute definition by looking at the property name; not considering the case.
|
RefinedAssociationDefinition |
findEntitlementAssociationDefinition(QName name) |
<ID extends ItemDefinition> |
findItemDefinition(ItemPath path,
Class<ID> clazz) |
<T extends ItemDefinition> |
findItemDefinition(QName name,
Class<T> clazz,
boolean caseInsensitive) |
<ID extends ItemDefinition> |
findNamedItemDefinition(QName firstName,
ItemPath rest,
Class<ID> clazz) |
LayerRefinedObjectClassDefinition |
forLayer(LayerType layerType) |
ResourceBidirectionalMappingType |
getActivationBidirectionalMappingType(QName propertyName) |
AttributeFetchStrategyType |
getActivationFetchStrategy(QName propertyName) |
ResourceActivationDefinitionType |
getActivationSchemaHandling() |
Collection<? extends RefinedAttributeDefinition<?>> |
getAllIdentifiers()
Returns both primary and secondary identifiers.
|
Collection<RefinedAssociationDefinition> |
getAssociationDefinitions()
Returns definitions of all associations as an unmodifiable collection.
|
Collection<RefinedAssociationDefinition> |
getAssociationDefinitions(ShadowKindType kind) |
Collection<? extends RefinedAttributeDefinition<?>> |
getAttributeDefinitions()
Returns definitions of all attributes as an unmodifiable collection.
|
Collection<RefinedObjectClassDefinition> |
getAuxiliaryObjectClassDefinitions() |
ResourceObjectReferenceType |
getBaseContext() |
Class<?> |
getCompileTimeClass()
Returns compile-time class, if this type has any.
|
String |
getDebugDumpClassName()
Return a human readable name of this class suitable for logs.
|
String |
getDefaultNamespace()
When resolving unqualified names for items contained in this CTD, what should be the default namespace
to look into at first.
|
List<? extends ItemDefinition> |
getDefinitions()
Returns definitions for all inner items.
|
String |
getDescription() |
<X> RefinedAttributeDefinition<X> |
getDescriptionAttribute()
Returns the definition of description attribute of a resource object.
|
String |
getDisplayName()
Returns display name.
|
<X> RefinedAttributeDefinition<X> |
getDisplayNameAttribute()
Returns the definition of display name attribute.
|
Integer |
getDisplayOrder()
Specifies an order in which the item should be displayed relative to other items
at the same level.
|
String |
getDocumentation() |
String |
getDocumentationPreview()
Returns only a first sentence of documentation.
|
<T extends CapabilityType> |
getEffectiveCapability(Class<T> capabilityClass) |
Collection<RefinedAssociationDefinition> |
getEntitlementAssociationDefinitions() |
QName |
getExtensionForType()
If not null, indicates that this type defines the structure of 'extension' element of a given type.
|
String |
getHelp()
Returns help string.
|
String |
getHumanReadableName() |
List<String> |
getIgnoredNamespaces()
When resolving unqualified names for items contained in this CTD, what namespace(s) should be ignored.
|
String |
getIntent()
TODO
|
ShadowKindType |
getKind()
TODO
|
Collection<QName> |
getNamesOfAssociations() |
Collection<? extends QName> |
getNamesOfAssociationsWithOutboundExpressions() |
Collection<? extends QName> |
getNamesOfAttributesWithInboundExpressions() |
Collection<? extends QName> |
getNamesOfAttributesWithOutboundExpressions() |
<X> RefinedAttributeDefinition<X> |
getNamingAttribute()
TODO
|
String |
getNativeObjectClass()
Returns the native object class string for the resource object.
|
ObjectClassComplexTypeDefinition |
getObjectClassDefinition() |
PrismObjectDefinition<ShadowType> |
getObjectDefinition() |
PagedSearchCapabilityType |
getPagedSearches() |
ResourcePasswordDefinitionType |
getPasswordDefinition() |
AttributeFetchStrategyType |
getPasswordFetchStrategy() |
List<MappingType> |
getPasswordInbound() |
MappingType |
getPasswordOutbound() |
ObjectReferenceType |
getPasswordPolicy() |
Collection<? extends RefinedAttributeDefinition<?>> |
getPrimaryIdentifiers()
Returns the definition of primary identifier attributes of a resource object.
|
PrismContext |
getPrismContext() |
Collection<ResourceObjectPattern> |
getProtectedObjectPatterns() |
String |
getResourceNamespace() |
ResourceType |
getResourceType() |
Collection<? extends RefinedAttributeDefinition<?>> |
getSecondaryIdentifiers()
Returns the definition of secondary identifier attributes of a resource
object.
|
ResourceShadowDiscriminator |
getShadowDiscriminator() |
RefinedObjectClassDefinition |
getStructuralObjectClassDefinition() |
QName |
getSuperType()
Name of super type of this complex type definition.
|
Class |
getTypeClass() |
Class |
getTypeClassIfKnown() |
QName |
getTypeName()
Returns a name of the type for this definition.
|
ResourceObjectVolatilityType |
getVolatility() |
boolean |
hasAuxiliaryObjectClass(QName expectedObjectClassName) |
int |
hashCode() |
ResourceAttributeContainer |
instantiate(QName elementName) |
boolean |
isAbstract() |
boolean |
isAuxiliary()
TODO
|
boolean |
isContainerMarker()
Flag indicating whether this type was marked as "container"
in the original schema.
|
boolean |
isDefault() |
boolean |
isDefaultInAKind()
Indicates whether definition is should be used as default definition in ist kind.
|
boolean |
isDeprecated() |
boolean |
isEmphasized()
True for definitions that are more important than others and that should be emphasized
during presentation.
|
boolean |
isEmpty()
Returns true if there are no item definitions.
|
boolean |
isIgnored()
Item definition that has this flag set should be ignored by any processing.
|
boolean |
isObjectCountingEnabled() |
boolean |
isObjectMarker()
Flag indicating whether this type was marked as "object"
in the original schema.
|
boolean |
isPagedSearchEnabled() |
boolean |
isPrimaryIdentifier(QName attrName)
Returns true if the attribute with a given name is among primary identifiers.
|
boolean |
isRuntimeSchema()
This means that the entities described by this schema (items, complex types) or their content
is not defined by fixed (compile-time) schema.
|
boolean |
isSecondaryIdentifier(QName attrName)
Returns true if the attribute with a given name is among secondary identifiers.
|
boolean |
isXsdAnyMarker()
True if the complex type definition contains xsd:any (directly or indirectly).
|
boolean |
matches(ShadowType shadowType) |
void |
merge(ComplexTypeDefinition otherComplexTypeDef)
Copies cloned definitions from the other type definition into this one.
|
void |
revive(PrismContext prismContext) |
String |
toString() |
finalize, getClass, notify, notifyAll, wait, wait, wait
createBlankShadow, findAttributeDefinition
toResourceAttributeContainerDefinition, toResourceAttributeContainerDefinition
getSchemaRegistry
findContainerDefinition, findContainerDefinition, findContainerDefinition, findItemDefinition, findItemDefinition, findItemDefinition, findPropertyDefinition, findPropertyDefinition, findReferenceDefinition, findReferenceDefinition
public CompositeRefinedObjectClassDefinitionImpl(@NotNull RefinedObjectClassDefinition structuralObjectClassDefinition, Collection<RefinedObjectClassDefinition> auxiliaryObjectClassDefinitions)
public RefinedObjectClassDefinition getStructuralObjectClassDefinition()
getStructuralObjectClassDefinition
in interface CompositeRefinedObjectClassDefinition
@NotNull public Collection<RefinedObjectClassDefinition> getAuxiliaryObjectClassDefinitions()
getAuxiliaryObjectClassDefinitions
in interface CompositeRefinedObjectClassDefinition
getAuxiliaryObjectClassDefinitions
in interface RefinedObjectClassDefinition
public PrismObjectDefinition<ShadowType> getObjectDefinition()
getObjectDefinition
in interface RefinedObjectClassDefinition
public Class<?> getCompileTimeClass()
TypeDefinition
getCompileTimeClass
in interface TypeDefinition
public boolean isContainerMarker()
ComplexTypeDefinition
isContainerMarker
in interface ComplexTypeDefinition
public boolean isPrimaryIdentifier(QName attrName)
ObjectClassComplexTypeDefinition
isPrimaryIdentifier
in interface ObjectClassComplexTypeDefinition
public boolean isObjectMarker()
ComplexTypeDefinition
isObjectMarker
in interface ComplexTypeDefinition
public boolean isIgnored()
Definition
isIgnored
in interface Definition
public boolean isEmphasized()
Definition
isEmphasized
in interface Definition
public boolean isAbstract()
isAbstract
in interface Definition
public QName getSuperType()
TypeDefinition
getSuperType
in interface TypeDefinition
public boolean isSecondaryIdentifier(QName attrName)
ObjectClassComplexTypeDefinition
isSecondaryIdentifier
in interface ObjectClassComplexTypeDefinition
public boolean isDeprecated()
isDeprecated
in interface Definition
public Integer getDisplayOrder()
Definition
getDisplayOrder
in interface Definition
public <X> RefinedAttributeDefinition<X> getDescriptionAttribute()
ObjectClassComplexTypeDefinition
getDescriptionAttribute
in interface RefinedObjectClassDefinition
getDescriptionAttribute
in interface ObjectClassComplexTypeDefinition
public <X> RefinedAttributeDefinition<X> getNamingAttribute()
ObjectClassComplexTypeDefinition
getNamingAttribute
in interface RefinedObjectClassDefinition
getNamingAttribute
in interface ObjectClassComplexTypeDefinition
public String getHelp()
Definition
getHelp
in interface Definition
@NotNull public QName getTypeName()
Definition
getTypeName
in interface Definition
public String getNativeObjectClass()
ObjectClassComplexTypeDefinition
getNativeObjectClass
in interface ObjectClassComplexTypeDefinition
public String getDocumentation()
getDocumentation
in interface Definition
public boolean isDefaultInAKind()
ObjectClassComplexTypeDefinition
isDefaultInAKind
in interface ObjectClassComplexTypeDefinition
public String getDocumentationPreview()
Definition
getDocumentationPreview
in interface Definition
public String getIntent()
ObjectClassComplexTypeDefinition
getIntent
in interface ObjectClassComplexTypeDefinition
public ShadowKindType getKind()
ObjectClassComplexTypeDefinition
getKind
in interface ObjectClassComplexTypeDefinition
public boolean isRuntimeSchema()
Definition
isRuntimeSchema
in interface Definition
public <X> RefinedAttributeDefinition<X> getDisplayNameAttribute()
ObjectClassComplexTypeDefinition
getDisplayNameAttribute
in interface RefinedObjectClassDefinition
getDisplayNameAttribute
in interface ObjectClassComplexTypeDefinition
@NotNull public Collection<? extends RefinedAttributeDefinition<?>> getPrimaryIdentifiers()
ObjectClassComplexTypeDefinition
getPrimaryIdentifiers
in interface RefinedObjectClassDefinition
getPrimaryIdentifiers
in interface ObjectClassComplexTypeDefinition
@NotNull public Collection<? extends RefinedAttributeDefinition<?>> getSecondaryIdentifiers()
ObjectClassComplexTypeDefinition
getSecondaryIdentifiers
in interface RefinedObjectClassDefinition
getSecondaryIdentifiers
in interface ObjectClassComplexTypeDefinition
public Collection<? extends RefinedAttributeDefinition<?>> getAllIdentifiers()
ObjectClassComplexTypeDefinition
getAllIdentifiers
in interface RefinedObjectClassDefinition
getAllIdentifiers
in interface ObjectClassComplexTypeDefinition
public boolean isAuxiliary()
ObjectClassComplexTypeDefinition
isAuxiliary
in interface ObjectClassComplexTypeDefinition
@NotNull public Collection<RefinedAssociationDefinition> getAssociationDefinitions()
RefinedObjectClassDefinition
getAssociationDefinitions
in interface RefinedObjectClassDefinition
public Collection<RefinedAssociationDefinition> getAssociationDefinitions(ShadowKindType kind)
getAssociationDefinitions
in interface RefinedObjectClassDefinition
public Collection<QName> getNamesOfAssociations()
getNamesOfAssociations
in interface RefinedObjectClassDefinition
public boolean isEmpty()
ComplexTypeDefinition
isEmpty
in interface ComplexTypeDefinition
public Collection<ResourceObjectPattern> getProtectedObjectPatterns()
getProtectedObjectPatterns
in interface RefinedObjectClassDefinition
public String getDisplayName()
Definition
getDisplayName
in interface Definition
public String getDescription()
getDescription
in interface RefinedObjectClassDefinition
public boolean isDefault()
isDefault
in interface RefinedObjectClassDefinition
public ResourceType getResourceType()
getResourceType
in interface RefinedObjectClassDefinition
public ObjectClassComplexTypeDefinition getObjectClassDefinition()
getObjectClassDefinition
in interface RefinedObjectClassDefinition
public ResourceObjectReferenceType getBaseContext()
getBaseContext
in interface RefinedObjectClassDefinition
public ResourceObjectVolatilityType getVolatility()
getVolatility
in interface RefinedObjectClassDefinition
public List<MappingType> getPasswordInbound()
getPasswordInbound
in interface RefinedObjectClassDefinition
public MappingType getPasswordOutbound()
getPasswordOutbound
in interface RefinedObjectClassDefinition
public AttributeFetchStrategyType getPasswordFetchStrategy()
getPasswordFetchStrategy
in interface RefinedObjectClassDefinition
public ObjectReferenceType getPasswordPolicy()
getPasswordPolicy
in interface RefinedObjectClassDefinition
public ResourceActivationDefinitionType getActivationSchemaHandling()
getActivationSchemaHandling
in interface RefinedObjectClassDefinition
public ResourceBidirectionalMappingType getActivationBidirectionalMappingType(QName propertyName)
getActivationBidirectionalMappingType
in interface RefinedObjectClassDefinition
public AttributeFetchStrategyType getActivationFetchStrategy(QName propertyName)
getActivationFetchStrategy
in interface RefinedObjectClassDefinition
public boolean matches(ShadowType shadowType)
matches
in interface RefinedObjectClassDefinition
public <T extends CapabilityType> T getEffectiveCapability(Class<T> capabilityClass)
getEffectiveCapability
in interface RefinedObjectClassDefinition
public PagedSearchCapabilityType getPagedSearches()
getPagedSearches
in interface RefinedObjectClassDefinition
public boolean isPagedSearchEnabled()
isPagedSearchEnabled
in interface RefinedObjectClassDefinition
public boolean isObjectCountingEnabled()
isObjectCountingEnabled
in interface RefinedObjectClassDefinition
public <T extends ItemDefinition> T findItemDefinition(@NotNull QName name, @NotNull Class<T> clazz, boolean caseInsensitive)
findItemDefinition
in interface LocalDefinitionStore
public <ID extends ItemDefinition> ID findNamedItemDefinition(@NotNull QName firstName, @NotNull ItemPath rest, @NotNull Class<ID> clazz)
findNamedItemDefinition
in interface LocalDefinitionStore
@NotNull public Collection<? extends RefinedAttributeDefinition<?>> getAttributeDefinitions()
RefinedObjectClassDefinition
getAttributeDefinitions
in interface RefinedObjectClassDefinition
getAttributeDefinitions
in interface ObjectClassComplexTypeDefinition
public PrismContext getPrismContext()
getPrismContext
in interface Definition
public void revive(PrismContext prismContext)
revive
in interface ComplexTypeDefinition
revive
in interface Revivable
@NotNull public List<? extends ItemDefinition> getDefinitions()
ComplexTypeDefinition
getDefinitions
in interface ComplexTypeDefinition
public QName getExtensionForType()
ComplexTypeDefinition
getExtensionForType
in interface ComplexTypeDefinition
public boolean isXsdAnyMarker()
ComplexTypeDefinition
isXsdAnyMarker
in interface ComplexTypeDefinition
public String getDefaultNamespace()
ComplexTypeDefinition
getDefaultNamespace
in interface ComplexTypeDefinition
@NotNull public List<String> getIgnoredNamespaces()
ComplexTypeDefinition
getIgnoredNamespaces
in interface ComplexTypeDefinition
public LayerRefinedObjectClassDefinition forLayer(@NotNull LayerType layerType)
forLayer
in interface RefinedObjectClassDefinition
public <X> RefinedAttributeDefinition<X> findAttributeDefinition(QName elementQName, boolean caseInsensitive)
ObjectClassComplexTypeDefinition
findAttributeDefinition
in interface ObjectClassComplexTypeDefinition
elementQName
- property definition namepublic <X> RefinedAttributeDefinition<X> findAttributeDefinition(@NotNull QName name)
ObjectClassComplexTypeDefinition
findAttributeDefinition
in interface RefinedObjectClassDefinition
findAttributeDefinition
in interface ObjectClassComplexTypeDefinition
name
- property definition namepublic RefinedAssociationDefinition findAssociationDefinition(QName name)
findAssociationDefinition
in interface RefinedObjectClassDefinition
public Collection<RefinedAssociationDefinition> getEntitlementAssociationDefinitions()
getEntitlementAssociationDefinitions
in interface RefinedObjectClassDefinition
public RefinedAssociationDefinition findEntitlementAssociationDefinition(QName name)
findEntitlementAssociationDefinition
in interface RefinedObjectClassDefinition
public Collection<? extends QName> getNamesOfAssociationsWithOutboundExpressions()
getNamesOfAssociationsWithOutboundExpressions
in interface RefinedObjectClassDefinition
public boolean hasAuxiliaryObjectClass(QName expectedObjectClassName)
hasAuxiliaryObjectClass
in interface RefinedObjectClassDefinition
public ResourceAttributeContainer instantiate(QName elementName)
instantiate
in interface ObjectClassComplexTypeDefinition
public <ID extends ItemDefinition> ID findItemDefinition(@NotNull ItemPath path, @NotNull Class<ID> clazz)
findItemDefinition
in interface LocalDefinitionStore
public void merge(ComplexTypeDefinition otherComplexTypeDef)
ComplexTypeDefinition
merge
in interface ComplexTypeDefinition
public String getResourceNamespace()
getResourceNamespace
in interface RefinedObjectClassDefinition
public Class getTypeClassIfKnown()
getTypeClassIfKnown
in interface Definition
public Class getTypeClass()
getTypeClass
in interface Definition
public boolean containsAttributeDefinition(ItemPathType pathType)
containsAttributeDefinition
in interface RefinedObjectClassDefinition
public boolean containsAttributeDefinition(QName attributeName)
containsAttributeDefinition
in interface RefinedObjectClassDefinition
public ObjectQuery createShadowSearchQuery(String resourceOid) throws SchemaException
createShadowSearchQuery
in interface ObjectClassComplexTypeDefinition
SchemaException
public PrismObject<ShadowType> createBlankShadow(RefinedObjectClassDefinition definition)
createBlankShadow
in interface RefinedObjectClassDefinition
public ResourceShadowDiscriminator getShadowDiscriminator()
getShadowDiscriminator
in interface RefinedObjectClassDefinition
public Collection<? extends QName> getNamesOfAttributesWithOutboundExpressions()
getNamesOfAttributesWithOutboundExpressions
in interface RefinedObjectClassDefinition
public Collection<? extends QName> getNamesOfAttributesWithInboundExpressions()
getNamesOfAttributesWithInboundExpressions
in interface RefinedObjectClassDefinition
public ResourcePasswordDefinitionType getPasswordDefinition()
getPasswordDefinition
in interface RefinedObjectClassDefinition
@NotNull public CompositeRefinedObjectClassDefinitionImpl clone()
ComplexTypeDefinition
clone
in interface RefinedObjectClassDefinition
clone
in interface ComplexTypeDefinition
clone
in interface Definition
clone
in interface ObjectClassComplexTypeDefinition
clone
in class Object
public String debugDump()
DebugDumpable
debugDump
in interface DebugDumpable
public String debugDump(int indent)
debugDump
in interface DebugDumpable
public String getDebugDumpClassName()
getDebugDumpClassName
in interface RefinedObjectClassDefinition
public String getHumanReadableName()
getHumanReadableName
in interface RefinedObjectClassDefinition
@NotNull public CompositeRefinedObjectClassDefinitionImpl deepClone(Map<QName,ComplexTypeDefinition> ctdMap)
ComplexTypeDefinition
deepClone
in interface RefinedObjectClassDefinition
deepClone
in interface ComplexTypeDefinition
ctdMap
- Keeps already cloned definitions in order to prevent indefinite loops.Copyright © 2017 Evolveum. All rights reserved.