portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject svn commit: r215968 - /portals/jetspeed-2/branches/MENUS_BRANCH/jetspeed-api/src/java/org/apache/jetspeed/om/folder/Folder.java
Date Tue, 12 Jul 2005 15:49:52 GMT
Author: taylor
Date: Tue Jul 12 08:49:51 2005
New Revision: 215968

URL: http://svn.apache.org/viewcvs?rev=215968&view=rev
Log:
added api for reserved folder types

Modified:
    portals/jetspeed-2/branches/MENUS_BRANCH/jetspeed-api/src/java/org/apache/jetspeed/om/folder/Folder.java

Modified: portals/jetspeed-2/branches/MENUS_BRANCH/jetspeed-api/src/java/org/apache/jetspeed/om/folder/Folder.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/branches/MENUS_BRANCH/jetspeed-api/src/java/org/apache/jetspeed/om/folder/Folder.java?rev=215968&r1=215967&r2=215968&view=diff
==============================================================================
--- portals/jetspeed-2/branches/MENUS_BRANCH/jetspeed-api/src/java/org/apache/jetspeed/om/folder/Folder.java
(original)
+++ portals/jetspeed-2/branches/MENUS_BRANCH/jetspeed-api/src/java/org/apache/jetspeed/om/folder/Folder.java
Tue Jul 12 08:49:51 2005
@@ -208,5 +208,39 @@
      *
      * @param definitions definition list
      */
-    void setMenuDefinitions(List definitions);    
+    void setMenuDefinitions(List definitions);
+    
+    /**
+     * Determines if a folder is a reserved folder.
+     * Reserved folders are special folders that can
+     * hold subsites, the root of user folders, and the
+     * root of role folders.
+     * @return
+     */
+    boolean isReserved();
+    
+    /**
+     * Returns a valid reserved folder type:
+     *  RESERVED_FOLDER_SUBSITES
+     *  RESERVED_FOLDER_USERS
+     *  RESERVED_FOLDER_ROLES
+     *  RESERVED_FOLDER_GROUPS
+     *  RESERVED_FOLDER_MEDIATYPE
+     *  RESERVED_FOLDER_LANGUAGE
+     *  RESERVED_FOLDER_COUNTRY
+     *  
+     * @return one of the valid reserved folder types
+     */
+    int getReservedType();
+
+    int RESERVED_FOLDER_NONE = 0;    
+    int RESERVED_FOLDER_SUBSITES = 1;
+    int RESERVED_FOLDER_USERS = 2;
+    int RESERVED_FOLDER_ROLES = 3;
+    int RESERVED_FOLDER_GROUPS = 4;
+    int RESERVED_FOLDER_MEDIATYPE = 5;
+    int RESERVED_FOLDER_LANGUAGE = 6;
+    int RESERVED_FOLDER_COUNTRY = 7;
+    int RESERVED_FOLDER_OTHER = 9999;
+    
 }



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


Mime
View raw message