001package org.kuali.ole.alert.bo;
002
003import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
004
005import java.util.ArrayList;
006import java.util.List;
007
008/**
009 * Created by maheswarang on 12/25/14.
010 */
011public class AlertEvent extends PersistableBusinessObjectBase {
012    private String alertEventId;
013    private String alertEventName;
014    private String alertDocumentTypeId;
015    private String alertDocumentTypeName;
016    private String alertDocumentClassName;
017    private AlertDocumentType alertDocumentType;
018    private List<AlertEventField> alertEventFieldList = new ArrayList<AlertEventField>();
019    private boolean active;
020
021    public String getAlertEventId() {
022        return alertEventId;
023    }
024
025    public void setAlertEventId(String alertEventId) {
026        this.alertEventId = alertEventId;
027    }
028
029    public String getAlertEventName() {
030        return alertEventName;
031    }
032
033    public void setAlertEventName(String alertEventName) {
034        this.alertEventName = alertEventName;
035    }
036
037    public String getAlertDocumentTypeId() {
038        return alertDocumentTypeId;
039    }
040
041    public void setAlertDocumentTypeId(String alertDocumentTypeId) {
042        this.alertDocumentTypeId = alertDocumentTypeId;
043    }
044
045    public List<AlertEventField> getAlertEventFieldList() {
046        return alertEventFieldList;
047    }
048
049    public void setAlertEventFieldList(List<AlertEventField> alertEventFieldList) {
050        this.alertEventFieldList = alertEventFieldList;
051    }
052
053    public boolean isActive() {
054        return active;
055    }
056
057    public void setActive(boolean active) {
058        this.active = active;
059    }
060
061    public String getAlertDocumentTypeName()
062    {
063        if(alertDocumentTypeName==null && alertDocumentType!=null){
064            alertDocumentTypeName = alertDocumentType.getAlertDocumentTypeName();
065        }
066        return alertDocumentTypeName;
067    }
068
069    public void setAlertDocumentTypeName(String alertDocumentTypeName) {
070        this.alertDocumentTypeName = alertDocumentTypeName;
071    }
072
073    public AlertDocumentType getAlertDocumentType() {
074        return alertDocumentType;
075    }
076
077    public void setAlertDocumentType(AlertDocumentType alertDocumentType) {
078        this.alertDocumentType = alertDocumentType;
079    }
080
081    public String getAlertDocumentClassName() {
082
083        if(alertDocumentClassName==null && alertDocumentType!=null){
084            alertDocumentClassName = alertDocumentType.getAlertDocumentClass();
085        }
086        return alertDocumentClassName;
087
088
089    }
090
091    public void setAlertDocumentClassName(String alertDocumentClassName) {
092        this.alertDocumentClassName = alertDocumentClassName;
093    }
094}