org.sakaiproject.signup.model.SignupAttachment Maven / Gradle / Ivy
/**
* Copyright (c) 2007-2016 The Apereo Foundation
*
* Licensed under the Educational Community License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://opensource.org/licenses/ecl2
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* Licensed to The Apereo Foundation under one or more contributor license
* agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership.
*
* The Apereo Foundation licenses this file to you under the Educational
* Community License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of the
* License at:
*
* http://opensource.org/licenses/ecl2.txt
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.sakaiproject.signup.model;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.util.Date;
import lombok.extern.slf4j.Slf4j;
@Slf4j
public class SignupAttachment {
private String resourceId;
private String filename;
private String mimeType;
private Long fileSize; // in kilobyte
private String location;
private Boolean isLink;
private Long timeslotId;
/*veiwByAll means all participants in the event*/
private Boolean viewByAll;
private String createdBy;
private Date createdDate;
private String lastModifiedBy;
private Date lastModifiedDate;
public SignupAttachment(){
viewByAll = new Boolean(true);//default
}
public String getResourceId() {
return resourceId;
}
public void setResourceId(String resourceId) {
this.resourceId = resourceId;
}
public String getEncodedResourceId() {
try {
return URLEncoder.encode(resourceId, "UTF-8");
} catch (UnsupportedEncodingException e) {
log.error("UnsupportedEncodingException: " + e.getMessage());
}
return "";
}
public String getFilename() {
return filename;
}
public void setFilename(String filename) {
this.filename = filename;
}
public String getMimeType() {
return mimeType;
}
public void setMimeType(String mimeType) {
this.mimeType = mimeType;
}
public Long getFileSize() {
return fileSize;
}
public void setFileSize(Long fileSize) {
this.fileSize = fileSize;
}
public String getLocation() {
return location;
}
public void setLocation(String location) {
this.location = location;
}
public Boolean getIsLink() {
return isLink;
}
public void setIsLink(Boolean isLink) {
this.isLink = isLink;
}
public Long getTimeslotId() {
return timeslotId;
}
public void setTimeslotId(Long timeslotId) {
this.timeslotId = timeslotId;
}
public Boolean getViewByAll() {
return viewByAll;
}
public void setViewByAll(Boolean viewByAll) {
this.viewByAll = viewByAll;
}
public String getCreatedBy() {
return createdBy;
}
public void setCreatedBy(String createdBy) {
this.createdBy = createdBy;
}
public Date getCreatedDate() {
return createdDate;
}
public void setCreatedDate(Date createdDate) {
this.createdDate = createdDate;
}
public String getLastModifiedBy() {
return lastModifiedBy;
}
public void setLastModifiedBy(String lastModifiedBy) {
this.lastModifiedBy = lastModifiedBy;
}
public Date getLastModifiedDate() {
return lastModifiedDate;
}
public void setLastModifiedDate(Date lastModifiedDate) {
this.lastModifiedDate = lastModifiedDate;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy