public class MenuRestrictManager
extends java.lang.Object
Constructor and Description |
---|
MenuRestrictManager(java.sql.Connection con) |
Modifier and Type | Method and Description |
---|---|
void |
addGroupMenuRestriction(int gid,
java.lang.String menu,
boolean hide) |
void |
addUserMenuRestriction(int uid,
java.lang.String menu,
boolean hide) |
void |
deleteGroupMenuRestriction(int gid,
java.lang.String menu) |
void |
deleteUserMenuRestriction(int uid,
java.lang.String menu) |
RestrictionMap |
getMenuAccessListForUser(int userID) |
java.util.Map<java.lang.String,java.lang.Boolean> |
getMenuRestrictionsForGroup(int gid) |
java.util.Map<java.lang.String,java.lang.Boolean> |
getMenuRestrictionsForUser(int uid) |
public java.util.Map<java.lang.String,java.lang.Boolean> getMenuRestrictionsForUser(int uid)
public java.util.Map<java.lang.String,java.lang.Boolean> getMenuRestrictionsForGroup(int gid)
public void addGroupMenuRestriction(int gid, java.lang.String menu, boolean hide)
public void deleteGroupMenuRestriction(int gid, java.lang.String menu)
public void addUserMenuRestriction(int uid, java.lang.String menu, boolean hide)
public void deleteUserMenuRestriction(int uid, java.lang.String menu)
public RestrictionMap getMenuAccessListForUser(int userID)