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/portal/src/java/org/apache/jetspeed/om/folder/impl FolderImpl.java
Date Fri, 12 Mar 2004 22:35:36 GMT
jford       2004/03/12 14:35:36

  Added:       portal/src/java/org/apache/jetspeed/om/folder Folder.java
               portal/src/java/org/apache/jetspeed/om/folder/impl
                        FolderImpl.java
  Log:
  Initial interface/impl of the folder concept
  
  Revision  Changes    Path
  1.1                  jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/om/folder/Folder.java
  
  Index: Folder.java
  ===================================================================
  /*
   * Copyright 2004 The Apache Software Foundation.
   * 
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   * 
   *      http://www.apache.org/licenses/LICENSE-2.0
   * 
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  package org.apache.jetspeed.om.folder;
  
  import java.util.Collection;
  
  /**
   * Folder
   *
   * @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
   * @author <a href="mailto:jford@apache.org">Jeremy Ford</a>
   * @version $Id: Folder.java,v 1.1 2004/03/12 22:35:36 jford Exp $
   */
  public interface Folder
  {
      /**
       * Gets the unique name of this desktop
       * 
       * @return The unique name of the desktop
       */
      String getName();
      
      /**
       * Sets the unique name of this desktop
       * 
       * @param name The name of the desktop 
       */
      void setName(String name);
      
      String getDefaultPage();
      
      void setDefaultPage(String defaultPage);
      
      String getDefaultTheme();
      
      void setDefaultTheme(String defaultTheme);
      
      Collection getFolders();
      
      void setFolders(Collection folders);
      
      Collection getPages();
      
      void setPages(Collection pages);
      
      //GenericMetadata getMetadata();
      //void setMetadata(GenericMetadata metadata);
  }
  
  
  
  1.1                  jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/om/folder/impl/FolderImpl.java
  
  Index: FolderImpl.java
  ===================================================================
  /*
   * Copyright 2004 The Apache Software Foundation.
   * 
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   * 
   *      http://www.apache.org/licenses/LICENSE-2.0
   * 
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  package org.apache.jetspeed.om.folder.impl;
  
  import java.util.Collection;
  
  import org.apache.jetspeed.om.folder.Folder;
  
  /**
   * FolderImpl
   *
   * @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
   * @author <a href="mailto:jford@apache.org">Jeremy Ford</a>
   * @version $Id: FolderImpl.java,v 1.1 2004/03/12 22:35:36 jford Exp $
   */
  public class FolderImpl implements Folder {
      
      private int id;
      private String name;
      private String defaultPage;
      private String defaultTheme;
      private Collection folders;
      private Collection pages;
      //private GenericMetadata metadata;
  
      /* (non-Javadoc)
       * @see org.apache.jetspeed.om.folder.Folder#getName()
       */
      public String getName()
      {
          return name;
      }
  
      /* (non-Javadoc)
       * @see org.apache.jetspeed.om.folder.Folder#setName(java.lang.String)
       */
      public void setName(String name)
      {
          this.name = name;
      }
  
      /* (non-Javadoc)
       * @see org.apache.jetspeed.om.folder.Folder#getDefaultPage()
       */
      public String getDefaultPage()
      {
          return defaultPage;
      }
  
      /* (non-Javadoc)
       * @see org.apache.jetspeed.om.folder.Folder#setDefaultPage()
       */
      public void setDefaultPage(String defaultPage)
      {
          this.defaultPage = defaultPage;
      }
  
      /* (non-Javadoc)
       * @see org.apache.jetspeed.om.folder.Folder#getDefaultTheme()
       */
      public String getDefaultTheme() {
          return defaultTheme;
      }
  
      /* (non-Javadoc)
       * @see org.apache.jetspeed.om.folder.Folder#setDefaultTheme()
       */
      public void setDefaultTheme(String defaultTheme)
      {
          this.defaultTheme = defaultTheme;
      }
  
      /* (non-Javadoc)
       * @see org.apache.jetspeed.om.folder.Folder#getFolders()
       */
      public Collection getFolders()
      {
          return folders;
      }
  
      /* (non-Javadoc)
       * @see org.apache.jetspeed.om.folder.Folder#setFolders(java.util.Collection)
       */
      public void setFolders(Collection folders)
      {
          this.folders = folders;        
      }
  
      /* (non-Javadoc)
       * @see org.apache.jetspeed.om.folder.Folder#getPages()
       */
      public Collection getPages()
      {
          return pages;
      }
  
      /* (non-Javadoc)
       * @see org.apache.jetspeed.om.folder.Folder#setPages(java.util.Collection)
       */
      public void setPages(Collection pages)
      {
          this.pages = pages;
      }
  
  }
  
  
  

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