Search in sources :

Example 6 with LogicActions

use of org.apache.syncope.core.provisioning.api.LogicActions in project syncope by apache.

the class AbstractAnyLogic method afterCreate.

protected ProvisioningResult<TO> afterCreate(final TO input, final List<PropagationStatus> statuses, final List<LogicActions> actions) {
    TO any = input;
    for (LogicActions action : actions) {
        any = action.afterCreate(any);
    }
    ProvisioningResult<TO> result = new ProvisioningResult<>();
    result.setEntity(any);
    result.getPropagationStatuses().addAll(statuses);
    return result;
}
Also used : ProvisioningResult(org.apache.syncope.common.lib.to.ProvisioningResult) AnyTO(org.apache.syncope.common.lib.to.AnyTO) GroupTO(org.apache.syncope.common.lib.to.GroupTO) UserTO(org.apache.syncope.common.lib.to.UserTO) LogicActions(org.apache.syncope.core.provisioning.api.LogicActions)

Aggregations

LogicActions (org.apache.syncope.core.provisioning.api.LogicActions)6 AnyTO (org.apache.syncope.common.lib.to.AnyTO)5 GroupTO (org.apache.syncope.common.lib.to.GroupTO)5 UserTO (org.apache.syncope.common.lib.to.UserTO)5 SyncopeClientException (org.apache.syncope.common.lib.SyncopeClientException)3 ProvisioningResult (org.apache.syncope.common.lib.to.ProvisioningResult)3 Realm (org.apache.syncope.core.persistence.api.entity.Realm)3 HashSet (java.util.HashSet)1 AnyType (org.apache.syncope.core.persistence.api.entity.AnyType)1 DelegatedAdministrationException (org.apache.syncope.core.spring.security.DelegatedAdministrationException)1