public class MetadataAction extends DefaultAction
| Modifier and Type | Field and Description |
|---|---|
static String |
ADDRESS |
static String |
CITY |
static String |
CONTACTS |
static String |
COUNTRY |
static String |
EMAIL |
static String |
ISO2SIMPLE_HTML |
static String |
POSTCALCODE |
static String |
SESSION_KEY_METADATA_XML |
static String |
STATE |
static String |
URL |
protected static String |
VIEW_METADATA_JSP |
static String |
VOICE |
| Constructor and Description |
|---|
MetadataAction() |
| Modifier and Type | Method and Description |
|---|---|
void |
determineRoot() |
net.sourceforge.stripes.action.Resolution |
export()
execute updateElementsAndGetXml
stream xml
|
protected String |
extractMD_Metadata(org.jdom.Document doc) |
protected String |
extractMD_Metadata(File mdFile) |
protected String |
extractMD_Metadata(String md) |
protected org.jdom.Document |
extractMD_MetadataAsDoc(org.jdom.Document doc) |
protected org.jdom.Document |
extractMD_MetadataAsDoc(File mdFile) |
protected org.jdom.Document |
extractMD_MetadataAsDoc(String md) |
String |
getComment() |
String |
getElementChanges() |
String |
getExportType() |
net.sourceforge.stripes.action.FileBean |
getImportXml() |
String |
getMetadata() |
String |
getMode() |
Boolean |
getNewUuid() |
String |
getPath() |
String |
getSectionChange() |
String |
getSynchronizeData() |
String |
getUsername() |
Boolean |
getViewMode() |
net.sourceforge.stripes.action.Resolution |
importMD()
loads metadata from import form
preprocesses metadata to hold all elements
adds date and uuid when required to metadata
saves metadata on session
transforms metadata to html fragment
|
net.sourceforge.stripes.action.Resolution |
loadMdAsHtml()
loads metadata from source
preprocesses metadata to hold all elements
adds date and uuid when required to metadata
saves metadata on session
transforms metadata to html fragment
|
net.sourceforge.stripes.action.Resolution |
postComment()
load metadata from session
add comment
preprocesses metadata to hold all elements
saves metadata on session
transforms metadata to html fragment
|
net.sourceforge.stripes.action.Resolution |
resetXml()
removes metadata from session
creates new empty metadata
preprocesses metadata to hold all elements
adds date and uuid when required to metadata
saves metadata on session
transforms metadata to html fragment
|
void |
setComment(String comment) |
void |
setElementChanges(String elementChanges) |
void |
setExportType(String exportType) |
void |
setImportXml(net.sourceforge.stripes.action.FileBean importXml) |
void |
setMetadata(String metadata) |
void |
setMode(String mode) |
void |
setNewUuid(Boolean newUuid) |
void |
setPath(String path) |
void |
setSectionChange(String sectionChange) |
void |
setSynchronizeData(String synchronizeData) |
void |
setUsername(String username) |
void |
setViewMode(Boolean viewMode) |
net.sourceforge.stripes.action.Resolution |
synchronize()
load metadata from session
synchronise by filling elements based on info from datasource
save metadata on session
transforms metadata to html fragment
|
net.sourceforge.stripes.action.Resolution |
synchronizeLocal()
load metadata from session
synchronise by filling elements based on info from datasource
save metadata on session
transforms metadata to html fragment
|
net.sourceforge.stripes.action.Resolution |
updateAndSaveXml()
loads metadata from session
applies clientside element changes to metadata
synchronises between elements of metadata if configured
cleanup copy of metadata
save copy of metadata to source
|
net.sourceforge.stripes.action.Resolution |
updateElementsAndGetXml()
Past wijzigingen toe en geeft XML terug zodat lokaal kan worden
opgeslagen door local-access-servlet.
|
net.sourceforge.stripes.action.Resolution |
updateXml()
loads metadata from session
applies clientside element en section changes to metadata
preprocesses metadata to hold all elements
synchronises between elements of metadata if configured
saves metadata on session
transforms metadata to html fragment
|
net.sourceforge.stripes.action.Resolution |
view() |
getContext, setContextpublic static final String ADDRESS
public static final String CITY
public static final String STATE
public static final String POSTCALCODE
public static final String COUNTRY
public static final String URL
public static final String EMAIL
public static final String VOICE
public static final String CONTACTS
public static final String SESSION_KEY_METADATA_XML
public static final String ISO2SIMPLE_HTML
protected static final String VIEW_METADATA_JSP
public void determineRoot()
throws B3PCatalogException
B3PCatalogExceptionpublic net.sourceforge.stripes.action.Resolution view()
public net.sourceforge.stripes.action.Resolution loadMdAsHtml()
public net.sourceforge.stripes.action.Resolution resetXml()
throws Exception
Exceptionpublic net.sourceforge.stripes.action.Resolution updateXml()
throws Exception
Exceptionpublic net.sourceforge.stripes.action.Resolution updateElementsAndGetXml()
throws Exception
Exceptionpublic net.sourceforge.stripes.action.Resolution updateAndSaveXml()
throws Exception
Exceptionpublic net.sourceforge.stripes.action.Resolution synchronizeLocal()
throws Exception
Exceptionpublic net.sourceforge.stripes.action.Resolution synchronize()
Exceptionpublic net.sourceforge.stripes.action.Resolution importMD()
public net.sourceforge.stripes.action.Resolution export()
throws Exception
Exceptionpublic net.sourceforge.stripes.action.Resolution postComment()
throws Exception
Exceptionprotected org.jdom.Document extractMD_MetadataAsDoc(org.jdom.Document doc)
throws org.jdom.JDOMException,
IOException,
B3PCatalogException
org.jdom.JDOMExceptionIOExceptionB3PCatalogExceptionprotected String extractMD_Metadata(org.jdom.Document doc) throws org.jdom.JDOMException, IOException, B3PCatalogException
org.jdom.JDOMExceptionIOExceptionB3PCatalogExceptionprotected org.jdom.Document extractMD_MetadataAsDoc(String md) throws org.jdom.JDOMException, IOException, B3PCatalogException
org.jdom.JDOMExceptionIOExceptionB3PCatalogExceptionprotected String extractMD_Metadata(String md) throws org.jdom.JDOMException, IOException, B3PCatalogException
org.jdom.JDOMExceptionIOExceptionB3PCatalogExceptionprotected org.jdom.Document extractMD_MetadataAsDoc(File mdFile) throws org.jdom.JDOMException, IOException, B3PCatalogException
org.jdom.JDOMExceptionIOExceptionB3PCatalogExceptionprotected String extractMD_Metadata(File mdFile) throws org.jdom.JDOMException, IOException, B3PCatalogException
org.jdom.JDOMExceptionIOExceptionB3PCatalogExceptionpublic String getMode()
public void setMode(String mode)
public String getElementChanges()
public void setElementChanges(String elementChanges)
public String getSectionChange()
public void setSectionChange(String sectionChange)
public String getPath()
public void setPath(String path)
public String getMetadata()
public void setMetadata(String metadata)
public String getComment()
public void setComment(String comment)
public String getExportType()
public void setExportType(String exportType)
public net.sourceforge.stripes.action.FileBean getImportXml()
public void setImportXml(net.sourceforge.stripes.action.FileBean importXml)
public String getSynchronizeData()
public void setSynchronizeData(String synchronizeData)
public String getUsername()
public void setUsername(String username)
public Boolean getViewMode()
public void setViewMode(Boolean viewMode)
viewMode - the viewMode to setpublic Boolean getNewUuid()
public void setNewUuid(Boolean newUuid)
newUuid - the newUuid to setCopyright © 2016. All rights reserved.