@UrlBinding(value="/action/feature/edit")
@StrictBinding
public class EditFeatureActionBean
extends nl.b3p.i18n.LocalizableActionBean
implements nl.b3p.viewer.audit.Auditable
| Modifier and Type | Field and Description |
|---|---|
protected org.json.JSONObject |
jsonFeature |
protected Layer |
layer |
protected org.geotools.data.simple.SimpleFeatureStore |
store |
| Constructor and Description |
|---|
EditFeatureActionBean() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
addNewFeature() |
net.sourceforge.stripes.action.Resolution |
delete() |
protected void |
deleteFeature(String fid) |
static Locale |
determineLocaleForBundle(net.sourceforge.stripes.action.ActionBeanContext context,
Application application) |
net.sourceforge.stripes.action.Resolution |
edit() |
protected void |
editFeature(String fid) |
ApplicationLayer |
getAppLayer() |
Application |
getApplication() |
nl.b3p.viewer.audit.AuditMessageObject |
getAuditMessageObject() |
net.sourceforge.stripes.action.ActionBeanContext |
getContext() |
String |
getFeature() |
String |
getFID() |
org.json.JSONObject |
getJsonFeature() |
protected org.json.JSONObject |
getJsonFeature(String feature) |
Layer |
getLayer() |
org.geotools.data.simple.SimpleFeatureStore |
getStore() |
void |
initAudit() |
void |
initBundle() |
protected boolean |
isAttributeUserEditingDisabled(String attrName)
Check that if
disableUserEdit flag is set on the attribute. |
net.sourceforge.stripes.action.Resolution |
removeRelatedFeatures() |
net.sourceforge.stripes.action.Resolution |
saveRelatedFeatures() |
void |
setAppLayer(ApplicationLayer appLayer) |
void |
setApplication(Application application) |
void |
setContext(net.sourceforge.stripes.action.ActionBeanContext context) |
void |
setFeature(String feature) |
void |
setJsonFeature(org.json.JSONObject jsonFeature) |
protected Layer layer
protected org.geotools.data.simple.SimpleFeatureStore store
protected org.json.JSONObject jsonFeature
public net.sourceforge.stripes.action.ActionBeanContext getContext()
getContext in interface net.sourceforge.stripes.action.ActionBeanpublic void setContext(net.sourceforge.stripes.action.ActionBeanContext context)
setContext in interface net.sourceforge.stripes.action.ActionBeanpublic Application getApplication()
public void setApplication(Application application)
public String getFeature()
public void setFeature(String feature)
public ApplicationLayer getAppLayer()
public void setAppLayer(ApplicationLayer appLayer)
public org.geotools.data.simple.SimpleFeatureStore getStore()
public org.json.JSONObject getJsonFeature()
public void setJsonFeature(org.json.JSONObject jsonFeature)
public Layer getLayer()
public String getFID()
public nl.b3p.viewer.audit.AuditMessageObject getAuditMessageObject()
getAuditMessageObject in interface nl.b3p.viewer.audit.Auditable@Before(stages=EventHandling) public void initAudit()
@DefaultHandler
public net.sourceforge.stripes.action.Resolution edit()
throws org.json.JSONException
org.json.JSONExceptionpublic net.sourceforge.stripes.action.Resolution saveRelatedFeatures()
throws org.json.JSONException
org.json.JSONExceptionpublic net.sourceforge.stripes.action.Resolution delete()
throws org.json.JSONException
org.json.JSONExceptionprotected org.json.JSONObject getJsonFeature(String feature)
public net.sourceforge.stripes.action.Resolution removeRelatedFeatures()
throws org.json.JSONException,
Exception
org.json.JSONExceptionExceptionprotected void deleteFeature(String fid) throws IOException, Exception
IOExceptionExceptionprotected boolean isAttributeUserEditingDisabled(String attrName)
disableUserEdit flag is set on the attribute.attrName - attribute to checktrue when the configured attribute is flagged as
"readOnly"@After(stages=BindingAndValidation) public void initBundle()
initBundle in class nl.b3p.i18n.LocalizableActionBeanpublic static Locale determineLocaleForBundle(net.sourceforge.stripes.action.ActionBeanContext context, Application application)
Copyright © 2020. All rights reserved.