Package org.infoglue.cms.entities.management

Examples of org.infoglue.cms.entities.management.RepositoryVO


        {
          if(recipientFilter != null && !recipientFilter.equals("") && events != null && events.size() > 0)
            PublicationController.mailPublishNotification(events, repositoryId, getInfoGluePrincipal(), recipientFilter, false);
        }
       
            RepositoryVO repositoryVO = RepositoryController.getController().getRepositoryVOWithId(repositoryId);
            String liveAddressBaseUrl = repositoryVO.getLiveBaseUrl() + "";
   
            String liveAddress = null;
            if(CmsPropertyHandler.getPublicDeliveryUrls().size() > 0)
            {
              String firstPublicDeliveryUrl = (String)CmsPropertyHandler.getPublicDeliveryUrls().get(0);
View Full Code Here


    }
       
   
  private String getDecoratedPageUrl(Integer siteNodeId) throws Exception
  {
    RepositoryVO repositoryVO = RepositoryController.getController().getRepositoryVOWithId(this.repositoryId);
   
    String dnsName = repositoryVO.getDnsName();

      String workingUrl = null;
     
      String keyword = "working=";
      int startIndex = (dnsName == null) ? -1 : dnsName.indexOf(keyword);
View Full Code Here

    return buttons;
  }

  private ImageButton getPreviewButtons() throws Exception
  {
    RepositoryVO repositoryVO = RepositoryController.getController().getRepositoryVOWithId(this.repositoryId);
   
    String dnsName = repositoryVO.getDnsName();

      String workingUrl = null;
     
      String keyword = "working=";
      int startIndex = (dnsName == null) ? -1 : dnsName.indexOf(keyword);
View Full Code Here

   
    String fileContent = "";
    if(parentFile.isFile())
      fileContent = FileHelper.getFileAsString(parentFile, "iso-8859-1");
   
    RepositoryVO repositoryVO = null;

    if(parentContent != null)
      logger.info("\n\n****************************\nparentContent in top:" + parentContent.getName() + "= File:" + parentFile.getName());


    boolean newIsWebContentLevel = isWebContentLevel;
    boolean newIsRepositoryLevel = isRepositoryLevel;
    boolean newIsComponentLevel = isComponentLevel;
   
    LanguageVO masterLanguageVO = null;

    logger.info("isWebContentLevel:" + isWebContentLevel + "\n" + "isRepositoryLevel:" + isRepositoryLevel + "\n" + "isComponentLevel:" + isComponentLevel);
    if(!isWebContentLevel && parentFile.getName().equalsIgnoreCase("WebContent"))
    {
      logger.info("Reached WebContent... activating");
      newIsWebContentLevel = true;
    }
    else if(isWebContentLevel && !isRepositoryLevel)
    {
      logger.info("Reached Repository level... activating:" + parentFile.getName());
      logger.info("This was a repository:" + parentFile.getPath());
      repositoryVO = RepositoryController.getController().getRepositoryVOWithName(parentFile.getName(), db);
      if(repositoryVO != null)
      {
        localParentContent = ContentController.getContentController().getRootContent(db, repositoryVO.getId(), principal.getName(), false);
        masterLanguageVO = LanguageController.getController().getMasterLanguage(localParentContent.getRepositoryId(), db);
      }
     
      newIsRepositoryLevel = true;
    }
View Full Code Here

        String path = ContentController.getContentController().getContentPath(contentVersionVO.getContentId(), true, false);       
        sb.append("Content access right on [" + path + "]");
      }
      else if(accessRight.getInterceptionPointName().startsWith("Repository"))
      {
        RepositoryVO repositoryVO = RepositoryController.getController().getRepositoryVOWithId(new Integer(accessRight.getParameters()));
        String path = repositoryVO.getName();     
        sb.append("Repository access right on [" + path + "]");
      }
      else
      {
        sb.append("Other access right on [" + accessRight.getInterceptionPointName() + "/" + accessRight.getParameters() + "]");
View Full Code Here

      tools.add(new InfoglueTool("PublishingTool", "ViewPublishingTool!V3.action", "", LabelController.getController(locale).getLocalizedString(locale, "tool.common.publishingTool.name"), "A place to manage your sites", "publishing", ""));
    if(hasAccessTo(principal, "FormsTool.Read", true))
    {
      try
      {
        RepositoryVO repositoryVO = RepositoryController.getController().getRepositoryVOWithName("Infoglue form system");
        if(repositoryVO != null)
        {
          SiteNodeVO siteNodeVO = SiteNodeController.getController().getRootSiteNodeVO(repositoryVO.getId());
          if(siteNodeVO != null)
          {
            tools.add(new InfoglueTool("FormsTool", "ViewSiteNode.action?siteNodeId=" + siteNodeVO.getId(), "", LabelController.getController(locale).getLocalizedString(locale, "tool.common.formEditorTool.name"), "A place to manage your forms", "formeditor", ""));
          }
        }
      }
      catch (Exception e)
      {
        logger.error("Problem loading form system:" + e.getMessage(), e);
      }
    }
    if(hasAccessTo(principal, "CalendarTool.Read", true))
    {
      try
      {
        RepositoryVO repositoryVO = RepositoryController.getController().getRepositoryVOWithName("Infoglue calendar system");
        if(repositoryVO != null)
        {
          SiteNodeVO siteNodeVO = SiteNodeController.getController().getRootSiteNodeVO(repositoryVO.getId());
          if(siteNodeVO != null)
          {
            tools.add(new InfoglueTool("CalendarTool", "ViewSiteNode.action?siteNodeId=" + siteNodeVO.getId(), "", LabelController.getController(locale).getLocalizedString(locale, "tool.common.calendarTool.name"), "A place to manage your calendars", "calendareditor", ""));
          }
        }
View Full Code Here

  public List<Resource> findAllRepositories()
  {
    if(logger.isInfoEnabled())
      logger.info("Showing all repositories");
    List<Resource> list = new ArrayList<Resource>();
    RepositoryVO repository;
    try
    {
      List<RepositoryVO> repositories = RepositoryController.getController().getRepositoryVOList();
     
      if(logger.isInfoEnabled())
        logger.info("repositories:" + repositories.size());
     
      Iterator<RepositoryVO> repositoriesIterator = repositories.iterator();
      while(repositoriesIterator.hasNext())
      {
        RepositoryVO repositoryVO = repositoriesIterator.next();
        list.add( new RepositoryResource(repositoryVO) );
      }
    }
    catch (ConstraintException e)
    {
View Full Code Here

    RepositoryResource resource = null;
   
    if(logger.isInfoEnabled())
      logger.info("find repository:" + name);
   
    RepositoryVO repository = null;
    try
    {
      repository = RepositoryController.getController().getRepositoryVOWithName(name);
          boolean hasAccess = AccessRightController.getController().getIsPrincipalAuthorized(principal, "Repository.Read", repository.getId().toString());
          resource = new RepositoryResource(repository);
          if(!hasAccess)
            throw new NotAuthorizedException(resource);
    }
    catch (Exception e)
View Full Code Here

              if(prefferedRepositoryId != null && prefferedRepositoryId.length() > 0)
              {
                Iterator authorizedRepositoryVOListIterator = authorizedRepositoryVOList.iterator();
                while(authorizedRepositoryVOListIterator.hasNext())
                {
                  RepositoryVO repositoryVO = (RepositoryVO)authorizedRepositoryVOListIterator.next();
                  if(repositoryVO.getId().toString().equals(prefferedRepositoryId))
                  {
                    this.repositoryId = repositoryVO.getId();
                    break;
                  }
                }
              }
              else
              {
                 /* If the repository is not set we get the user defined default repository which cannot be the system tools repository */
                 List<RepositoryVO> acceptedHomeRepositoryVOList = new ArrayList<RepositoryVO>();
               
                 for (RepositoryVO repositoryVO : authorizedRepositoryVOList) {
                  /*This setting is stored in extraproperty for repository*/
                    String hideAsHomeRepository = RepositoryDeliveryController.getRepositoryDeliveryController().getExtraPropertyValue(repositoryVO.getRepositoryId(), "hideAsHomeRepository");
                  if (hideAsHomeRepository == null) {
                    acceptedHomeRepositoryVOList.add(repositoryVO);
                  }
                 }
                 if(acceptedHomeRepositoryVOList.size() > 0) {
                   RepositoryVO repositoryVO = acceptedHomeRepositoryVOList.get(0);
                   logger.info("Setting home repository to:" + repositoryVO.getName());
                   this.repositoryId = repositoryVO.getId();
                 } else {
                   logger.error("This user does not has access to any allowed repositoies");
                   this.repositoryId = null;
                 }
              }
View Full Code Here

    else if(toolName.equals("StructureTool"))
    {
      repositoryId = getStructureRepositoryId();
    }
   
    RepositoryVO repositoryVO = RepositoryController.getController().getRepositoryVOWithId(repositoryId);
    if(repositoryVO != null)
    {
      repositoryName = repositoryVO.getName();
    }
   
    return repositoryName;
    }
View Full Code Here

TOP

Related Classes of org.infoglue.cms.entities.management.RepositoryVO

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.