public class RefinedObjectClassDefinitionImpl extends Object implements RefinedObjectClassDefinition
INDENT_STRING
Modifier and Type | Method and Description |
---|---|
RefinedObjectClassDefinitionImpl |
clone()
Does a shallow clone of this definition (i.e.
|
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) |
static String |
debugDump(int indent,
LayerType layer,
RefinedObjectClassDefinition _this) |
RefinedObjectClassDefinition |
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.
|
RefinedAssociationDefinition |
findEntitlementAssociationDefinition(QName name) |
<ID extends ItemDefinition> |
findItemDefinition(ItemPath path,
Class<ID> clazz) |
<ID extends ItemDefinition> |
findItemDefinition(QName name,
Class<ID> clazz,
boolean caseInsensitive) |
<ID extends ItemDefinition> |
findNamedItemDefinition(QName firstName,
ItemPath rest,
Class<ID> clazz) |
LayerRefinedObjectClassDefinition |
forLayer(LayerType layerType)
Creates a derived version of this ROCD for a given layer.
|
ResourceBidirectionalMappingType |
getActivationBidirectionalMappingType(QName propertyName) |
AttributeFetchStrategyType |
getActivationFetchStrategy(QName propertyName) |
ResourceActivationDefinitionType |
getActivationSchemaHandling() |
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) |
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<RefinedAttributeDefinition<?>> |
getPrimaryIdentifiers()
Returns the definition of primary identifier attributes of a resource object.
|
PrismContext |
getPrismContext() |
Collection<ResourceObjectPattern> |
getProtectedObjectPatterns() |
String |
getResourceNamespace() |
ResourceType |
getResourceType() |
Collection<RefinedAttributeDefinition<?>> |
getSecondaryIdentifiers()
Returns the definition of secondary identifier attributes of a resource
object.
|
ResourceShadowDiscriminator |
getShadowDiscriminator() |
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 |
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 |
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.
|
static RefinedObjectClassDefinition |
parseFromSchema(ObjectClassComplexTypeDefinition objectClassDef,
ResourceType resourceType,
RefinedResourceSchema rSchema,
PrismContext prismContext,
String contextDescription) |
void |
revive(PrismContext prismContext) |
void |
setIntent(String intent) |
void |
setKind(ShadowKindType kind) |
String |
toString() |
finalize, getClass, notify, notifyAll, wait, wait, wait
containsAttributeDefinition, containsAttributeDefinition, createBlankShadow, findAttributeDefinition, getAllIdentifiers, getEntitlementAssociationDefinitions
findAttributeDefinition, isPrimaryIdentifier, isSecondaryIdentifier, toResourceAttributeContainerDefinition, toResourceAttributeContainerDefinition
getSchemaRegistry
findContainerDefinition, findContainerDefinition, findContainerDefinition, findItemDefinition, findItemDefinition, findItemDefinition, findPropertyDefinition, findPropertyDefinition, findReferenceDefinition, findReferenceDefinition
@NotNull public Collection<? extends RefinedAttributeDefinition<?>> getAttributeDefinitions()
RefinedObjectClassDefinition
getAttributeDefinitions
in interface RefinedObjectClassDefinition
getAttributeDefinitions
in interface ObjectClassComplexTypeDefinition
@NotNull public List<? extends ItemDefinition> getDefinitions()
ComplexTypeDefinition
getDefinitions
in interface ComplexTypeDefinition
public Collection<? extends QName> getNamesOfAttributesWithOutboundExpressions()
getNamesOfAttributesWithOutboundExpressions
in interface RefinedObjectClassDefinition
public Collection<? extends QName> getNamesOfAttributesWithInboundExpressions()
getNamesOfAttributesWithInboundExpressions
in interface RefinedObjectClassDefinition
public <ID extends ItemDefinition> ID findItemDefinition(@NotNull QName name, @NotNull Class<ID> clazz, boolean caseInsensitive)
findItemDefinition
in interface LocalDefinitionStore
@NotNull public Collection<RefinedAttributeDefinition<?>> getPrimaryIdentifiers()
ObjectClassComplexTypeDefinition
getPrimaryIdentifiers
in interface RefinedObjectClassDefinition
getPrimaryIdentifiers
in interface ObjectClassComplexTypeDefinition
@NotNull public Collection<RefinedAttributeDefinition<?>> getSecondaryIdentifiers()
ObjectClassComplexTypeDefinition
getSecondaryIdentifiers
in interface RefinedObjectClassDefinition
getSecondaryIdentifiers
in interface ObjectClassComplexTypeDefinition
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 <X> RefinedAttributeDefinition<X> getDisplayNameAttribute()
ObjectClassComplexTypeDefinition
getDisplayNameAttribute
in interface RefinedObjectClassDefinition
getDisplayNameAttribute
in interface ObjectClassComplexTypeDefinition
@NotNull public Collection<RefinedAssociationDefinition> getAssociationDefinitions()
RefinedObjectClassDefinition
getAssociationDefinitions
in interface RefinedObjectClassDefinition
public Collection<RefinedAssociationDefinition> getAssociationDefinitions(ShadowKindType kind)
getAssociationDefinitions
in interface RefinedObjectClassDefinition
public RefinedAssociationDefinition findAssociationDefinition(QName name)
findAssociationDefinition
in interface RefinedObjectClassDefinition
public RefinedAssociationDefinition findEntitlementAssociationDefinition(QName name)
findEntitlementAssociationDefinition
in interface RefinedObjectClassDefinition
public Collection<QName> getNamesOfAssociations()
getNamesOfAssociations
in interface RefinedObjectClassDefinition
public Collection<? extends QName> getNamesOfAssociationsWithOutboundExpressions()
getNamesOfAssociationsWithOutboundExpressions
in interface RefinedObjectClassDefinition
public String getDisplayName()
Definition
getDisplayName
in interface Definition
public String getDescription()
getDescription
in interface RefinedObjectClassDefinition
public ObjectClassComplexTypeDefinition getObjectClassDefinition()
getObjectClassDefinition
in interface RefinedObjectClassDefinition
@NotNull public ResourceType getResourceType()
getResourceType
in interface RefinedObjectClassDefinition
public String getResourceNamespace()
getResourceNamespace
in interface RefinedObjectClassDefinition
public boolean isDefault()
isDefault
in interface RefinedObjectClassDefinition
public boolean isDefaultInAKind()
ObjectClassComplexTypeDefinition
isDefaultInAKind
in interface ObjectClassComplexTypeDefinition
public ResourceObjectReferenceType getBaseContext()
getBaseContext
in interface RefinedObjectClassDefinition
public String getIntent()
ObjectClassComplexTypeDefinition
getIntent
in interface ObjectClassComplexTypeDefinition
public void setIntent(String intent)
public ShadowKindType getKind()
ObjectClassComplexTypeDefinition
getKind
in interface ObjectClassComplexTypeDefinition
public void setKind(ShadowKindType kind)
public ResourceObjectVolatilityType getVolatility()
getVolatility
in interface RefinedObjectClassDefinition
public PrismObjectDefinition<ShadowType> getObjectDefinition()
getObjectDefinition
in interface RefinedObjectClassDefinition
public PrismObject<ShadowType> createBlankShadow(RefinedObjectClassDefinition definition)
createBlankShadow
in interface RefinedObjectClassDefinition
public ResourceShadowDiscriminator getShadowDiscriminator()
getShadowDiscriminator
in interface RefinedObjectClassDefinition
public boolean matches(ShadowType shadowType)
matches
in interface RefinedObjectClassDefinition
public ObjectQuery createShadowSearchQuery(String resourceOid) throws SchemaException
createShadowSearchQuery
in interface ObjectClassComplexTypeDefinition
SchemaException
@NotNull public Collection<RefinedObjectClassDefinition> getAuxiliaryObjectClassDefinitions()
getAuxiliaryObjectClassDefinitions
in interface RefinedObjectClassDefinition
public boolean hasAuxiliaryObjectClass(QName expectedObjectClassName)
hasAuxiliaryObjectClass
in interface RefinedObjectClassDefinition
public Collection<ResourceObjectPattern> getProtectedObjectPatterns()
getProtectedObjectPatterns
in interface RefinedObjectClassDefinition
public ResourcePasswordDefinitionType getPasswordDefinition()
getPasswordDefinition
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 <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
@NotNull public RefinedObjectClassDefinitionImpl clone()
ComplexTypeDefinition
clone
in interface RefinedObjectClassDefinition
clone
in interface ComplexTypeDefinition
clone
in interface Definition
clone
in interface ObjectClassComplexTypeDefinition
clone
in class Object
@NotNull public RefinedObjectClassDefinition 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.public LayerRefinedObjectClassDefinition forLayer(@NotNull LayerType layerType)
forLayer
in interface RefinedObjectClassDefinition
layerType
- @NotNull public QName getTypeName()
Definition
getTypeName
in interface Definition
public String getNativeObjectClass()
ObjectClassComplexTypeDefinition
getNativeObjectClass
in interface ObjectClassComplexTypeDefinition
public boolean isAuxiliary()
ObjectClassComplexTypeDefinition
isAuxiliary
in interface ObjectClassComplexTypeDefinition
public PrismContext getPrismContext()
getPrismContext
in interface Definition
@Nullable public Class<?> getCompileTimeClass()
TypeDefinition
getCompileTimeClass
in interface TypeDefinition
@Nullable public QName getExtensionForType()
ComplexTypeDefinition
getExtensionForType
in interface ComplexTypeDefinition
public boolean isContainerMarker()
ComplexTypeDefinition
isContainerMarker
in interface ComplexTypeDefinition
public boolean isObjectMarker()
ComplexTypeDefinition
isObjectMarker
in interface ComplexTypeDefinition
public boolean isXsdAnyMarker()
ComplexTypeDefinition
isXsdAnyMarker
in interface ComplexTypeDefinition
public <ID extends ItemDefinition> ID findItemDefinition(@NotNull ItemPath path, @NotNull Class<ID> clazz)
findItemDefinition
in interface LocalDefinitionStore
public <ID extends ItemDefinition> ID findNamedItemDefinition(@NotNull QName firstName, @NotNull ItemPath rest, @NotNull Class<ID> clazz)
findNamedItemDefinition
in interface LocalDefinitionStore
@Nullable public String getDefaultNamespace()
ComplexTypeDefinition
getDefaultNamespace
in interface ComplexTypeDefinition
public boolean isRuntimeSchema()
Definition
isRuntimeSchema
in interface Definition
@NotNull public List<String> getIgnoredNamespaces()
ComplexTypeDefinition
getIgnoredNamespaces
in interface ComplexTypeDefinition
@Nullable public QName getSuperType()
TypeDefinition
getSuperType
in interface TypeDefinition
public void merge(ComplexTypeDefinition otherComplexTypeDef)
ComplexTypeDefinition
merge
in interface ComplexTypeDefinition
public void revive(PrismContext prismContext)
revive
in interface ComplexTypeDefinition
revive
in interface Revivable
public boolean isIgnored()
Definition
isIgnored
in interface Definition
public boolean isAbstract()
isAbstract
in interface Definition
public boolean isEmpty()
ComplexTypeDefinition
isEmpty
in interface ComplexTypeDefinition
public boolean isDeprecated()
isDeprecated
in interface Definition
public boolean isEmphasized()
Definition
isEmphasized
in interface Definition
public Integer getDisplayOrder()
Definition
getDisplayOrder
in interface Definition
public String getHelp()
Definition
getHelp
in interface Definition
public String getDocumentation()
getDocumentation
in interface Definition
public String getDocumentationPreview()
Definition
getDocumentationPreview
in interface Definition
public Class getTypeClassIfKnown()
getTypeClassIfKnown
in interface Definition
public Class getTypeClass()
getTypeClass
in interface Definition
public ResourceAttributeContainer instantiate(QName elementName)
instantiate
in interface ObjectClassComplexTypeDefinition
public static RefinedObjectClassDefinition parseFromSchema(ObjectClassComplexTypeDefinition objectClassDef, ResourceType resourceType, RefinedResourceSchema rSchema, PrismContext prismContext, String contextDescription) throws SchemaException
SchemaException
public String debugDump()
DebugDumpable
debugDump
in interface DebugDumpable
public String debugDump(int indent)
debugDump
in interface DebugDumpable
public static String debugDump(int indent, LayerType layer, RefinedObjectClassDefinition _this)
public String getDebugDumpClassName()
getDebugDumpClassName
in interface RefinedObjectClassDefinition
public String getHumanReadableName()
getHumanReadableName
in interface RefinedObjectClassDefinition
public <X> RefinedAttributeDefinition<X> findAttributeDefinition(@NotNull QName name)
ObjectClassComplexTypeDefinition
findAttributeDefinition
in interface RefinedObjectClassDefinition
findAttributeDefinition
in interface ObjectClassComplexTypeDefinition
name
- property definition nameCopyright © 2017 Evolveum. All rights reserved.