Package org.infoglue.cms.exception

Examples of org.infoglue.cms.exception.SystemException


      */
     
      Attributes attributes = ctx.getAttributes(userName);
      logger.info("attributes:" + attributes.toString());
      if(attributes == null)
        throw new SystemException("No user attributes found for user:" + userName);
       
      Attribute userNameAttribute     = attributes.get(userNameAttributeFilter);
      Attribute userDisplayNameAttribute   = attributes.get(userDisplayNameFilter);
      Attribute userFirstNameAttribute   = attributes.get(userFirstNameAttributeFilter);
      Attribute userLastNameAttribute   = attributes.get(userLastNameAttributeFilter);
View Full Code Here


     
      String[] memberOfAttributes = memberOfAttributeFilter.split(",");
     
      Attributes attributes = ctx.getAttributes(userName, memberOfAttributes);
      if(attributes == null)
        throw new SystemException("No user attributes found for user:" + userName);

      NamingEnumeration allEnum = attributes.getAll();
      while(allEnum.hasMore())
      {
        Attribute attr = (Attribute)allEnum.next();
View Full Code Here

     
      String[] memberOfAttributes = memberOfAttributeFilter.split(",");
     
      Attributes attributes = ctx.getAttributes(userName, memberOfAttributes);
      if(attributes == null)
        throw new SystemException("No user attributes found for user:" + userName);

      NamingEnumeration allEnum = attributes.getAll();
      while(allEnum.hasMore())
      {
        Attribute attr = (Attribute)allEnum.next();
View Full Code Here

            if(userFirstName == null || userLastName == null || userDisplayName == null || userMail == null)
            {
              if(logger.isInfoEnabled())
                logger.info("User not valid " + userNameAttribute);
              throw new SystemException("The user " + userNameAttribute + " did not have firstName, lastName or email attribute which InfoGlue requires");
            }
           
            if(logger.isInfoEnabled())
            {
              logger.info("userNameAttribute:" + userNameAttribute);
View Full Code Here

  }

   
  public void createInfoGluePrincipal(SystemUserVO systemUserVO) throws Exception
  {
    throw new SystemException("The JNDI BASIC Authorization module does not support creation of users yet...");
  }
View Full Code Here

    throw new SystemException("The JNDI BASIC Authorization module does not support creation of users yet...");
  }

  public void updateInfoGluePrincipalPassword(String userName) throws Exception
  {
    throw new SystemException("The JNDI BASIC Authorization module does not support updates of users yet...");
  }
View Full Code Here

    try
    {
      ContentVO contentVO = NodeDeliveryController.getNodeDeliveryController(siteNodeId, languageId, contentId).getBoundContent(this.getInfoGluePrincipal(), siteNodeId, languageId, true, "Meta information", DeliveryContext.getDeliveryContext());

      if(contentVO == null)
        throw new SystemException("There was no template bound to this page which makes it impossible to render.")
     
      ContentVersionVO contentVersionVO = ContentVersionController.getContentVersionController().getLatestActiveContentVersionVO(contentVO.getId(), languageId);
      if(contentVersionVO == null)
      {
        SiteNodeVO siteNodeVO = SiteNodeController.getController().getSiteNodeVOWithId(siteNodeId);
        LanguageVO masterLanguage = LanguageController.getController().getMasterLanguage(siteNodeVO.getRepositoryId());
        contentVersionVO = ContentVersionController.getContentVersionController().getLatestActiveContentVersionVO(contentVO.getId(), masterLanguage.getLanguageId());
      }
     
      template = ContentVersionController.getContentVersionController().getAttributeValue(contentVersionVO.getId(), "ComponentStructure", false);
     
      if(template == null)
        throw new SystemException("There was no template bound to this page which makes it impossible to render.")
    }
    catch(Exception e)
    {
      logger.error(e.getMessage(), e);
      throw e;
View Full Code Here

        }
        catch(Exception e)
        {
            logger.error("An error occurred so we should not complete the transaction:" + e, e);
            rollbackTransaction(db);
            throw new SystemException(e.getMessage());
        }

        logger.info("Getting the sitenodes for the tree took " + timer.getElapsedTime() + "ms");
       
    return ret;
View Full Code Here

   */
 
  protected String doExecute() throws Exception
  {
    if(!AccessRightController.getController().getIsPrincipalAuthorized(this.getInfoGluePrincipal(), "ContentTool.ImportExport", true))
      throw new SystemException("You are not allowed to export contents.");

    Database db = CastorDatabaseService.getDatabase();
   
    try
    {
View Full Code Here

    }
    catch(Exception e)
    {
      logger.error("An error occurred so we should not complete the transaction:" + e, e);
      rollbackTransaction(dbWrapper.getDatabase());
      throw new SystemException(e.getMessage());
    }

        return "success";
    }
View Full Code Here

TOP

Related Classes of org.infoglue.cms.exception.SystemException

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.