com.atlassian.crowd.console.action.dataimport
Class DirectoryImporter

java.lang.Object
  extended by com.opensymphony.xwork.ActionSupport
      extended by com.atlassian.crowd.console.action.BaseAction
          extended by com.atlassian.crowd.console.action.dataimport.BaseImporter
              extended by com.atlassian.crowd.console.action.dataimport.DirectoryImporter
All Implemented Interfaces:
com.opensymphony.webwork.interceptor.SessionAware, com.opensymphony.xwork.Action, com.opensymphony.xwork.LocaleProvider, com.opensymphony.xwork.TextProvider, com.opensymphony.xwork.Validateable, com.opensymphony.xwork.ValidationAware, com.uwyn.rife.continuations.ContinuableObject, Serializable, Cloneable

public class DirectoryImporter
extends BaseImporter
implements com.opensymphony.webwork.interceptor.SessionAware

This action handles the setup of an import from one directory to another.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.atlassian.crowd.console.action.dataimport.BaseImporter
IMPORTER_CONFIGURATION, logger, result
 
Fields inherited from class com.atlassian.crowd.console.action.BaseAction
actionMessageAlertColor, ALERT_BLUE, ALERT_GREEN, ALERT_RED, ALERT_YELLOW, applicationManager, applicationService, clientProperties, crowdLicenseManager, directoryManager, initialLoad, propertyManager, tab, tokenAuthenticationManager
 
Fields inherited from class com.opensymphony.xwork.ActionSupport
LOG
 
Fields inherited from interface com.opensymphony.xwork.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
DirectoryImporter()
           
 
Method Summary
 boolean determineIfNestedGroupImport()
           
 String doImport()
           
 String execute()
           
 DirectoryConfiguration getConfiguration()
           
 Boolean getOverwriteTarget()
           
 Long getSourceDirectoryID()
           
 Long getTargetDirectoryID()
           
 void setOverwriteTarget(Boolean overwriteTarget)
           
 void setSession(Map session)
           
 void setSourceDirectoryID(Long sourceDirectoryID)
           
 void setTargetDirectoryID(Long targetDirectoryID)
           
 
Methods inherited from class com.atlassian.crowd.console.action.dataimport.BaseImporter
getDirectories, getResult, setDirectories, setResult
 
Methods inherited from class com.atlassian.crowd.console.action.BaseAction
addActionMessage, authorisedToAccessCrowdAdminConsole, authorisedToAccessCrowdConsole, containsActionMessages, containsErrorMessages, directory, doDefault, getActionMessageAlertColor, getAttribute, getBootstrapManager, getCurrentLicenseResourceTotal, getDisplayableLink, getFirstAttribute, getHttpRequest, getImageLocation, getImageTitle, getLicense, getLink, getRemoteUser, getSession, getSitemeshPageProperties, getSitemeshPageProperty, getTab, getText, getText, getUserName, getWebFragmentsContextMap, getWebInterfaceManager, getWebItemsForSection, getWebResourceManager, getWebSectionsForLocation, getXsrfToken, getXsrfTokenName, isAdmin, isAtResourceLimit, isAuthenticated, isEvaluation, isInitialLoad, isLicenseExpired, isSubscription, isWithinGracePeriod, renderFreemarkerTemplate, setApplicationManager, setApplicationService, setClientProperties, setCrowdLicenseManager, setCrowdUserDetailsService, setDirectoryManager, setPropertyManager, setTab, setTokenAuthenticationManager, setWebInterfaceManager, setWebResourceManager, setXsrfTokenGenerator
 
Methods inherited from class com.opensymphony.xwork.ActionSupport
addActionError, addActionMessage, addFieldError, clearErrorsAndMessages, clone, doInput, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getLocale, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, pause, setActionErrors, setActionMessages, setFieldErrors, validate
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectoryImporter

public DirectoryImporter()
Method Detail

execute

public String execute()
               throws Exception
Specified by:
execute in interface com.opensymphony.xwork.Action
Overrides:
execute in class com.opensymphony.xwork.ActionSupport
Throws:
Exception

doImport

public String doImport()
                throws DirectoryInstantiationException,
                       DirectoryNotFoundException
Throws:
DirectoryInstantiationException
DirectoryNotFoundException

determineIfNestedGroupImport

public boolean determineIfNestedGroupImport()
                                     throws DirectoryInstantiationException,
                                            DirectoryNotFoundException
Throws:
DirectoryInstantiationException
DirectoryNotFoundException

getConfiguration

public DirectoryConfiguration getConfiguration()

getSourceDirectoryID

public Long getSourceDirectoryID()

setSourceDirectoryID

public void setSourceDirectoryID(Long sourceDirectoryID)

getOverwriteTarget

public Boolean getOverwriteTarget()

setOverwriteTarget

public void setOverwriteTarget(Boolean overwriteTarget)

getTargetDirectoryID

public Long getTargetDirectoryID()

setTargetDirectoryID

public void setTargetDirectoryID(Long targetDirectoryID)

setSession

public void setSession(Map session)
Specified by:
setSession in interface com.opensymphony.webwork.interceptor.SessionAware


Copyright © 2012 Atlassian. All Rights Reserved.