001: /**********************************************************************************
002: * $URL: https://source.sakaiproject.org/svn/archive/tags/sakai_2-4-1/archive-impl/impl/src/java/org/sakaiproject/archive/impl/ImportMetadataImpl.java $
003: * $Id: ImportMetadataImpl.java 7947 2006-04-19 03:14:11Z ggolden@umich.edu $
004: ***********************************************************************************
005: *
006: * Copyright (c) 2005, 2006 The Sakai Foundation.
007: *
008: * Licensed under the Educational Community License, Version 1.0 (the "License");
009: * you may not use this file except in compliance with the License.
010: * You may obtain a copy of the License at
011: *
012: * http://www.opensource.org/licenses/ecl1.php
013: *
014: * Unless required by applicable law or agreed to in writing, software
015: * distributed under the License is distributed on an "AS IS" BASIS,
016: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
017: * See the License for the specific language governing permissions and
018: * limitations under the License.
019: *
020: **********************************************************************************/package org.sakaiproject.archive.impl;
021:
022: import org.apache.commons.logging.Log;
023: import org.apache.commons.logging.LogFactory;
024: import org.sakaiproject.archive.api.ImportMetadata;
025:
026: /**
027: * @author rshastri <a href="mailto:rshastri@iupui.edu ">Rashmi Shastri </a>
028: * @version $Id: ImportMetadataImpl.java 7947 2006-04-19 03:14:11Z ggolden@umich.edu $
029: *
030: */
031: public class ImportMetadataImpl implements ImportMetadata {
032: private static final Log LOG = LogFactory
033: .getLog(ImportMetadataImpl.class);
034:
035: private String id;
036: private String legacyTool;
037: private String sakaiTool;
038: private String sakaiServiceName;
039: private String fileName;
040: private boolean mandatory = false;
041:
042: /**
043: * Should only be constructed by ImportMetadataService.
044: */
045: ImportMetadataImpl() {
046: LOG.debug("new ImportMetadata()");
047: }
048:
049: /**
050: * @return Returns the id.
051: */
052: public String getId() {
053: return id;
054: }
055:
056: /**
057: * @param id
058: * The id to set.
059: */
060: public void setId(String id) {
061: this .id = id;
062: }
063:
064: /**
065: * @return Returns the fileName.
066: */
067: public String getFileName() {
068: return fileName;
069: }
070:
071: /**
072: * @param fileName
073: * The fileName to set.
074: */
075: public void setFileName(String fileName) {
076: this .fileName = fileName;
077: }
078:
079: /**
080: * @return Returns the legacyTool.
081: */
082: public String getLegacyTool() {
083: return legacyTool;
084: }
085:
086: /**
087: * @param legacyTool
088: * The legacyTool to set.
089: */
090: public void setLegacyTool(String legacyTool) {
091: this .legacyTool = legacyTool;
092: }
093:
094: /**
095: * @return Returns the mandatory.
096: */
097: public boolean isMandatory() {
098: return mandatory;
099: }
100:
101: /**
102: * @param mandatory
103: * The mandatory to set.
104: */
105: public void setMandatory(boolean mandatory) {
106: this .mandatory = mandatory;
107: }
108:
109: /**
110: * @return Returns the sakaiServiceName.
111: */
112: public String getSakaiServiceName() {
113: return sakaiServiceName;
114: }
115:
116: /**
117: * @param sakaiServiceName
118: * The sakaiServiceName to set.
119: */
120: public void setSakaiServiceName(String sakaiServiceName) {
121: this .sakaiServiceName = sakaiServiceName;
122: }
123:
124: /**
125: * @return Returns the sakaiTool.
126: */
127: public String getSakaiTool() {
128: return sakaiTool;
129: }
130:
131: /**
132: * @param sakaiTool
133: * The sakaiTool to set.
134: */
135: public void setSakaiTool(String sakaiTool) {
136: this.sakaiTool = sakaiTool;
137: }
138:
139: }
|