001package org.kuali.ole.select.bo; 002 003import org.apache.commons.lang.StringUtils; 004import org.kuali.rice.krad.bo.PersistableBusinessObjectBase; 005 006import java.sql.Timestamp; 007 008 009/** 010 * OleCheckListBo is the business object class for CheckList Maintenance Document 011 */ 012public class OleCheckListBo extends PersistableBusinessObjectBase { 013 private Long oleCheckListId; 014 private Timestamp lastModified; 015 private String description; 016 private String name; 017 private String author; 018 private boolean activeIndicator; 019 private String fileName; 020 private String remoteObjectIdentifier; 021 private String mimeType; 022 023 /** 024 * Gets the oleCheckListId attribute. 025 * 026 * @return Returns the oleCheckListId 027 */ 028 public Long getOleCheckListId() { 029 return oleCheckListId; 030 } 031 032 /** 033 * Sets the oleCheckListId attribute value. 034 * 035 * @param oleCheckListId The oleCheckListId to set. 036 */ 037 public void setOleCheckListId(Long oleCheckListId) { 038 this.oleCheckListId = oleCheckListId; 039 } 040 041 /** 042 * Gets the description attribute. 043 * 044 * @return Returns the description 045 */ 046 public String getDescription() { 047 return description; 048 } 049 050 /** 051 * Sets the description attribute value. 052 * 053 * @param description The description to set. 054 */ 055 public void setDescription(String description) { 056 this.description = description; 057 } 058 059 /** 060 * Gets the lastModified attribute. 061 * 062 * @return Returns the lastModified 063 */ 064 public Timestamp getLastModified() { 065 return lastModified; 066 } 067 068 /** 069 * Sets the lastModified attribute value. 070 * 071 * @param lastModified The lastModified to set. 072 */ 073 public void setLastModified(Timestamp lastModified) { 074 this.lastModified = lastModified; 075 } 076 077 /** 078 * Gets the name attribute. 079 * 080 * @return Returns the name 081 */ 082 public String getName() { 083 return name; 084 } 085 086 /** 087 * Sets the name attribute value. 088 * 089 * @param name The name to set. 090 */ 091 public void setName(String name) { 092 this.name = name; 093 } 094 095 /** 096 * Gets the author attribute. 097 * 098 * @return Returns the author 099 */ 100 public String getAuthor() { 101 return author; 102 } 103 104 /** 105 * Sets the author attribute value. 106 * 107 * @param author The author to set. 108 */ 109 public void setAuthor(String author) { 110 this.author = author; 111 } 112 113 /** 114 * Gets the activeIndicator attribute. 115 * 116 * @return Returns the activeIndicator 117 */ 118 public boolean isActiveIndicator() { 119 return activeIndicator; 120 } 121 122 /** 123 * Sets the activeIndicator attribute value. 124 * 125 * @param activeIndicator The activeIndicator to set. 126 */ 127 public void setActiveIndicator(boolean activeIndicator) { 128 this.activeIndicator = activeIndicator; 129 } 130 131 /** 132 * Gets the fileName attribute. 133 * 134 * @return Returns the fileName 135 */ 136 public String getFileName() { 137 return fileName; 138 } 139 140 /** 141 * Sets the fileName attribute value. 142 * 143 * @param fileName The fileName to set. 144 */ 145 public void setFileName(String fileName) { 146 this.fileName = fileName; 147 } 148 149 /** 150 * Gets the remoteObjectIdentifier attribute. 151 * 152 * @return Returns the remoteObjectIdentifier 153 */ 154 public String getRemoteObjectIdentifier() { 155 return remoteObjectIdentifier; 156 } 157 158 /** 159 * Sets the remoteObjectIdentifier attribute value. 160 * 161 * @param remoteObjectIdentifier The remoteObjectIdentifier to set. 162 */ 163 public void setRemoteObjectIdentifier(String remoteObjectIdentifier) { 164 this.remoteObjectIdentifier = remoteObjectIdentifier; 165 } 166 167 /** 168 * Gets the mimeType attribute. 169 * 170 * @return Returns the mimeType 171 */ 172 public String getMimeType() { 173 return mimeType; 174 } 175 176 /** 177 * Sets the mimeType attribute value. 178 * 179 * @param mimeType The mimeType to set. 180 */ 181 public void setMimeType(String mimeType) { 182 this.mimeType = mimeType; 183 } 184 185 /** 186 * Gets the isComplete attribute. 187 * 188 * @return boolean 189 */ 190 public boolean isComplete() { 191 return StringUtils.isNotBlank(fileName) && StringUtils.isNotBlank(mimeType); 192 } 193}