public abstract class WmsWfsParser extends ServerAction
| Modifier and Type | Field and Description |
|---|---|
static String |
ERROR_DELETE_OLD_PROVIDER |
static String |
ERROR_INVALID_URL |
protected Exception |
exception |
protected GroupParser |
groupParser |
protected static org.apache.commons.logging.Log |
log |
static String |
MALFORMED_CAPABILITY_ERROR |
static String |
OK |
protected ArrayList<String> |
parseMessages |
static String |
SAVE_ERRORKEY |
static String |
SERVER_CONNECTION_ERROR |
static String |
SERVICE_STATUS_ERROR |
static String |
SERVICE_STATUS_OK |
static String |
UNSUPPORTED_WMSVERSION_ERROR |
static String |
UPLOADFILE_EXISTS_ERRORKEY |
static String |
UPLOADFILE_FORMAT_ERRORKEY |
static String |
UPLOADFILE_SIZE_ERRORKEY |
ABBR_RESERVED_ERROR_KEY, ADD, LAYER_JOINED_KEY, MALFORMED_CAPABILITY_ERRORKEY, MALFORMED_CREDENTIALS_ERRORKEY, MALFORMED_URL_ERRORKEY, NON_ALPHANUMERIC_ABBREVIATION_ERROR_KEY, NON_UNIQUE_ABBREVIATION_ERROR_KEY, ORG_JOINED_KEY, PRICING_JOINED_KEY, SERVER_CONNECTION_ERRORKEY, SERVICE_LINKED_ERROR_KEY, SP_NOTFOUND_ERROR_KEY, UNSUPPORTED_WMSVERSION_ERRORKEYACKNOWLEDGE_MESSAGES, UNKNOWN_SES_USER_ERROR_KEY| Constructor and Description |
|---|
WmsWfsParser() |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
abbrExists(String abbr,
javax.persistence.EntityManager em)
Checks if the abbr exists
|
abstract void |
addAllowedService(String url,
javax.persistence.EntityManager em)
Sets the service with the given url as allowed
|
abstract int |
batchUpdate(org.apache.struts.validator.DynaValidatorForm dynaForm) |
abstract int |
batchUpdate(org.apache.struts.validator.DynaValidatorForm dynaForm,
String prefix) |
protected nl.b3p.wms.capabilities.Layer |
checkLayer(nl.b3p.wms.capabilities.Layer orgLayer,
Set layers) |
protected String |
collectMetadata(String url,
nl.b3p.commons.services.B3PCredentials credentials)
Collects the meta data
|
abstract String |
delete(org.apache.struts.validator.DynaValidatorForm dynaForm,
javax.servlet.http.HttpServletRequest request)
Method for deleting a serviceprovider.
|
abstract void |
deleteAllAllowedServices(javax.persistence.EntityManager em)
Clears the allowed services list
|
abstract void |
deleteAllowedService(String url,
javax.persistence.EntityManager em)
Removes the service with the given url as allowed
|
abstract String |
deleteConfirm(org.apache.struts.validator.DynaValidatorForm dynaForm,
javax.servlet.http.HttpServletRequest request) |
Exception |
getException() |
protected Integer |
getInt(org.apache.struts.validator.DynaValidatorForm dynaForm,
String field) |
ArrayList<String> |
getMessages() |
abstract String |
saveProvider(javax.servlet.http.HttpServletRequest request,
org.apache.struts.validator.DynaValidatorForm dynaForm)
Method for saving a new service provider from input of a user.
|
protected void |
setMetadataFromLayerSource(nl.b3p.wms.capabilities.Layer layer,
nl.b3p.wms.capabilities.Layer oldLayer,
nl.b3p.commons.services.B3PCredentials credentials) |
abstract int |
test(org.apache.struts.validator.DynaValidatorForm dynaForm) |
protected String |
uploadFile(org.apache.struts.upload.FormFile thisFile,
Boolean overwrite,
String abbreviation) |
add, getActionMethodPropertiesMap, getID, isAbbrUnique, isAlphaNumeric, isWFSAbbrUnique, isWMSAbbrUnique, unspecifiedcreateTree, createTree, createTree, createWfsTree, createWfsTree, execute, getEntityManager, getLayerByUniqueName, getLayerID, getUnspecifiedAlternateForward, getWfsLayerByUniqueNamecancel, cancelled, confirm, create, createLists, delete, deleteConfirm, edit, getAction, getAltAction, getUnspecifiedDefaultForward, list, prepareMethod, save, saveConfirmaddAlternateMessage, addAlternateMessage, addDefaultMessage, addDefaultMessage, getActionMethodPropertiesClass, getAlternateForward, getDefaultForward, redispatch, redispatchFormFieldaddAttributeMessage, addAttributeMessage, addMessage, addMessage, addMessage, addMessage, addMessage, getMethodProperties, getParameterMethodMapgetDispatchedMethodName, getDispatchedParameter, getMethodPathIndex, parseParameter, setDispatchMethodcancelled, getMethod, unspecifieddispatchMethod, getMethodName, getParameteraddErrors, addMessages, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServletprotected static final org.apache.commons.logging.Log log
public static final String OK
public static final String SAVE_ERRORKEY
public static final String ERROR_DELETE_OLD_PROVIDER
protected Exception exception
public static final String ERROR_INVALID_URL
public static final String SERVICE_STATUS_ERROR
public static final String SERVICE_STATUS_OK
public static final String SERVER_CONNECTION_ERROR
public static final String MALFORMED_CAPABILITY_ERROR
public static final String UNSUPPORTED_WMSVERSION_ERROR
public static final String UPLOADFILE_SIZE_ERRORKEY
public static final String UPLOADFILE_FORMAT_ERRORKEY
public static final String UPLOADFILE_EXISTS_ERRORKEY
protected GroupParser groupParser
public abstract String saveProvider(javax.servlet.http.HttpServletRequest request, org.apache.struts.validator.DynaValidatorForm dynaForm) throws Exception
request - The HTTP Request we are processing.dynaForm - The DynaValidatorForm bean for this request.Exceptionpublic abstract int test(org.apache.struts.validator.DynaValidatorForm dynaForm)
throws Exception
Exceptionpublic abstract int batchUpdate(org.apache.struts.validator.DynaValidatorForm dynaForm)
throws Exception
Exceptionpublic abstract int batchUpdate(org.apache.struts.validator.DynaValidatorForm dynaForm,
String prefix)
throws Exception
Exceptionpublic abstract String deleteConfirm(org.apache.struts.validator.DynaValidatorForm dynaForm, javax.servlet.http.HttpServletRequest request) throws Exception
Exceptionpublic abstract String delete(org.apache.struts.validator.DynaValidatorForm dynaForm, javax.servlet.http.HttpServletRequest request) throws Exception
dynaForm - The DynaValidatorForm bean for this request.request - The HTTP Request we are processing.Exceptionprotected nl.b3p.wms.capabilities.Layer checkLayer(nl.b3p.wms.capabilities.Layer orgLayer,
Set layers)
protected String uploadFile(org.apache.struts.upload.FormFile thisFile, Boolean overwrite, String abbreviation) throws Exception
Exceptionprotected void setMetadataFromLayerSource(nl.b3p.wms.capabilities.Layer layer,
nl.b3p.wms.capabilities.Layer oldLayer,
nl.b3p.commons.services.B3PCredentials credentials)
protected String collectMetadata(String url, nl.b3p.commons.services.B3PCredentials credentials) throws IOException, Exception
url - The server URLcredentials - IOExceptionExceptionprotected Integer getInt(org.apache.struts.validator.DynaValidatorForm dynaForm, String field)
public Exception getException()
public abstract boolean abbrExists(String abbr, javax.persistence.EntityManager em)
abbr - The abbrem - The entity managerpublic abstract void addAllowedService(String url, javax.persistence.EntityManager em) throws Exception
url - The urlem - The entityManagerExceptionpublic abstract void deleteAllowedService(String url, javax.persistence.EntityManager em) throws Exception
url - The urlem - The entityManagerExceptionpublic abstract void deleteAllAllowedServices(javax.persistence.EntityManager em)
em - The entityManagerCopyright © 2016. All rights reserved.