Package com.smartfoxserver.v2.security
Class SFSPrivilegeManager
- java.lang.Object
-
- com.smartfoxserver.v2.security.SFSPrivilegeManager
-
- All Implemented Interfaces:
PrivilegeManager
public class SFSPrivilegeManager extends java.lang.Object implements PrivilegeManager
-
-
Constructor Summary
Constructors Constructor Description SFSPrivilegeManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsPermissionProfile(short profileId)
boolean
containsPermissionProfile(java.lang.String profileName)
void
dump()
SFSPermissionProfile
getPermissionProfile(short profileId)
SFSPermissionProfile
getPermissionProfile(java.lang.String profileName)
boolean
isActive()
boolean
isFlagSet(User user, SystemPermission permission)
boolean
isRequestAllowed(User user, SystemRequest request)
void
removePermissionProfile(short permId)
void
removePermissionProfile(java.lang.String profileName)
void
setActive(boolean active)
void
setPermissionProfile(SFSPermissionProfile profile)
-
-
-
Method Detail
-
isActive
public boolean isActive()
- Specified by:
isActive
in interfacePrivilegeManager
-
setActive
public void setActive(boolean active)
- Specified by:
setActive
in interfacePrivilegeManager
-
containsPermissionProfile
public boolean containsPermissionProfile(short profileId)
- Specified by:
containsPermissionProfile
in interfacePrivilegeManager
-
containsPermissionProfile
public boolean containsPermissionProfile(java.lang.String profileName)
- Specified by:
containsPermissionProfile
in interfacePrivilegeManager
-
getPermissionProfile
public SFSPermissionProfile getPermissionProfile(short profileId)
- Specified by:
getPermissionProfile
in interfacePrivilegeManager
-
getPermissionProfile
public SFSPermissionProfile getPermissionProfile(java.lang.String profileName)
- Specified by:
getPermissionProfile
in interfacePrivilegeManager
-
removePermissionProfile
public void removePermissionProfile(short permId)
- Specified by:
removePermissionProfile
in interfacePrivilegeManager
-
removePermissionProfile
public void removePermissionProfile(java.lang.String profileName)
- Specified by:
removePermissionProfile
in interfacePrivilegeManager
-
setPermissionProfile
public void setPermissionProfile(SFSPermissionProfile profile)
- Specified by:
setPermissionProfile
in interfacePrivilegeManager
-
isRequestAllowed
public boolean isRequestAllowed(User user, SystemRequest request)
- Specified by:
isRequestAllowed
in interfacePrivilegeManager
-
isFlagSet
public boolean isFlagSet(User user, SystemPermission permission)
- Specified by:
isFlagSet
in interfacePrivilegeManager
-
dump
public void dump()
-
-