Salome HOME
- Set ApplicationEJB to be a startup singleton
[modules/gde.git] / projects / GDE_App / GDE-ejb / src / java / com / edf / gde / common / PermissionManager.java
1 package com.edf.gde.common;
2
3 import javax.persistence.EntityManager;
4
5 /**
6  *
7  * @author Kavoos
8  */
9 public class PermissionManager {
10     /**
11      * MAP<K,V>
12      * K = Service name
13      * V = Set of group Id
14      */
15     
16     private EntityManager em;
17     public PermissionManager(EntityManager em) {
18         this.em = em;
19     }
20     
21     public synchronized void addGroup(long groupId, String serviceName, String methodName) {
22     }
23     
24     public synchronized boolean checkPermission(long userId, String serviceName, String methodeName) {
25         return false;
26     }
27     
28 }