Package org.apache.syncope.common.lib
Class AnyOperations
java.lang.Object
org.apache.syncope.common.lib.AnyOperations
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidcleanEmptyAttrs(AnyTO anyTO, AnyUR anyUR) Add PLAIN attribute DELETE patch for those attributes of the input AnyTO without values or containing null valuestatic AnyObjectURdiff(AnyObjectTO updated, AnyObjectTO original, boolean incremental) Calculate modifications needed by first in order to be equal to second.static GroupURCalculate modifications needed by first in order to be equal to second.static UserURCalculate modifications needed by first in order to be equal to second.diff(TO updated, TO original, boolean incremental) static AnyObjectTOpatch(AnyObjectTO anyObjectTO, AnyObjectUR anyObjectUR) static AnyTOstatic GroupTOstatic 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:
AnyObjectURcontaining 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:
UserURcontaining 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:
GroupURcontaining 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
-