Package org.apache.jetspeed.services.cms

Examples of org.apache.jetspeed.services.cms.JetspeedCMSException


        cmsRepositories.put(nameSpace, cms);
      }
    }
    catch (Exception e)
    {
      throw new JetspeedCMSException("System Error : impossible to access to the content repository");
    }

    return cms;
  }
View Full Code Here


            context.put(CATALOG_PATH_PARAM, catalogPath);
            context.put(CATALOG_PARAM, catalog);
           
      }
      catch ( Exception e ) {
            throw new JetspeedCMSException("Impossible to build the normal context");           
      }
       
       
    }
View Full Code Here

             context.put(MODE_PARAM, ADD_MODE_VALUE);
            
         }
         catch (Exception e)
         {
             throw new JetspeedCMSException("Impossible to create Catalog object")
         }
                  
    }
View Full Code Here

            
         }
         catch (Exception e)
         {
             throw new JetspeedCMSException("Impossible to create Catalog object")
         }
                  
    }
View Full Code Here

                                      .getService(CmsService.SERVICE_NAME))
                                      .getCmsManager();
        }
        catch (Exception e)
        {
           throw new JetspeedCMSException("Impossible to get the CMS service");
        }
    }
View Full Code Here

            String domainFile =TurbineResources.getString("services.CmsService.CmsManager." + namespace + ".domainfile");
      Domain.init(new FileInputStream(domainFile));
    }
    catch (Exception e)
    {
      throw new JetspeedCMSException();
    }

    token = Domain.accessNamespace(new SecurityToken(new String()), namespace);

    structure = token.getStructureHelper();
View Full Code Here

      SlideToken slideToken = this.getSlideToken ( userNode );
      token.exportData(slideToken, new FileWriter( xmlFileName ));
    }
    catch (Exception e)
    {
      throw new JetspeedCMSException("Impossible to export the content respository");
    }
  }
View Full Code Here

      this.getChildren(userNode, linksUri, catalog,
               withSubCatalog, withContent, tmpLevel);
    }
    catch (Exception e)
    {
      throw new JetspeedCMSException("Impossible to get catalog information");
    }
  }
View Full Code Here

      return uriList;
    }
    catch (Exception e)
    {
       throw new JetspeedCMSException("Impossible to get the uri List");
    }
  }
View Full Code Here

      resource.setPermissions(this.getSecurity(uri));
      return resource;
    }
    catch (AccessDeniedException e)
    {
      JetspeedCMSException e1 = new JetspeedCMSException("Impossible to get the content resource");
      e1.setIsAccessDenied(true);
      throw e1;
    }
    catch (NullPointerException e)
    {
      // Trigger when the objectNode has not the correct properties
      // eg. :  for a User or Action node in Slide. These type of node are mapped to Catalog

      Catalog catalog = (Catalog) CmsFactory.getCmsOmInstance("Catalog");
      catalog.setUri(uri);
      catalog.setLogicalName(uri);
      catalog.setTitle(uri);
      return catalog;
    }
    catch (RevisionDescriptorNotFoundException e)
    {
      // if  no revision descriptor => create an empty catalog object which
      // contains the uri data, a default title and a default logical name
      // This case arrives when the descriptor stores are not init by the
      // method Slide.createResource(...)
      // For example, after reading domain.xml, Slide will add all
      // namespace defined in the "scoop" xml tag in the target store
      // But in our case, we need different properties defined via the
      // NodeRevisionDescriptor like the title, logical name, ...

        if (uri.equals(TurbineResources.getString("services.CmsService.catalog.root.uri")))
      {
        Catalog catalog =  (Catalog) CmsFactory.getCmsOmInstance("Catalog");
        catalog.setUri(uri);
        catalog.setLogicalName(TurbineResources.getString("services.CmsService.catalog.root.logicalname"));
        catalog.setTitle(TurbineResources.getString("services.CmsService.catalog.root.title"));
        return catalog;
      }
      else
      {
        // getResource called for a user/action ...
        Catalog catalog =  (Catalog) CmsFactory.getCmsOmInstance("Catalog");
        catalog.setUri(uri);
        catalog.setLogicalName(uri);
        catalog.setTitle(uri);
        return catalog;
        //e.printStackTrace();
        //return null;
      }
    }
    catch ( Exception e)
    {
      throw new JetspeedCMSException("Impossible to get the content resource");
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.jetspeed.services.cms.JetspeedCMSException

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.