Package org.infoglue.cms.entities.management

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


  private List<ToolbarButton> getRepositoryDetailsButtons(String toolbarKey, InfoGluePrincipal principal, Locale locale, HttpServletRequest request, boolean disableCloseButton) throws Exception
  {
    List<ToolbarButton> buttons = new ArrayList<ToolbarButton>();
   
    Integer repositoryId = new Integer(request.getParameter("repositoryId"));
    RepositoryVO repositoryVO = RepositoryController.getController().getRepositoryVOWithId(repositoryId);
   
    buttons.add(new ToolbarButton("",
          getLocalizedString(locale, "tool.managementtool.deleteRepository.header"),
          getLocalizedString(locale, "tool.managementtool.deleteRepository.header"),
          "DeleteRepository!markForDelete.action?repositoryId=" + repositoryId + "&igSecurityCode=" + request.getSession().getAttribute("securityCode"),
          "css/images/v3/createBackgroundPenPaper.gif",
          "left",
          "create",
          false,
          true,
          getLocalizedString(locale, "tool.managementtool.deleteRepository.header"),
          getLocalizedString(locale, "tool.managementtool.deleteRepository.text", new String[]{repositoryVO.getName()}),
          "workIframe"));

    buttons.add(new ToolbarButton("",
          getLocalizedString(locale, "tool.managementtool.exportRepository.header"),
          getLocalizedString(locale, "tool.managementtool.exportRepository.header"),
View Full Code Here


          "denyPublication",
          true));

    try
    {
        RepositoryVO repositoryVO = RepositoryController.getController().getRepositoryVOWithId(repositoryId);

        String repositoryName = repositoryVO.getName();
      String dnsName = repositoryVO.getDnsName();

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

   * This method removes a Repository from the system and also cleans out all depending repositoryLanguages.
   */
 
    public void delete(Integer repositoryId, boolean forceDelete, InfoGluePrincipal infoGluePrincipal) throws ConstraintException, SystemException
    {
      RepositoryVO repositoryVO = getRepositoryVOWithId(repositoryId);
     
      delete(repositoryVO, forceDelete, infoGluePrincipal);
    }
View Full Code Here

    }

    public RepositoryVO getRepositoryVOWithId(Integer repositoryId) throws ConstraintException, SystemException, Bug
    {
    String key = "" + repositoryId;
    RepositoryVO repositoryVO = (RepositoryVO)CacheController.getCachedObject("repositoryCache", key);
    if(repositoryVO != null)
    {
      return repositoryVO;
    }

    RepositoryVO rep = (RepositoryVO) getVOWithId(RepositoryImpl.class, repositoryId);
   
    if(rep != null)
      CacheController.cacheObject("repositoryCache", key, rep);
   
    return rep;
View Full Code Here

    }
 
    public RepositoryVO getRepositoryVOWithId(Integer repositoryId, Database db) throws ConstraintException, SystemException, Bug
    {
    String key = "" + repositoryId;
    RepositoryVO repositoryVO = (RepositoryVO)CacheController.getCachedObject("repositoryCache", key);
    if(repositoryVO != null)
    {
      //logger.info("There was an cached authorization:" + repositoryVO);
    }
    else
View Full Code Here

   * @throws Bug
   */
 
  public RepositoryVO getRepositoryVOWithName(String name) throws SystemException, Bug
  {
    RepositoryVO repositoryVO = null;
   
    Database db = CastorDatabaseService.getDatabase();

    try
    {
View Full Code Here

   * @throws Bug
   */

  public RepositoryVO getRepositoryVOWithName(String name, Database db) throws SystemException, Bug
  {
    RepositoryVO repositoryVO = null;
   
    String key = "" + name;
    logger.info("key:" + key);
    Object cachedRepoCandidate = CacheController.getCachedObject("repositoryCache", key);
    if(cachedRepoCandidate != null)
View Full Code Here

      //t.printElapsedTime("allRepositories took");
     
      Iterator i = allRepositories.iterator();
      while(i.hasNext())
      {
        RepositoryVO repositoryVO = (RepositoryVO)i.next();
        if(getIsAccessApproved(db, repositoryVO.getRepositoryId(), infoGluePrincipal, isBindingDialog, allowIfWriteAccess) && (showDeletedItems || !repositoryVO.getIsDeleted()))
        {
          //t.printElapsedTime("getIsAccessApproved took");
          accessableRepositories.add(repositoryVO);
        }
      }
View Full Code Here

   */
 
  public RepositoryVO getFirstRepositoryVO()  throws SystemException, Bug
  {
    Database db = CastorDatabaseService.getDatabase();
    RepositoryVO repositoryVO = null;
   
    try
    {
      beginTransaction(db);
   
View Full Code Here

   * is handling.
   */

  public BaseEntityVO getNewVO()
  {
    return new RepositoryVO();
  }
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.