package org.openur.module.service.security;



public interface IAuthorizationServices
{
  /**
   * checks if a person has a certain (app-based) permission within an organizational-unit.
   * Hint: Use this if work with permission-based, org-unit-related authorization.
   * 
   * @param personId
   * @param orgUnitId
   * @param permissionText
   * @param applicationName
   * 
   * @return the person has the permission within the given organizational-unit.
   */
  Boolean hasPermission(String personId, String orgUnitId, String permissionText, String applicationName);
  
  /**
   * checks if a person has a certain (app-based) permission.
   * Hint: use this if you work with permission-based, but NOT org-unit-related authorization.
   * 
   * @param personId
   * @param permissionText
   * @param applicationName
   * 
   * @return the person has the permission.
   */
  Boolean hasPermission(String personId, String permissionText, String applicationName);}

@@ -40,20 +40,16 @@
 ity;%0D%0A%0D%0A
-%0D%0A%0D%0A
 public i
@@ -84,25 +84,23 @@
 ces%0D%0A%7B%0D%0A
-  
+%09
 /**%0D%0A
-  
+%09
  * check
@@ -159,16 +159,21 @@
 ithin an
+%0D%0A%09 *
  organiz
@@ -185,22 +185,16 @@
 al-unit.
-%0D%0A   *
  Hint: U
@@ -231,16 +231,21 @@
 n-based,
+%0D%0A%09 *
  org-uni
@@ -266,33 +266,31 @@
 orization.%0D%0A
-  
+%09
  * %0D%0A
-  
+%09
  * @param pe
@@ -289,34 +289,33 @@
 param personId%0D%0A
-  
+%09
  * @param orgUni
@@ -315,26 +315,25 @@
  orgUnitId%0D%0A
-  
+%09
  * @param pe
@@ -338,34 +338,33 @@
 permissionText%0D%0A
-  
+%09
  * @param applic
@@ -370,33 +370,31 @@
 cationName%0D%0A
-  
+%09
  * %0D%0A
-  
+%09
  * @return t
@@ -461,25 +461,23 @@
 -unit.%0D%0A
-  
+%09
  */%0D%0A
-  
+%09
 Boolean 
@@ -578,21 +578,17 @@
 );%0D%0A
-  %0D%0A  
+%0D%0A%09
 /**%0D%0A
-  
+%09
  * c
@@ -642,22 +642,16 @@
 mission.
-%0D%0A   *
  Hint: u
@@ -660,16 +660,21 @@
  this if
+%0D%0A%09 *
  you wor
@@ -739,25 +739,23 @@
 ation.%0D%0A
-  
+%09
  * %0D%0A
-  
+%09
  * @para
@@ -766,18 +766,17 @@
 rsonId%0D%0A
-  
+%09
  * @para
@@ -793,18 +793,17 @@
 onText%0D%0A
-  
+%09
  * @para
@@ -825,17 +825,15 @@
 me%0D%0A
-  
+%09
  * %0D%0A
-  
+%09
  * @
@@ -875,17 +875,15 @@
 n.%0D%0A
-  
+%09
  */%0D%0A
-  
+%09
 Bool
@@ -964,11 +964,13 @@
 onName);
+%0D%0A
 %7D%0D%0A

format source-code.