Class RawRepoShadow
java.lang.Object
com.evolveum.midpoint.schema.util.RawRepoShadow
- All Implemented Interfaces:
DebugDumpable,ShortDumpable
A shadow that was fetched from the repository OR that is going to be (or was) added to the repository.
In both cases, the simple attributes are meant to be "in the repository format", i.e. normalized.
Reference attributes are placed in `referenceAttributes` container, and are guaranteed to have OIDs.
Moreover, in the former case, it can be in a not-very-consistent state,
for example, with obsolete (or no) attribute definitions.
The primary use of this object is to facilitate updating of the shadow in the repository.
Then it can be converted into `RepoShadow` (
AbstractShadow) that is more consistent and generally useful.
As far as the attributes are concerned, they are stored in bean as they were obtained from the repository
(in non-raw mode). Concerning their definitions, they may be:
- raw (no definition), if coming from 4.8 and earlier version of midPoint,
- with dynamic definitions, coming from xsi:type declarations in the full object in repository,
- with dynamic definitions, coming from the "ext item dictionary" for index-only attributes (if requested to be read).
FIXME update the above description
NOTE: The "raw" does not mean that the shadow was fetched from the repository in raw mode.
(Funny enough, if the raw mode was used, the attributes would get their estimated definitions even in 4.8.)-
Field Summary
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING -
Method Summary
Modifier and TypeMethodDescriptionclone()debugDump(int indent) @NotNull ShadowTypegetBean()static @Nullable ShadowTypegetBean(@Nullable RawRepoShadow repoShadow) getName()@NotNull StringgetOid()static StringgetOid(@Nullable RawRepoShadow repoShadow) @NotNull PrismObject<ShadowType>Collection<Item<?,?>> @Nullable String@NotNull StringCollection<Item<?,?>> static @NotNull RawRepoShadowof(@NotNull PrismObject<ShadowType> shadowObject) static @NotNull RawRepoShadowof(@NotNull ShadowType bean) static @Nullable RawRepoShadowselectLiveShadow(@NotNull List<PrismObject<ShadowType>> shadows, Object context) voidShow the content of the object intended for diagnostics.toString()Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDumpLazily, debugDumpLazilyMethods inherited from interface com.evolveum.midpoint.util.ShortDumpable
shortDump, shortDumpLazily
-
Method Details
-
selectLiveShadow
@Nullable public static @Nullable RawRepoShadow selectLiveShadow(@NotNull @NotNull List<PrismObject<ShadowType>> shadows, Object context) -
of
-
of
@NotNull public static @NotNull RawRepoShadow of(@NotNull @NotNull PrismObject<ShadowType> shadowObject) -
getBean
-
getBean
-
getOid
-
getOid
-
clone
-
debugDump
- Specified by:
debugDumpin interfaceDebugDumpable
-
toString
-
getName
-
getPrismObject
-
shortDump
Description copied from interface:ShortDumpableShow the content of the object intended for diagnostics. This method is supposed to append a compact, human-readable output in a single line. Unlike toString() method, there is no requirement to identify the actual class or type of the object. It is assumed that the class/type will be obvious from the context in which the output is used.- Specified by:
shortDumpin interfaceShortDumpable- Parameters:
sb- StringBuilder to which to a compact one-line content of the object intended for diagnostics by system administrator should be appended.
-
getResourceOid
-
getResourceOidRequired
-
getSimpleAttributes
-
getReferenceAttributes
-