Package it.eng.spagobi.analiticalmodel.document.bo

Source Code of it.eng.spagobi.analiticalmodel.document.bo.BIObject

/**

SpagoBI - The Business Intelligence Free Platform

Copyright (C) 2005-2008 Engineering Ingegneria Informatica S.p.A.

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

**/
package it.eng.spagobi.analiticalmodel.document.bo;

import it.eng.spagobi.analiticalmodel.document.dao.IObjTemplateDAO;
import it.eng.spagobi.commons.constants.SpagoBIConstants;
import it.eng.spagobi.commons.dao.DAOFactory;
import it.eng.spagobi.commons.utilities.SpagoBITracer;
import it.eng.spagobi.engines.config.bo.Engine;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
* Defines a Business Intelligence object.

*/
public class BIObject implements Serializable {

  // BIOBJ_ID NUMBER N Business Intelligence Object identifier
  private Integer id = null;

  // ENGINE_ID NUMBER N Engine idenitifier (FK)
  private Engine engine = null;
 
  // DATA_SOURCE_ID NUMBER N DataSource idenitifier (FK)
  private Integer dataSourceId = null;

  // DATA_SOURCE_ID NUMBER N DataSource idenitifier (FK)
  private Integer dataSetId = null;
 
  // DESCR VARCHAR2(128) Y BI Object description
  private String name = null;
 
  // DESCR VARCHAR2(128) Y BI Object description
  private String description = null;

  // LABEL VARCHAR2(36) Y Engine label (short textual identifier)
  private String label = null;

  // ENCRYPT NUMBER Y Parameter encryption request.
  private Integer encrypt = null;
 
  // VISIBLE NUMBER Y Parameter visible request.
  private Integer visible = null;
 
  private String profiledVisibility;

  // REL_NAME VARCHAR2(256) Y Relative path + file object name
  private String relName = null;

  // STATE_ID NUMBER N State identifier (actually not used)
  private Integer stateID = null;

  // STATE_CD VARCHAR2(18) N State code. Initially hard-coded valued, in the
  // future, managed by a states workflow with historical storage.
  private String stateCode = null;

  // BIOBJ_TYPE_ID NUMBER N Business Intelligence Object Type identifier.
  private Integer biObjectTypeID = null;

  // BIOBJ_TYPE_CD VARCHAR2(18) N Business Intelligence Object Type code (ex.
  // report, OLAP, Data mining, Dashboard). Denormalizated attribute from
  // SBI_DOMAINS.
  private String biObjectTypeCode = null;

  private List biObjectParameters = null;

  private String path = null;
 
  private String uuid = null;
 
  private List functionalities = null;
 
  // add this properties for metadata
  private Date creationDate=null;
  private String creationUser=null

  private Integer refreshSeconds=null

 
  /**
   * Gets the id.
   *
   * @return Returns the id.
   */
  public Integer getId() {
    return id;
  }

  /**
   * Sets the id.
   *
   * @param businessObjectID The id to set.
   */
  public void setId(Integer businessObjectID) {
    this.id = businessObjectID;
  }

  /**
   * Gets the bi object parameters.
   *
   * @return Returns the biObjectParameters.
   */
  public List getBiObjectParameters() {
    return biObjectParameters;
  }

  /**
   * Sets the bi object parameters.
   *
   * @param businessObjectParameters The biObjectParameters to set.
   */
  public void setBiObjectParameters(List businessObjectParameters) {
    this.biObjectParameters = businessObjectParameters;
  }

  /**
   * Gets the description.
   *
   * @return Returns the description.
   */
  public String getDescription() {
    return description;
  }

  /**
   * Sets the description.
   *
   * @param description The description to set.
   */
  public void setDescription(String description) {
    this.description = description;
  }

  /**
   * Gets the encrypt.
   *
   * @return Returns the encrypt.
   */
  public Integer getEncrypt() {
    return encrypt;
  }

  /**
   * Sets the encrypt.
   *
   * @param encrypt The encrypt to set.
   */
  public void setEncrypt(Integer encrypt) {
    this.encrypt = encrypt;
  }

  /**
   * Gets the visible.
   *
   * @return the visible
   */
  public Integer getVisible() {
    return visible;
  }

  /**
   * Sets the visible.
   *
   * @param visible the new visible
   */
  public void setVisible(Integer visible) {
    this.visible = visible;
  }
 
  /**
   * Gets the engine.
   *
   * @return Returns the engine.
   */
  public Engine getEngine() {
    return engine;
  }

  /**
   * Sets the engine.
   *
   * @param engine The engine to set.
   */
  public void setEngine(Engine engine) {
    this.engine = engine;
  }
 
  /**
   * Gets the data source id.
   *
   * @return Returns the datasource.
   */
  public Integer getDataSourceId() {
    return dataSourceId;
  }

  /**
   * Sets the data source id.
   *
   * @param dataSourceId the data source id
   */
  public void setDataSourceId(Integer dataSourceId) {
    this.dataSourceId = dataSourceId;
  }

 
  /**
   * Gets the label.
   *
   * @return Returns the label.
   */
  public String getLabel() {
    return label;
  }

  /**
   * Sets the label.
   *
   * @param label The label to set.
   */
  public void setLabel(String label) {
    this.label = label;
  }

  /**
   * Gets the rel name.
   *
   * @return Returns the relName.
   */
  public String getRelName() {
    return relName;
  }

  /**
   * Sets the rel name.
   *
   * @param relName The relName to set.
   */
  public void setRelName(String relName) {
    this.relName = relName;
  }

  /**
   * Gets the bi object type code.
   *
   * @return Returns the biObjectTypeCode.
   */
  public String getBiObjectTypeCode() {
    return biObjectTypeCode;
  }

  /**
   * Sets the bi object type code.
   *
   * @param businessObjectTypeCD The biObjectTypeCode to set.
   */
  public void setBiObjectTypeCode(String businessObjectTypeCD) {
    this.biObjectTypeCode = businessObjectTypeCD;
  }

  /**
   * Gets the bi object type id.
   *
   * @return Returns the biObjectTypeID.
   */
  public Integer getBiObjectTypeID() {
    return biObjectTypeID;
  }

  /**
   * Sets the bi object type id.
   *
   * @param biObjectTypeID The biObjectTypeID to set.
   */
  public void setBiObjectTypeID(Integer biObjectTypeID) {
    this.biObjectTypeID = biObjectTypeID;
  }

  /**
   * Gets the state code.
   *
   * @return Returns the stateCode.
   */
  public String getStateCode() {
    return stateCode;
  }

  /**
   * Sets the state code.
   *
   * @param stateCD The stateCode to set.
   */
  public void setStateCode(String stateCD) {
    this.stateCode = stateCD;
  }

  /**
   * Gets the state id.
   *
   * @return Returns the stateID.
   */
  public Integer getStateID() {
    return stateID;
  }

  /**
   * Sets the state id.
   *
   * @param stateID The stateID to set.
   */
  public void setStateID(Integer stateID) {
    this.stateID = stateID;
  }
 
  /**
   * Gets the path.
   *
   * @return Returns the path.
   */
  public String getPath() {
    return path;
  }
 
  /**
   * Sets the path.
   *
   * @param path The path to set.
   */
  public void setPath(String path) {
    this.path = path;
  }
 
  /**
   * Gets the name.
   *
   * @return the name
   */
  public String getName() {
    return name;
  }
 
  /**
   * Sets the name.
   *
   * @param name the new name
   */
  public void setName(String name) {
    this.name = name;
  }

  /**
   * Gets the uuid.
   *
   * @return the uuid
   */
  public String getUuid() {
    return uuid;
  }

  /**
   * Sets the uuid.
   *
   * @param uuid the new uuid
   */
  public void setUuid(String uuid) {
    this.uuid = uuid;
  }

  /**
   * Gets the functionalities.
   *
   * @return the functionalities
   */
  public List getFunctionalities() {
    return functionalities;
  }

  /**
   * Sets the functionalities.
   *
   * @param functionalities the new functionalities
   */
  public void setFunctionalities(List functionalities) {
    this.functionalities = functionalities;
  }

 
  /**
   * Gets the active template.
   *
   * @return the active template
   */
  public ObjTemplate getActiveTemplate() {
    ObjTemplate template = null;
    try{
      IObjTemplateDAO objtempdao = DAOFactory.getObjTemplateDAO();
      template = objtempdao.getBIObjectActiveTemplate(this.getId());
    } catch(Exception e) {
      SpagoBITracer.major(SpagoBIConstants.NAME_MODULE, this.getClass().getName(),
                "getActiveTemplate", "Error while recovering current template \n", e);
    }
    return template;
  }
 
 
  /**
   * Gets the template list.
   *
   * @return the template list
   */
  public List getTemplateList() {
    List templates = new ArrayList();
    try{
      IObjTemplateDAO objtempdao = DAOFactory.getObjTemplateDAO();
      templates = objtempdao.getBIObjectTemplateList(this.getId());
    } catch(Exception e) {
      SpagoBITracer.major(SpagoBIConstants.NAME_MODULE, this.getClass().getName(),
                "getTemplateList", "Error while recovering template list\n", e);
    }
    return templates;
  }

  /**
   * Gets the creation date.
   *
   * @return the creation date
   */
  public Date getCreationDate() {
      return creationDate;
  }

  /**
   * Sets the creation date.
   *
   * @param creationDate the new creation date
   */
  public void setCreationDate(Date creationDate) {
      this.creationDate = creationDate;
  }

  /**
   * Gets the creation user.
   *
   * @return the creation user
   */
  public String getCreationUser() {
      return creationUser;
  }

  /**
   * Sets the creation user.
   *
   * @param creationUser the new creation user
   */
  public void setCreationUser(String creationUser) {
      this.creationUser = creationUser;
  }

  /**
   * Gets the data set id.
   *
   * @return the data set id
   */
  public Integer getDataSetId() {
    return dataSetId;
  }

  /**
   * Sets the data set id.
   *
   * @param dataSetId the new data set id
   */
  public void setDataSetId(Integer dataSetId) {
    this.dataSetId = dataSetId;
  }

  /**
   * Gets refresh Seconds.
   *
   * @return refresh Seconds
   */
 
  public Integer getRefreshSeconds() {
    return refreshSeconds;
  }

  /**
   * Sets refresh Seconds.
   *
   * @param refreshSeconds
   */
 
  public void setRefreshSeconds(Integer refreshSeconds) {
    this.refreshSeconds = refreshSeconds;
  }

  public String getProfiledVisibility() {
    return profiledVisibility;
  }

  public void setProfiledVisibility(String profiledVisibility) {
    this.profiledVisibility = profiledVisibility;
  }
 
 
 

}
TOP

Related Classes of it.eng.spagobi.analiticalmodel.document.bo.BIObject

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.