You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Mathieu Lirzin (JIRA)" <ji...@apache.org> on 2019/05/10 15:01:00 UTC
[jira] [Updated] (OFBIZ-11019) Removing ‘hasPermission(String, HttpSession)’ from ‘Security’
[ https://issues.apache.org/jira/browse/OFBIZ-11019?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mathieu Lirzin updated OFBIZ-11019:
-----------------------------------
Description: The ‘hasPermission(String, HttpSession)’ method declaration from the ‘Security’ interface is breaking the minimality principle of interfaces because it is easily expressible in term of ‘hasPermission(String, GenericEntity)’. As a consequence a static helper method should be implemented to achieve same convenience without polluting the ‘Security’ interface. (was: The ‘hasPermission(String, HttpSession)’ method declaration from the
‘Security’ interface is breaking the minimality principle of interfaces
because it is easily expressible in term of ‘hasPermission(String,
GenericEntity)’. As a consequence a static helper method should be implemented to to achieve same convenience without polluting the ‘Security’ interface.)
> Removing ‘hasPermission(String, HttpSession)’ from ‘Security’
> -------------------------------------------------------------
>
> Key: OFBIZ-11019
> URL: https://issues.apache.org/jira/browse/OFBIZ-11019
> Project: OFBiz
> Issue Type: Improvement
> Components: framework
> Affects Versions: Trunk
> Reporter: Mathieu Lirzin
> Assignee: Mathieu Lirzin
> Priority: Minor
>
> The ‘hasPermission(String, HttpSession)’ method declaration from the ‘Security’ interface is breaking the minimality principle of interfaces because it is easily expressible in term of ‘hasPermission(String, GenericEntity)’. As a consequence a static helper method should be implemented to achieve same convenience without polluting the ‘Security’ interface.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)