001 /*
002 * Copyright 2010 The Kuali Foundation
003 *
004 * Licensed under the Educational Community License, Version 2.0 (the
005 * "License"); you may not use this file except in compliance with the
006 * License. You may obtain a copy of the License at
007 *
008 * http://www.osedu.org/licenses/ECL-2.0
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
013 * implied. See the License for the specific language governing
014 * permissions and limitations under the License.
015 */
016
017 package org.kuali.student.r2.common.dto;
018
019 import org.kuali.student.r2.common.infc.BulkStatus;
020 //import org.w3c.dom.Element;
021
022 import javax.xml.bind.annotation.XmlAccessType;
023 import javax.xml.bind.annotation.XmlAccessorType;
024 import javax.xml.bind.annotation.XmlAnyElement;
025 import javax.xml.bind.annotation.XmlElement;
026 import javax.xml.bind.annotation.XmlType;
027 import java.io.Serializable;
028 import java.util.List;
029
030 /**
031 * Information about the state of an object
032 *
033 * @author nwright
034 */
035
036 @XmlAccessorType(XmlAccessType.FIELD)
037 @XmlType(name = "BulkStatusInfo", propOrder = {"id", "isSuccess", "message" })//, "_futureElements"}) TODO KSCM-372: Non-GWT translatable code})
038 public class BulkStatusInfo
039 implements BulkStatus, Serializable {
040
041 private static final long serialVersionUID = 1L;
042
043 @XmlElement
044 private String id;
045
046 @XmlElement
047 private Boolean isSuccess;
048
049 @XmlElement
050 private String message;
051
052 // TODO KSCM-372: Non-GWT translatable code
053 // @XmlAnyElement
054 // private List<Element> _futureElements;
055
056 public BulkStatusInfo() {
057 }
058
059 public BulkStatusInfo(BulkStatus bulkStatus) {
060 this.id = bulkStatus.getId();
061 this.isSuccess = bulkStatus.getIsSuccess();
062 this.message = bulkStatus.getMessage();
063 }
064
065 @Override
066 public String getId() {
067 return id;
068 }
069
070 public void setId(String id) {
071 this.id = id;
072 }
073
074
075
076 @Override
077 public Boolean getIsSuccess(){
078 return isSuccess;
079 }
080
081 public void setSuccess(Boolean success) {
082 this.isSuccess = success;
083 }
084
085 @Override
086 public String getMessage() {
087 return message;
088 }
089
090 public void setMessage(String message) {
091 this.message = message;
092 }
093 }
094