public final class AnyOperations extends Object
Modifier and Type | Method and Description |
---|---|
static void |
cleanEmptyAttrs(AnyTO anyTO,
AnyPatch patch)
Add PLAIN attribute DELETE patch for those attributes of the input AnyTO without values or containing null value
|
static AnyObjectPatch |
diff(AnyObjectTO updated,
AnyObjectTO original,
boolean incremental)
Calculate modifications needed by first in order to be equal to second.
|
static GroupPatch |
diff(GroupTO updated,
GroupTO original,
boolean incremental)
Calculate modifications needed by first in order to be equal to second.
|
static <TO extends AnyTO,P extends AnyPatch> |
diff(TO updated,
TO original,
boolean incremental) |
static UserPatch |
diff(UserTO updated,
UserTO original,
boolean incremental)
Calculate modifications needed by first in order to be equal to second.
|
static AnyObjectTO |
patch(AnyObjectTO anyObjectTO,
AnyObjectPatch anyObjectPatch) |
static AnyTO |
patch(AnyTO anyTO,
AnyPatch anyPatch) |
static GroupTO |
patch(GroupTO groupTO,
GroupPatch groupPatch) |
static UserTO |
patch(UserTO userTO,
UserPatch userPatch) |
public static AnyObjectPatch diff(AnyObjectTO updated, AnyObjectTO original, boolean incremental)
updated
- updated AnyObjectTOoriginal
- original AnyObjectTOincremental
- perform incremental diff (without removing existing info)public static UserPatch diff(UserTO updated, UserTO original, boolean incremental)
updated
- updated UserTOoriginal
- original UserTOincremental
- perform incremental diff (without removing existing info)public static GroupPatch diff(GroupTO updated, GroupTO original, boolean incremental)
updated
- updated GroupTOoriginal
- original GroupTOincremental
- perform incremental diff (without removing existing info)public static <TO extends AnyTO,P extends AnyPatch> P diff(TO updated, TO original, boolean incremental)
public static GroupTO patch(GroupTO groupTO, GroupPatch groupPatch)
public static AnyObjectTO patch(AnyObjectTO anyObjectTO, AnyObjectPatch anyObjectPatch)
public static void cleanEmptyAttrs(AnyTO anyTO, AnyPatch patch)
anyTO
- User, Group or Any Object to look for attributes with no valuepatch
- patch to enrich with DELETE statementsCopyright © 2010–2023 The Apache Software Foundation. All rights reserved.