org.apache.jetspeed.layout.impl
Class ExportJetspeedSchema

java.lang.Object
  extended by org.apache.jetspeed.layout.impl.BasePortletAction
      extended by org.apache.jetspeed.layout.impl.BaseGetResourceAction
          extended by org.apache.jetspeed.layout.impl.ExportJetspeedSchema
All Implemented Interfaces:
org.apache.jetspeed.ajax.AjaxAction, org.apache.jetspeed.ajax.AjaxBuilder, Constants

public class ExportJetspeedSchema
extends BaseGetResourceAction
implements org.apache.jetspeed.ajax.AjaxAction, org.apache.jetspeed.ajax.AjaxBuilder, Constants

Exporting the object using Ajax command

Version:
$Id$
Author:
Vivek Kumar

Field Summary
private static String CAPABILITIES
           
protected  org.apache.jetspeed.page.PageManager castorPageManager
           
private static String GROUPS
           
protected  org.apache.commons.logging.Log log
           
protected  String pageRoot
           
(package private)  String pathSeprator
           
private static String PERMISSIONS
           
private static String PREFS
           
private static String PROFILES
           
private static String ROLES
           
protected  org.apache.jetspeed.serializer.JetspeedSerializerFactory serializerFactory
           
private static String USERS
           
 
Fields inherited from class org.apache.jetspeed.layout.impl.BasePortletAction
errorTemplate, pageManager, securityBehavior, template
 
Fields inherited from interface org.apache.jetspeed.layout.impl.Constants
ABS, ACTION, CARTESIAN, COL, CUSTOM_MENUS, DEFAULT_LAYOUT, DESKTOP_EXTENDED, DESKTOP_PAGE_DECORATIONS, DESKTOP_PORTLET_DECORATIONS, DESTINATION, DOWN, FILTER, FOLDER, FOLDERS, FORMAT, FRAGMENTID, FRAGMENTS, GUESTUSERS, HEIGHT, INCLUDE_MENU_DEFS, IPADDRESS, LAYOUT, LAYOUTID, LAYOUTS, LEFT, LINK, LINKS, MENU, MENU_CONTEXT, MENU_DEFINITIONS, MENU_LOCALE, MENU_NAME, METADATA, NEWCOL, NEWROW, OFFLINE, OLD_DESKTOP_EXTENDED, OLD_HEIGHT, OLD_PORTLET_MODE, OLD_WIDTH, OLD_WINDOW_STATE, OLD_X, OLD_Y, OLD_Z, OLDCOL, OLDROW, ONLINE, PAGE, PAGE_DECORATIONS, PAGE_QUALIFIED_CREATE_ON_EDIT, PAGES, PORTLET_DECORATIONS, PORTLET_MODE, PORTLETENTITY, PORTLETID, PORTLETS, PROFILED_PATH, REASON, RESOURCE_NAME, RIGHT, ROW, SECURITY_DEFS, SECURITY_OWNER, SECURITY_REFS, SESSIONS, SHORT_TITLE, SIZES, SOURCE, STANDARD_MENUS, STATUS, TITLE, TYPE, UP, USER_IS_ANONYMOUS, USERINFO, USERNAME, WIDTH, WINDOW_STATE, X, Y, Z
 
Constructor Summary
ExportJetspeedSchema(String template, String errorTemplate, org.apache.jetspeed.page.PageManager pageManager, org.apache.jetspeed.layout.PortletActionSecurityBehavior securityBehavior, org.apache.jetspeed.serializer.JetspeedSerializerFactory serializerFactory, String dir)
           
 
Method Summary
private  boolean cleanUserFolder(String userName)
           
private  boolean deleteDir(File dir)
           
private  String getDownloadLink(org.apache.jetspeed.request.RequestContext requestContext, String ObjectName, String userName)
           
private  String getUserFolder(String userName, boolean fullPath)
           
 boolean run(org.apache.jetspeed.request.RequestContext requestContext, Map resultMap)
           
 
Methods inherited from class org.apache.jetspeed.layout.impl.BaseGetResourceAction
putSecurityInformation
 
Methods inherited from class org.apache.jetspeed.layout.impl.BasePortletAction
buildContext, buildErrorContext, checkAccess, createNewPageOnEdit, getActionParameter, getErrorTemplate, getFragmentIdFromLocation, getFragmentIdFromLocation, getNonNullActionParameter, getParentFragmentById, getTemplate, isCreateNewPageOnEditEnabled, isPageQualifiedForCreateNewPageOnEdit, runBatch
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.jetspeed.ajax.AjaxAction
checkAccess, runBatch
 
Methods inherited from interface org.apache.jetspeed.ajax.AjaxBuilder
buildContext, buildErrorContext, getErrorTemplate, getTemplate
 

Field Detail

log

protected org.apache.commons.logging.Log log

castorPageManager

protected org.apache.jetspeed.page.PageManager castorPageManager

serializerFactory

protected org.apache.jetspeed.serializer.JetspeedSerializerFactory serializerFactory

pageRoot

protected String pageRoot

USERS

private static final String USERS
See Also:
Constant Field Values

GROUPS

private static final String GROUPS
See Also:
Constant Field Values

ROLES

private static final String ROLES
See Also:
Constant Field Values

PERMISSIONS

private static final String PERMISSIONS
See Also:
Constant Field Values

PROFILES

private static final String PROFILES
See Also:
Constant Field Values

CAPABILITIES

private static final String CAPABILITIES
See Also:
Constant Field Values

PREFS

private static final String PREFS
See Also:
Constant Field Values

pathSeprator

String pathSeprator
Constructor Detail

ExportJetspeedSchema

public ExportJetspeedSchema(String template,
                            String errorTemplate,
                            org.apache.jetspeed.page.PageManager pageManager,
                            org.apache.jetspeed.layout.PortletActionSecurityBehavior securityBehavior,
                            org.apache.jetspeed.serializer.JetspeedSerializerFactory serializerFactory,
                            String dir)
Method Detail

run

public boolean run(org.apache.jetspeed.request.RequestContext requestContext,
                   Map resultMap)
Specified by:
run in interface org.apache.jetspeed.ajax.AjaxAction

getDownloadLink

private String getDownloadLink(org.apache.jetspeed.request.RequestContext requestContext,
                               String ObjectName,
                               String userName)
                        throws Exception
Throws:
Exception

cleanUserFolder

private boolean cleanUserFolder(String userName)

deleteDir

private boolean deleteDir(File dir)

getUserFolder

private String getUserFolder(String userName,
                             boolean fullPath)


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.