001: /*
002: * Copyright 2006 Pentaho Corporation. All rights reserved.
003: * This software was developed by Pentaho Corporation and is provided under the terms
004: * of the Mozilla Public License, Version 1.1, or any later version. You may not use
005: * this file except in compliance with the license. If you need a copy of the license,
006: * please go to http://www.mozilla.org/MPL/MPL-1.1.txt. The Original Code is the Pentaho
007: * BI Platform. The Initial Developer is Pentaho Corporation.
008: *
009: * Software distributed under the Mozilla Public License is distributed on an "AS IS"
010: * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. Please refer to
011: * the license for the specific language governing your rights and limitations.
012: *
013: * @created Dec 22, 2006
014: * @author James Dixon
015: *
016: */
017:
018: package org.pentaho.core.output;
019:
020: import org.pentaho.core.repository.IContentItem;
021: import org.pentaho.core.session.IPentahoSession;
022:
023: public abstract class BaseOutputHandler implements
024: IContentOutputHandler {
025:
026: private String solutionName;
027:
028: private String instanceId;
029:
030: private String mimeType;
031:
032: private IPentahoSession session;
033:
034: private String handlerId;
035:
036: private String solutionPath;
037:
038: private String actionName;
039:
040: private String contentRef;
041:
042: public abstract IContentItem getFileOutputContentItem();
043:
044: /**
045: * @return Returns the actionName.
046: */
047: public String getActionName() {
048: return actionName;
049: }
050:
051: /**
052: * @param actionName The actionName to set.
053: */
054: public void setActionName(String actionName) {
055: this .actionName = actionName;
056: }
057:
058: /**
059: * @return Returns the handlerId.
060: */
061: public String getHandlerId() {
062: return handlerId;
063: }
064:
065: /**
066: * @param handlerId The handlerId to set.
067: */
068: public void setHandlerId(String handlerId) {
069: this .handlerId = handlerId;
070: }
071:
072: /**
073: * @return Returns the instanceId.
074: */
075: public String getInstanceId() {
076: return instanceId;
077: }
078:
079: /**
080: * @param instanceId The instanceId to set.
081: */
082: public void setInstanceId(String instanceId) {
083: this .instanceId = instanceId;
084: }
085:
086: /**
087: * @return Returns the mimeType.
088: */
089: public String getMimeType() {
090: return mimeType;
091: }
092:
093: /**
094: * @param mimeType The mimeType to set.
095: */
096: public void setMimeType(String mimeType) {
097: this .mimeType = mimeType;
098: }
099:
100: /**
101: * @return Returns the session.
102: */
103: public IPentahoSession getSession() {
104: return session;
105: }
106:
107: /**
108: * @param session The session to set.
109: */
110: public void setSession(IPentahoSession session) {
111: this .session = session;
112: }
113:
114: /**
115: * @return Returns the solutionName.
116: */
117: public String getSolutionName() {
118: return solutionName;
119: }
120:
121: /**
122: * @param solutionName The solutionName to set.
123: */
124: public void setSolutionName(String solutionName) {
125: this .solutionName = solutionName;
126: }
127:
128: /**
129: * @return Returns the solutionPath.
130: */
131: public String getSolutionPath() {
132: return solutionPath;
133: }
134:
135: /**
136: * @param solutionPath The solutionPath to set.
137: */
138: public void setSolutionPath(String solutionPath) {
139: this .solutionPath = solutionPath;
140: }
141:
142: /**
143: * @return Returns the contentRef.
144: */
145: public String getContentRef() {
146: return contentRef;
147: }
148:
149: /**
150: * @param contentRef The contentRef to set.
151: */
152: public void setContentRef(String contentRef) {
153: this.contentRef = contentRef;
154: }
155:
156: }
|