portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jf...@apache.org
Subject cvs commit: jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/om/common SecurityRoleRefComposite.java
Date Wed, 15 Sep 2004 20:05:06 GMT
jford       2004/09/15 13:05:06

  Modified:    components/registry/src/java/org/apache/jetspeed/om/impl
                        SecurityRoleRefImpl.java
               jetspeed-api/src/java/org/apache/jetspeed/om/common
                        SecurityRoleRefComposite.java
  Log:
  Added methods to make it easier to add/get descriptions
  
  Revision  Changes    Path
  1.4       +21 -2     jakarta-jetspeed-2/components/registry/src/java/org/apache/jetspeed/om/impl/SecurityRoleRefImpl.java
  
  Index: SecurityRoleRefImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/components/registry/src/java/org/apache/jetspeed/om/impl/SecurityRoleRefImpl.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- SecurityRoleRefImpl.java	15 May 2004 02:01:00 -0000	1.3
  +++ SecurityRoleRefImpl.java	15 Sep 2004 20:05:06 -0000	1.4
  @@ -139,6 +139,18 @@
           descCollWrapper.setInnerCollection(descriptions);
           descCollWrapper.addDescription(description);
       }
  +    
  +    /**
  +     * @see org.apache.jetspeed.om.common.MutableDescriptionSet#addDescription(java.util.Locale,
java.lang.String)
  +     */
  +    public void addDescription(Locale locale, String description)
  +    {
  +        SecurityRoleRefDescriptionImpl descImpl = new SecurityRoleRefDescriptionImpl();
  +        descImpl.setDescription(description);
  +        descImpl.setLocale(locale);
  +        
  +        addDescription(descImpl);
  +    }
   
       /**
        * @see org.apache.jetspeed.om.common.SecurityRoleRefComposite#setDescriptionSet(org.apache.pluto.om.common.DescriptionSet)
  @@ -163,7 +175,14 @@
           
           descObj.setLocale(JetspeedLocale.getDefaultLocale());
           descObj.setDescription(arg0);
  -
  +        addDescription(descObj);
       }
   
  +    /**
  +     * @see org.apache.jetspeed.om.common.SecurityRoleRefComposite#getDescriptionSet()
  +     */
  +    public DescriptionSet getDescriptionSet()
  +    {
  +        return descCollWrapper;
  +    }
   }
  
  
  
  1.2       +5 -1      jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/om/common/SecurityRoleRefComposite.java
  
  Index: SecurityRoleRefComposite.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/om/common/SecurityRoleRefComposite.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SecurityRoleRefComposite.java	5 Jun 2004 05:10:16 -0000	1.1
  +++ SecurityRoleRefComposite.java	15 Sep 2004 20:05:06 -0000	1.2
  @@ -16,6 +16,7 @@
   package org.apache.jetspeed.om.common;
   
   import java.io.Serializable;
  +import java.util.Locale;
   
   import org.apache.pluto.om.common.Description;
   import org.apache.pluto.om.common.DescriptionSet;
  @@ -34,6 +35,9 @@
   {
       void addDescription(Description description);
       
  +    void addDescription(Locale locale, String description);
  +    
       void setDescriptionSet(DescriptionSet descriptions);
   
  +    DescriptionSet getDescriptionSet();
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message