taylor      2004/11/03 11:39:56

  Modified:    jetspeed-api/src/java/org/apache/jetspeed/profiler/rules
                        RuleCriterionResolver.java
               jetspeed-api/src/java/org/apache/jetspeed/profiler
                        ProfileLocator.java ProfileLocatorProperty.java
  Log:
  profile criteria and locators can now have a isNavigation property to indicate that 
the property instructs the locator interpreter to navigate to an explicit folder using 
the property value as the location
  
  Revision  Changes    Path
  1.5       +11 -1     
jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/profiler/rules/RuleCriterionResolver.java
  
  Index: RuleCriterionResolver.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/profiler/rules/RuleCriterionResolver.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- RuleCriterionResolver.java        26 Oct 2004 17:48:54 -0000      1.4
  +++ RuleCriterionResolver.java        3 Nov 2004 19:39:56 -0000       1.5
  @@ -74,6 +74,9 @@
       /** look in user attributes */
       public static final String USER_ATTRIBUTE = "user.attribute";
       
  +    /** change the current navigation path */
  +    public static final String NAVIGATION = "navigation";
  +    
       /**
        * Resolver the value for a criterion.
        * 
  @@ -90,5 +93,12 @@
        * @return The control class flag
        */    
       boolean isControl(RuleCriterion criterion);
  +
  +    /**
  +     * Gets the navigation classification of the resolver.
  +     * 
  +     * @return The control class flag
  +     */    
  +    boolean isNavigation(RuleCriterion criterion);
       
   }
  
  
  
  1.6       +13 -3     
jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/profiler/ProfileLocator.java
  
  Index: ProfileLocator.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/profiler/ProfileLocator.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- ProfileLocator.java       15 Oct 2004 07:07:49 -0000      1.5
  +++ ProfileLocator.java       3 Nov 2004 19:39:56 -0000       1.6
  @@ -68,18 +68,20 @@
        * 
        * @param criterion The rule criterion on which this property is based.
        * @param isControl The control classification for property.
  +     * @param isNavigation The navigation classification for property.
        * @param value The value to set on the property.
        */        
  -    void add(RuleCriterion criterion, boolean isControl, String value);
  +    void add(RuleCriterion criterion, boolean isControl, boolean isNavigation, 
String value);
   
       /**
        * Add a property based on a simple name and value.
        * 
        * @param name The name of the property.
        * @param isControl The control classification for property.
  +     * @param isNavigation The control classification for property.
        * @param value The value to set on the property.
        */            
  -    void add(String name, boolean isControl, String value);
  +    void add(String name, boolean isControl, boolean isNavigation, String value);
       
       /**
        * Add a property based on a simple name and value assumed
  @@ -105,6 +107,14 @@
        * @return control classification flag
        */
       boolean isControl(String name);
  +
  +    /**
  +     * For a given property name, return navigation status of property.
  +     *  
  +     * @param name The name of the property
  +     * @return navigation classification flag
  +     */
  +    boolean isNavigation(String name);
       
       /**
        * <p>Profiles can be created from a normalized <i>Profile Locator Path</i>
  
  
  
  1.3       +6 -1      
jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/profiler/ProfileLocatorProperty.java
  
  Index: ProfileLocatorProperty.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/profiler/ProfileLocatorProperty.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ProfileLocatorProperty.java       17 Sep 2004 20:06:53 -0000      1.2
  +++ ProfileLocatorProperty.java       3 Nov 2004 19:39:56 -0000       1.3
  @@ -74,4 +74,9 @@
        * @return control classification flag
        */
       boolean isControl();
  +    
  +    /**
  +     * @return true if a property is a navigation
  +     */
  +    boolean isNavigation();
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to