Examples of InterceptionPoint


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

                  Database db = CastorDatabaseService.getDatabase();
            beginTransaction(db);
           
            try
            {
                    InterceptionPoint interceptionPoint = InterceptionPointController.getController().getInterceptionPointWithName(interceptionPointName, db);
                   
                    logger.info("interceptionPointName:" + interceptionPointName);
                  logger.info("parameters:" + parameters);
 
                  AccessRightVO accessRightVO = new AccessRightVO();
                  accessRightVO.setParameters("" + parameters);
                 
                  if(clearOldAccessRights != null && clearOldAccessRights.equalsIgnoreCase("true"))
                    AccessRightController.getController().delete(interceptionPoint.getId(), parameters, true, db);
                 
                  AccessRight accessRight = AccessRightController.getController().create(accessRightVO, interceptionPoint, db);
                 
                  List accessRightRoles = (List)accessRightMap.get("accessRightRoles");
                  if(accessRightRoles != null)
View Full Code Here

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

      return cachedInterceptorVOList;
    }
   
    //List<InterceptorVO> interceptorsVOList = getInterceptorVOList(interceptionPointId, db);
   
    InterceptionPoint interceptionPoint = InterceptionPointController.getController().getReadOnlyInterceptionPointWithId(interceptionPointId, db);
   
    Collection interceptors = interceptionPoint.getInterceptors();
   
    List interceptorsVOList = toVOList(interceptors);
   
    CacheController.cacheObject("interceptorsCache", key, interceptorsVOList);
View Full Code Here

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

     
      Collection interceptionPoints = interceptor.getInterceptionPoints();
      Iterator interceptionPointsIterator = interceptionPoints.iterator();
      while(interceptionPointsIterator.hasNext())
      {
        InterceptionPoint interceptionPoint = (InterceptionPoint)interceptionPointsIterator.next();
        interceptionPoint.getInterceptors().remove(interceptor);
      }
     
      interceptor.getInterceptionPoints().clear();
       
      if(values != null)
      {
        for(int i=0; i<values.length; i++)
        {
          String interceptionPointId = values[i];
          InterceptionPoint interceptionPoint = InterceptionPointController.getController().getInterceptionPointWithId(new Integer(interceptionPointId), db);
          interceptor.getInterceptionPoints().add(interceptionPoint);
          interceptionPoint.getInterceptors().add(interceptor);
        }
      }
     
      if(configuration != null)
        InterceptorController.getController().updateInterceptorConfiguration(interceptorVO.getInterceptorId(), configuration);
View Full Code Here

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

      logger.info("accessRight:" + accessRight.getId());
     
      AccessRightVO copiedAccessRight = accessRight.getValueObject().createCopy();
      copiedAccessRight.setParameters(newSiteNodeVersionId.toString());
     
      InterceptionPoint icp = null;
      for(InterceptionPoint currentICP : interceptionPointList)
      {
        if(currentICP.getId().equals(copiedAccessRight.getInterceptionPointId()))
          icp = currentICP;
      }
View Full Code Here

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

   */
 
  private Map<String,InterceptionPoint> interceptionPoints = new HashMap<String,InterceptionPoint>();
  public void copyAccessRights(Database db, String oldParameter, String newParameter, String interceptionPointName) throws Exception
  {
    InterceptionPoint interceptionPoint = interceptionPoints.get(interceptionPointName);
    if(interceptionPoint == null)
    {     
      interceptionPoint = InterceptionPointController.getController().getInterceptionPointWithName(interceptionPointName, db);
      interceptionPoints.put(interceptionPointName, interceptionPoint);
    }
   
    List<AccessRight> accessRights = AccessRightController.getController().getAccessRightListOnlyReadOnly(interceptionPoint.getId(), oldParameter, db);
    for(AccessRight accessRight : accessRights)
    {   
      AccessRightImpl arImpl = new AccessRightImpl();
      arImpl.setInterceptionPoint(interceptionPoint);
      arImpl.setParameters(newParameter);
View Full Code Here

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

      Iterator<AccessRight> accessRightsIterator = accessRights.iterator();
      while(accessRightsIterator.hasNext())
      {
        AccessRight accessRight = accessRightsIterator.next();
 
        InterceptionPoint interceptionPoint = InterceptionPointController.getController().getInterceptionPointWithName(accessRight.getInterceptionPointName(), dbAccessRight);
        accessRight.setInterceptionPoint(interceptionPoint);
        if(interceptionPoint.getName().indexOf("Content") > -1)
          accessRight.setParameters((String)contentIdMap.get(accessRight.getParameters()));
        else if(interceptionPoint.getName().indexOf("SiteNodeVersion") > -1)
          accessRight.setParameters((String)siteNodeVersionIdMap.get(accessRight.getParameters()));
        else if(interceptionPoint.getName().indexOf("SiteNode") > -1)
          accessRight.setParameters((String)siteNodeIdMap.get(accessRight.getParameters()));
        else if(interceptionPoint.getName().indexOf("Repository") > -1)
          accessRight.setParameters(""+repositoryIdMap.get(accessRight.getParameters()));
 
        dbAccessRight.create(accessRight);
 
        Iterator accessRightRoleIterator = accessRight.getRoles().iterator();
View Full Code Here

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

      return cachedInterceptorVOList;
    }
   
    List interceptorsVOList = null;
   
    InterceptionPoint interceptionPoint = this.getInterceptionPointWithId(interceptionPointId, db);
   
    Collection interceptors = interceptionPoint.getInterceptors();
   
    interceptorsVOList = toVOList(interceptors);
   
    CacheController.cacheObject("interceptorsCache", key, interceptorsVOList);
View Full Code Here

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

    {
        interceptionPointVO = (InterceptionPointVO)object;
    }
    else
    {
      InterceptionPoint interceptorPoint = null;
     
      try
      {
        OQLQuery oql = db.getOQLQuery("SELECT f FROM org.infoglue.cms.entities.management.impl.simple.InterceptionPointImpl f WHERE f.name = $1");
        oql.bind(interceptorPointName);
       
        QueryResults results = oql.execute(Database.READONLY);
        if(results.hasMore())
        {
          interceptorPoint = (InterceptionPoint)results.next();
          interceptionPointVO = interceptorPoint.getValueObject();
          CacheController.cacheObject(cacheName, key, interceptionPointVO);       
        }
        else
       
            CacheController.cacheObject(cacheName, key, new NullObject());
View Full Code Here

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

 


  public InterceptionPoint getInterceptionPointWithName(String interceptorPointName, Database dbthrows SystemException, Bug
  {
    InterceptionPoint interceptorPoint = null;
   
    try
    {
      OQLQuery oql = db.getOQLQuery("SELECT f FROM org.infoglue.cms.entities.management.impl.simple.InterceptionPointImpl f WHERE f.name = $1");
      oql.bind(interceptorPointName);
View Full Code Here

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

      QueryResults results = oql.execute();
      this.logger.info("Fetching entity in read/write mode:" + category);

      while(results.hasMore())
      {
        InterceptionPoint interceptionPoint = (InterceptionPoint)results.next();
        interceptionPoints.add(interceptionPoint);
      }
     
      results.close();
      oql.close();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.