Author: taylor
Date: Fri Dec  2 02:37:16 2005
New Revision: 351665

URL: http://svn.apache.org/viewcvs?rev=351665&view=rev
Log:
implemented a few more ajax xml apis:
* getPortlets (returns filtered (secure) list of portlets, supports filters)
* getPage (returns full psml page as xml, should make this default pipeline 
action)
* addPortlet (not yet complete)
* removePortlet is broken, get that next

Modified:
    
portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/ajax/AjaxAction.java
    
portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/layout/PortletPlacementContext.java

Modified: 
portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/ajax/AjaxAction.java
URL: 
http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/ajax/AjaxAction.java?rev=351665&r1=351664&r2=351665&view=diff
==============================================================================
--- 
portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/ajax/AjaxAction.java
 (original)
+++ 
portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/ajax/AjaxAction.java
 Fri Dec  2 02:37:16 2005
@@ -40,4 +40,13 @@
      * @throws Exception
      */
     public boolean run(RequestContext requestContext, Map resultMap) throws 
AJAXException;
+    
+    /**
+     * Checks to see if the current subject has access to to execute this 
action.
+     * 
+     * @param context
+     * @return true if access granted, false if denied.
+     */
+    public boolean checkAccess(RequestContext context, String action);
+    
 }

Modified: 
portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/layout/PortletPlacementContext.java
URL: 
http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/layout/PortletPlacementContext.java?rev=351665&r1=351664&r2=351665&view=diff
==============================================================================
--- 
portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/layout/PortletPlacementContext.java
 (original)
+++ 
portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/layout/PortletPlacementContext.java
 Fri Dec  2 02:37:16 2005
@@ -78,12 +78,12 @@
        /**
      * Add a portlet to its managed page.
      * 
-        * @param portletDefinitionID the definition of the portlet in format 
"PortletApp::PortletName"
+        * @param fragment The Fragment to add
         * @param coordinate The coordinate where to place the new portlet
         * @return
         * @throws PortletPlacementException
         */
-       public Coordinate add(String portletDefinitionID, Coordinate 
coordinate) throws PortletPlacementException;
+       public Coordinate add(Fragment fragment, Coordinate coordinate) throws 
PortletPlacementException;
     
        /**
      * Remove the specified fragment.



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

Reply via email to