portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject cvs commit: jakarta-jetspeed-2/applications/pam/src/java/org/apache/jetspeed/portlets/site SiteBrowserPortlet.java FolderProxyBean.java
Date Fri, 12 Nov 2004 19:34:07 GMT
taylor      2004/11/12 11:34:07

  Modified:    applications/pam/src/java/org/apache/jetspeed/portlets/site
                        SiteBrowserPortlet.java FolderProxyBean.java
  Log:
  - use the path as the unique identifier in the Site treeview
  - add support for isNew in the folder bean
  
  Revision  Changes    Path
  1.6       +3 -3      jakarta-jetspeed-2/applications/pam/src/java/org/apache/jetspeed/portlets/site/SiteBrowserPortlet.java
  
  Index: SiteBrowserPortlet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/applications/pam/src/java/org/apache/jetspeed/portlets/site/SiteBrowserPortlet.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- SiteBrowserPortlet.java	12 Nov 2004 06:34:25 -0000	1.5
  +++ SiteBrowserPortlet.java	12 Nov 2004 19:34:07 -0000	1.6
  @@ -204,8 +204,8 @@
               Iterator folderIter = childFolders.iterator();
               while (folderIter.hasNext())
               {
  -                Folder childFolder = (Folder) folderIter.next();
  -                TreeControlNode childNode = new TreeControlNode(childFolder.getName(),
null, childFolder
  +                Folder childFolder = (Folder) folderIter.next();                
  +                TreeControlNode childNode = new TreeControlNode(childFolder.getPath(),
null, childFolder
                           .getTitle(locale), PortletApplicationResources.PORTLET_URL, null,
false, "FOLDER_DOMAIN");
                   parent.addChild(childNode);
                   buildFolderNodes(childFolder, childNode, locale);
  
  
  
  1.2       +17 -1     jakarta-jetspeed-2/applications/pam/src/java/org/apache/jetspeed/portlets/site/FolderProxyBean.java
  
  Index: FolderProxyBean.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/applications/pam/src/java/org/apache/jetspeed/portlets/site/FolderProxyBean.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- FolderProxyBean.java	12 Nov 2004 06:34:25 -0000	1.1
  +++ FolderProxyBean.java	12 Nov 2004 19:34:07 -0000	1.2
  @@ -39,6 +39,7 @@
       private transient Folder folder;
       private String title;
       private String lookupKey;
  +    private boolean isNew = true;
       
       public FolderProxyBean()
       {        
  @@ -61,6 +62,7 @@
               {
                   this.folder = pageManager.getFolder(key);    
                   setTitle(folder.getTitle());
  +                isNew = false;
               }
           }
           catch (Exception ne)
  @@ -98,5 +100,19 @@
       public void setLookupKey(String lookupKey)
       {
           this.lookupKey = lookupKey;
  +    }
  +    /**
  +     * @return Returns the isNew.
  +     */
  +    public boolean isNew()
  +    {
  +        return isNew;
  +    }
  +    /**
  +     * @param isNew The isNew to set.
  +     */
  +    public void setNew(boolean isNew)
  +    {
  +        this.isNew = isNew;
       }
   }
  
  
  

---------------------------------------------------------------------
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