public static ShadowAsserter<Void> forShadow(PrismObject<ShadowType> shadow) { return new ShadowAsserter<>(shadow); }
public static ShadowAsserter<Void> forShadow(PrismObject<ShadowType> shadow, String details) { return new ShadowAsserter<>(shadow, details); }
@Override public ShadowAsserter<ObjectReferenceAsserter<ShadowType, R>> target() throws ObjectNotFoundException, SchemaException { return new ShadowAsserter<>(getResolvedTarget(), this, "object resolved from "+desc()); }
@Override public ShadowAsserter<ObjectReferenceAsserter<ShadowType, R>> resolveTarget() throws ObjectNotFoundException, SchemaException { PrismObject<ShadowType> object = resolveTargetObject(); return new ShadowAsserter<>(object, this, "object resolved from "+desc()); }
public ShadowAsserter<ProjectionContextAsserter<RA>> objectOld() { ShadowAsserter<ProjectionContextAsserter<RA>> shadowAsserter = new ShadowAsserter<ProjectionContextAsserter<RA>>( projectionContext.getObjectOld(), this, "object old in "+desc()); copySetupTo(shadowAsserter); return shadowAsserter; }
public ShadowAsserter<ProjectionContextAsserter<RA>> objectCurrent() { ShadowAsserter<ProjectionContextAsserter<RA>> shadowAsserter = new ShadowAsserter<ProjectionContextAsserter<RA>>( projectionContext.getObjectCurrent(), this, "object current in "+desc()); copySetupTo(shadowAsserter); return shadowAsserter; }
public ShadowAsserter<ProjectionContextAsserter<RA>> objectNew() { ShadowAsserter<ProjectionContextAsserter<RA>> shadowAsserter = new ShadowAsserter<ProjectionContextAsserter<RA>>( projectionContext.getObjectNew(), this, "object new in "+desc()); copySetupTo(shadowAsserter); return shadowAsserter; }
public ShadowAsserter<ParentOrgRefAsserter<R>> shadow() { ShadowAsserter<ParentOrgRefAsserter<R>> asserter = new ShadowAsserter<>((PrismObject<ShadowType>)getRefVal().getObject(), this, "shadow in reference "+desc()); copySetupTo(asserter); return asserter; }
public ShadowAsserter<RoleMembershipRefAsserter<R>> shadow() { ShadowAsserter<RoleMembershipRefAsserter<R>> asserter = new ShadowAsserter<>((PrismObject<ShadowType>)getRefVal().getObject(), this, "shadow in reference "+desc()); copySetupTo(asserter); return asserter; }
public ShadowAsserter<ShadowReferenceAsserter<R>> shadow() { ShadowAsserter<ShadowReferenceAsserter<R>> asserter = new ShadowAsserter<>((PrismObject<ShadowType>)getRefVal().getObject(), this, "shadow in reference "+desc()); copySetupTo(asserter); return asserter; }
public ShadowAsserter<ResourceObjectShadowChangeDescriptionAsserter> currentShadow() { PrismObject<ShadowType> currentShadow = changeDesc.getCurrentShadow(); assertNotNull("No current shadow in change notification", currentShadow); return new ShadowAsserter<>(currentShadow, this, "currentShadow in change notification"); }
public ShadowAsserter<ResourceObjectShadowChangeDescriptionAsserter> oldShadow() { PrismObject<ShadowType> oldShadow = changeDesc.getOldShadow(); assertNotNull("No old shadow in change notification", oldShadow); return new ShadowAsserter<>(oldShadow, this, "oldShadow in change notification"); }
public <A extends FocusAsserter<F,RA>> ShadowAsserter<A> projectionOnResource(String resourceOid) throws ObjectNotFoundException, SchemaException { PrismObject<ShadowType> shadow = findProjectionOnResource(resourceOid); assertNotNull("Projection for resource "+resourceOid+" not found in "+desc(), shadow); ShadowAsserter<A> asserter = new ShadowAsserter<A>(shadow, (A)this, "projection of "+desc()); copySetupTo(asserter); return asserter; }