Package org.apache.syncope.common.lib
Class AnyOperations
java.lang.Object
org.apache.syncope.common.lib.AnyOperations
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
cleanEmptyAttrs
(AnyTO anyTO, AnyUR anyUR) Add PLAIN attribute DELETE patch for those attributes of the input AnyTO without values or containing null valuestatic AnyObjectUR
diff
(AnyObjectTO updated, AnyObjectTO original, boolean incremental) Calculate modifications needed by first in order to be equal to second.static GroupUR
Calculate modifications needed by first in order to be equal to second.static UserUR
Calculate modifications needed by first in order to be equal to second.diff
(TO updated, TO original, boolean incremental) static AnyObjectTO
patch
(AnyObjectTO anyObjectTO, AnyObjectUR anyObjectUR) static AnyTO
static GroupTO
static UserTO
-
Method Details
-
diff
Calculate modifications needed by first in order to be equal to second.- Parameters:
updated
- updated AnyObjectTOoriginal
- original AnyObjectTOincremental
- perform incremental diff (without removing existing info)- Returns:
AnyObjectUR
containing differences
-
diff
Calculate modifications needed by first in order to be equal to second.- Parameters:
updated
- updated UserTOoriginal
- original UserTOincremental
- perform incremental diff (without removing existing info)- Returns:
UserUR
containing differences
-
diff
Calculate modifications needed by first in order to be equal to second.- Parameters:
updated
- updated GroupTOoriginal
- original GroupTOincremental
- perform incremental diff (without removing existing info)- Returns:
GroupUR
containing differences
-
diff
-
patch
-
patch
-
patch
-
patch
-
cleanEmptyAttrs
Add PLAIN attribute DELETE patch for those attributes of the input AnyTO without values or containing null value- Parameters:
anyTO
- User, Group or Any Object to look for attributes with no valueanyUR
- update req to enrich with DELETE statements
-