Package org.infoglue.cms.util.sorters

Examples of org.infoglue.cms.util.sorters.ReflectionComparator


    }
   
    List<ContentVersion> sortedVersions = new ArrayList<ContentVersion>();
    sortedVersions.addAll(contentVersions);
   
    Collections.sort(sortedVersions, new ReflectionComparator("id"));

    if(true)
    {
      logger.info("sortedVersions:" + sortedVersions.size());
      Iterator contentVersionsIteratorDebug = sortedVersions.iterator();
View Full Code Here


        }
      }
      components = allowedComponents;
    }
   
    Collections.sort(components, new ReflectionComparator(sortProperty));
   
    return components;
  }
View Full Code Here

          //t.printElapsedTime("getIsAccessApproved took");
          accessableRepositories.add(repositoryVO);
        }
      }
       
      Collections.sort(accessableRepositories, new ReflectionComparator("name"));

      commitTransaction(db);
    }
    catch ( Exception e)   
    {
View Full Code Here

            else
              logger.info("Not adding siteNodeVersion..");
          }

            this.siteNodeVersionVOList.addAll(siteNodeVersionVOList);
            Collections.sort(this.siteNodeVersionVOList, Collections.reverseOrder(new ReflectionComparator("modifiedDateTime")));
 
          processBean.updateProcess("Getting modifier and path to found contents.");
 
          for(ContentVersionVO contentVersionVO : contentVersionVOList)
          {
            if(contentVersionVO.getStateId() == 0
            {
              Integer protectedContentId = ContentControllerProxy.getController().getProtectedContentId(contentId, db);
              if(protectedContentId != null)
              {
                boolean hasAnonymousUserAccess = AccessRightController.getController().getIsPrincipalAuthorized(db, UserControllerProxy.getController().getUser(CmsPropertyHandler.getAnonymousUser()), "Content.Read", protectedContentId.toString(), false);
                if(!hasAnonymousUserAccess)
                {
                  anonymousNoAccessWarning = true;
                  contentVersionVO.setHasAnonymousUserAccess(false);
                }
              }

              if(!skipDisplayName)
              {
                InfoGluePrincipal principal = (InfoGluePrincipal)getInfoGluePrincipal(contentVersionVO.getVersionModifier(), db);
                if(principal != null)
                {
                  if(principal.getName().equalsIgnoreCase(principal.getDisplayName()))
                    skipDisplayName = true;
                 
                  contentVersionVO.setVersionModifierDisplayName(principal.getDisplayName());
                }
              }
              contentVersionVO.setPath(getContentPath(contentVersionVO.getContentId(), db));
            }
            else
              logger.info("Not adding contentVersion..");
          }
 
            this.contentVersionVOList.addAll(contentVersionVOList);
            Collections.sort(this.contentVersionVOList, Collections.reverseOrder(new ReflectionComparator("modifiedDateTime")));
         
          commitTransaction(db);
            }
            catch(Exception e)
            {
View Full Code Here

        }
      }
      components = allowedComponents;
    }
   
    Collections.sort(components, new ReflectionComparator(sortProperty));
   
    return components;
  }
View Full Code Here

  private int actionId;
  private String finalReturnAddress = "";
 
  public List getWorkflowVOList()
  {
    Collections.sort(workflowVOList, new ReflectionComparator("workflowId"));
    return workflowVOList;
  }
View Full Code Here

   * @throws SystemException if a workflow error occurs
   */
  private void populateLists() throws SystemException
  {
    availableWorkflowVOList = controller.getAvailableWorkflowVOList(getInfoGluePrincipal());
    ReflectionComparator workflowComparator = new ReflectionComparator("name");
    Collections.sort(availableWorkflowVOList, workflowComparator);
   
    final String showAllWorkflows = CmsPropertyHandler.getShowAllWorkflows();
    if(showAllWorkflows == null || showAllWorkflows.equalsIgnoreCase("true"))
    {
View Full Code Here

     
      i++;
      authorizerClassName = this.extraProperties.getProperty("" + i + ".authorizerClassName");
    }

    Collections.sort(roles, new ReflectionComparator("displayName"));

    return roles;
  }
View Full Code Here

  public List<SiteNodeVO> getSiteNodeVOListLastModifiedByPincipal()
  {
    List<SiteNodeVO> siteNodeVOList = new ArrayList<SiteNodeVO>();
    siteNodeVOList.addAll(siteNodeVOListLastModifiedByPincipal);
    Collections.sort(siteNodeVOList, new ReflectionComparator("id"));

    return siteNodeVOList;
  }
View Full Code Here

  public List<ContentVO> getContentVOListLastModifiedByPincipal()
  {
    List<ContentVO> contentVOList = new ArrayList<ContentVO>();
    contentVOList.addAll(contentVOListLastModifiedByPincipal);
    Collections.sort(contentVOList, new ReflectionComparator("id"));

    return contentVOList;
  }
View Full Code Here

TOP

Related Classes of org.infoglue.cms.util.sorters.ReflectionComparator

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.