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 ShadowType
getBean()
static @Nullable ShadowType
getBean
(@Nullable RawRepoShadow repoShadow) getName()
@NotNull String
getOid()
static String
getOid
(@Nullable RawRepoShadow repoShadow) @NotNull PrismObject<ShadowType>
Collection<Item<?,
?>> @Nullable String
@NotNull String
Collection<Item<?,
?>> static @NotNull RawRepoShadow
of
(@NotNull PrismObject<ShadowType> shadowObject) static @NotNull RawRepoShadow
of
(@NotNull ShadowType bean) static @Nullable RawRepoShadow
selectLiveShadow
(@NotNull List<PrismObject<ShadowType>> shadows, Object context) void
Show the content of the object intended for diagnostics.toString()
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDumpLazily, debugDumpLazily
Methods 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:
debugDump
in interfaceDebugDumpable
-
toString
-
getName
-
getPrismObject
-
shortDump
Description copied from interface:ShortDumpable
Show 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:
shortDump
in 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
-