Extending GeoFence REST interface

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Extending GeoFence REST interface

Nuno Oliveira-3
Hi,

When referring to GeoFence I'm referring to GeoServer geofence-server community
module.

GeoFence security rules are considered by their priority, so is very important
to users be able to manage rules priority. Right now in GeoServer rules
priorities can be managed by drag and drop or with up and down buttons.

The current GeoFence REST interface allow us to retrieve security rules with
some filters and to perform CRUD operations.

When building an external UI to manage GeoFence security rules I came to the
use case were I need an operation that will allow me to move rules between
several pages updating their priorities.

Use case, the user is visualizing security rules with pagination and he is
currently on page 2 and he wants to select some rules and move them to the
previous page updating those rules priority.

I would like to extend the current GeoFence REST interface:
http://docs.geoserver.org/latest/en/user/community/geofence-server/rest.html
with a resource that allow us to move one or more rules between several pages
updating their priority.

The resource will accept as parameters the same parameters as the current
resource used to retrieve rules, a list containing the ids of the rules that
need to be moved and the targeted page.

Moving a set of rules to another page means assigning to the moved rules
a lower priority than the first rule of the targeted page. If a filter is
active it will be taken in account to find the rule with the highest
priority of the targeted page.

Opinions on this ?

Regards,

Nuno Oliveira

--
==
GeoServer Professional Services from the experts!
Visit http://goo.gl/it488V for more information.
==
Nuno Miguel Carvalho Oliveira
@nmcoliveira
Software Engineer

GeoSolutions S.A.S.
Via di Montramito 3/A
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:   +39 0584 1660272
mob:   +39  333 8128928

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------

AVVERTENZE AI SENSI DEL D.Lgs. 196/2003
Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono
da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate
nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e
-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo
anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.
 
The information in this message and/or attachments, is intended solely for the attention and use of
the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree
June, 30 2003, no.196 - Italy's New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying,
distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender does not give any warranty or accept liability as the content,
accuracy or completeness of sent messages and accepts no responsibility  for changes made after they were sent or for other risks which
arise as a result of e-mail transmission, viruses, etc.


------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
Geoserver-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel
Reply | Threaded
Open this post in threaded view
|

Re: Extending GeoFence REST interface

Nuno Oliveira-3
Hi,

Instead of receiving the filter parameters and have to deal with paging, the REST
entry point will only receive two parameters: the list of rules that need to be
moved and a target priority.

The rules that need to be moved will be sorted by their priority (gaps can exist)
and we will assign the target priority to the first one, increment the target
priority and assign it to the next one and so on.

The existing rules will be shifted in order so we can accommodate the moved rules.

A pull request for this will follow.

Regards,

Nuno Oliveira

Le vendredi 15 juillet 2016 à 17:35 +0100, Nuno Oliveira a écrit :

> Hi,
>
> When referring to GeoFence I'm referring to GeoServer geofence-server community
> module.
>
> GeoFence security rules are considered by their priority, so is very important
> to users be able to manage rules priority. Right now in GeoServer rules
> priorities can be managed by drag and drop or with up and down buttons.
>
> The current GeoFence REST interface allow us to retrieve security rules with
> some filters and to perform CRUD operations.
>
> When building an external UI to manage GeoFence security rules I came to the
> use case were I need an operation that will allow me to move rules between
> several pages updating their priorities.
>
> Use case, the user is visualizing security rules with pagination and he is
> currently on page 2 and he wants to select some rules and move them to the
> previous page updating those rules priority.
>
> I would like to extend the current GeoFence REST interface:
> http://docs.geoserver.org/latest/en/user/community/geofence-server/rest.html
> with a resource that allow us to move one or more rules between several pages
> updating their priority.
>
> The resource will accept as parameters the same parameters as the current
> resource used to retrieve rules, a list containing the ids of the rules that
> need to be moved and the targeted page.
>
> Moving a set of rules to another page means assigning to the moved rules
> a lower priority than the first rule of the targeted page. If a filter is
> active it will be taken in account to find the rule with the highest
> priority of the targeted page.
>
> Opinions on this ?
>
> Regards,
>
> Nuno Oliveira
>
--
==
GeoServer Professional Services from the experts!
Visit http://goo.gl/it488V for more information.
==
Nuno Miguel Carvalho Oliveira
@nmcoliveira
Software Engineer

GeoSolutions S.A.S.
Via di Montramito 3/A
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:   +39 0584 1660272
mob:   +39  333 8128928

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------

AVVERTENZE AI SENSI DEL D.Lgs. 196/2003
Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono
da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate
nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e
-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo
anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.
 
The information in this message and/or attachments, is intended solely for the attention and use of
the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree
June, 30 2003, no.196 - Italy's New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying,
distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender does not give any warranty or accept liability as the content,
accuracy or completeness of sent messages and accepts no responsibility  for changes made after they were sent or for other risks which
arise as a result of e-mail transmission, viruses, etc.


------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
Geoserver-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel