Restricting Types of Edits
It is possible to disable a user's ability to create, update or delete entities.
This is done by setting <create>
, <update>
or <delete>
elements to false in the edit config.
For example, to create an edit configuration that only allows a user to create new entities, one would set the update and delete flags to false as follows.
(There is no need to add an XML element <create>true</create>
to the configuration.)
<?xml version="1.0" encoding="UTF-8"?>
<config xmlns="urn:com.cohga.server.config#1.0" xmlns:edit="urn:com.cohga.spatial.edit#1.0">
<edit:config id="create_only.edit">
<entity>graffiti</entity>
<label>Graffiti (create)</label>
<publish>true</publish>
<description>Edit Configuration only allowing creation</description>
<update>false</update>
<delete>false</delete>
</edit:config>
</config>
Once this edit configuration has been defined and saved, refresh the client to load it, then select Graffiti (create_only) in the Edit tab pulldown menu.
Note that the update and delete buttons will be grayed out and so inaccessible.
Create Only