Skip to content

Commit

Permalink
Added getters to CertDecisionDto.
Browse files Browse the repository at this point in the history
  • Loading branch information
mederly committed May 21, 2015
1 parent fe9acfb commit df98c3c
Showing 1 changed file with 10 additions and 0 deletions.
Expand Up @@ -22,6 +22,7 @@
import com.evolveum.midpoint.xml.ns._public.common.common_3.AccessCertificationDecisionType;
import com.evolveum.midpoint.xml.ns._public.common.common_3.AccessCertificationResponseType;
import com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectReferenceType;
import org.apache.commons.lang3.Validate;
import org.apache.poi.ss.formula.functions.T;

import java.io.Serializable;
Expand All @@ -43,6 +44,8 @@ public class CertDecisionDto extends Selectable {
private AccessCertificationDecisionType decision;

public CertDecisionDto(AccessCertificationCaseType _case) {
Validate.notNull(_case);

this.certCase = _case;
this.subjectName = getName(_case.getSubjectRef());
this.targetName = getName(_case.getTargetRef());
Expand Down Expand Up @@ -103,5 +106,12 @@ public void setResponse(String value) {
}
}

public ObjectReferenceType getCampaignRef() {
return certCase.getCampaignRef();
}

public Long getCaseId() {
return certCase.asPrismContainerValue().getId();
}

}

0 comments on commit df98c3c

Please sign in to comment.