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

Examples of it.eng.spagobi.analiticalmodel.document.bo.BIObject


      String jobName = jex.getJobDetail().getName();
      String completeLabel = "scheduler_" + jobName + "_" + docName;
      String label = "sched_" + String.valueOf(Math.abs(completeLabel.hashCode()));

      BIObject newbiobj = new BIObject();
      newbiobj.setDescription(docDesc);
      newbiobj.setCreationUser("scheduler");
      newbiobj.setLabel(label);
      newbiobj.setName(docName);
      newbiobj.setEncrypt(new Integer(0));
      newbiobj.setEngine(engine);
      newbiobj.setDataSourceId(biobj.getDataSourceId());
      newbiobj.setRelName("");
      newbiobj.setBiObjectTypeCode(officeDocDom.getValueCd());
      newbiobj.setBiObjectTypeID(officeDocDom.getValueId());
      newbiobj.setStateCode(relDom.getValueCd());
      newbiobj.setStateID(relDom.getValueId());
      newbiobj.setVisible(new Integer(1));
      newbiobj.setFunctionalities(storeInFunctionalities);
      IBIObjectDAO objectDAO = DAOFactory.getBIObjectDAO();
       Timestamp aoModRecDate;
      BIObject biobjexist = objectDAO.loadBIObjectByLabel(label);
      if(biobjexist==null){
        objectDAO.insertBIObject(newbiobj, objTemp);
      } else {
        newbiobj.setId(biobjexist.getId());
        objectDAO.modifyBIObject(newbiobj, objTemp);
      }
    } catch (Throwable t) {
      logger.error("Error while saving schedule result as new document", t );
    }finally{
View Full Code Here


   *
   * @return Map The map of the execution call parameters
   */
  public Map getParameterMap(Object analyticalDocument, IEngUserProfile profile, String roleName) {
    Map parameters;
    BIObject biObject;
   
    logger.debug("IN");
   
    try {
      Assert.assertNotNull(analyticalDocument, "Input parameter [analyticalDocument] cannot be null");
View Full Code Here

   * @return Map The map of the execution call parameters
   */
  public Map getParameterMap(Object analyticalDocument, Object analyticalDocumentSubObject, IEngUserProfile profile, String roleName) {
   
    Map parameters;
    BIObject biObject;
    SubObject subObject;
   
    logger.debug("IN");
   
    try{
View Full Code Here

     */
    public Map getParameterMap(Object biobject, IEngUserProfile profile, String roleName) {
  logger.debug("IN");
  Map map = new Hashtable();
  try {
      BIObject biobj = (BIObject) biobject;
      map = getMap(biobj);
  } catch (ClassCastException cce) {
      logger.error("The parameter is not a BIObject type", cce);
  }
  map = applySecurity(map, profile);
View Full Code Here

   *
   * @return Map The map of the execution call parameters
   */
  public Map getParameterMap(Object analyticalDocument, IEngUserProfile profile, String roleName) {
    Map parameters;
    BIObject biObject;
   
    logger.debug("IN");
   
    try {
      Assert.assertNotNull(analyticalDocument, "Input parameter [analyticalDocument] cannot be null");
View Full Code Here

   * @return Map The map of the execution call parameters
   */
  public Map getParameterMap(Object analyticalDocument, Object analyticalDocumentSubObject, IEngUserProfile profile, String roleName) {
   
    Map parameters;
    BIObject biObject;
    SubObject subObject;
   
    logger.debug("IN");
   
    try{
View Full Code Here

   */
  public List getBiobjectIds() {
    List biobjIds = new ArrayList();
    Iterator iterBiobjects = biobjects.iterator();
    while(iterBiobjects.hasNext()) {
      BIObject biobj = (BIObject)iterBiobjects.next();
      Integer id =  biobj.getId();
      biobjIds.add(id);
    }
    return biobjIds;
  }
View Full Code Here

  public Map getParameterMap(Object biobject, IEngUserProfile profile, String roleName) {
    logger.debug("IN");
   
    Map map = new Hashtable();
    try{
      BIObject biobj = (BIObject)biobject;
      map = getMap(biobj);
      // This parameter is not required
      //map.put("query", "#");
    } catch (ClassCastException cce) {
      logger.error("The parameter is not a BIObject type", cce);
View Full Code Here

      return getParameterMap(object, profile, roleName);
    }
   
    Map map = new Hashtable();
    try{
      BIObject biobj = (BIObject)object;
      map = getMap(biobj);
      SubObject subObjectDetail = (SubObject) subObject;
     
      Integer id = subObjectDetail.getId();
     
View Full Code Here

     */
    public Map getParameterMap(Object biobject, IEngUserProfile profile, String roleName) {
  logger.debug("IN");

  Map map;
  BIObject biobj;

  map = new Hashtable();
  try {
      biobj = (BIObject) biobject;
      map = getMap(biobj);
View Full Code Here

TOP

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

Copyright © 2018 www.massapicom. 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.