public abstract class AbstractGroupManager<S extends ServerContext> extends AbstractInitializableServerObject<S> implements GroupManager<S>
Modifier and Type | Field and Description |
---|---|
static PermissionDefinition |
permissionDef |
Constructor and Description |
---|
AbstractGroupManager(S serverCtx) |
Modifier and Type | Method and Description |
---|---|
void |
deleteGroup(SessionId sessionId,
Group group) |
boolean |
existsGroup(java.lang.String groupName) |
Group |
fetchGroupByName(java.lang.String groupName) |
Group |
findGroupByName(java.lang.String groupName) |
protected java.io.File |
getGroupConfigFile() |
int |
getGroupCount() |
protected java.util.List<Group> |
getGroupList() |
Group[] |
getGroups() |
PermissionDefinition |
getPermissionDefinition()
Returns an object that identifies a
PermissionControlled object with a unique name
and provides a list of supported assignable permissions. |
void |
init()
Performs the initialization of this class.
|
Group |
insertGroup(SessionId caller,
Group group) |
protected int |
nextGroupId() |
protected abstract void |
performDeleteGroup(SessionId callerSessId,
Group group) |
protected abstract Group |
performInsertGroup(SessionId callerSessId,
Group group,
java.util.List<Group> groupList) |
protected abstract void |
performUpdateGroup(SessionId callerSessId,
Group group) |
protected abstract void |
read(java.util.List<Group> groupList) |
void |
updateGroup(SessionId sessionId,
Group group) |
checkInitialized, isInitialized, setInitialized, toString
checkPermission, getServerConfig, getServerContext, getStatisticManager
getApplicationContext, getLogChannel, isLogDebug, isLogVerbose, logDebug, logDump, logError, logError, logFatal, logInfo, logVerbose, logWarning, setLogChannel
configureDumpHeadlineLength, configureDumpMaxElementsPrinted, copyDumpStringValues, copyToStringValues, createDumpHeader, toDumpString, toDumpString, toString
public static final PermissionDefinition permissionDef
public AbstractGroupManager(S serverCtx)
public int getGroupCount()
getGroupCount
in interface GroupManager<S extends ServerContext>
public PermissionDefinition getPermissionDefinition()
PermissionControlled
PermissionControlled
object with a unique name
and provides a list of supported assignable permissions.getPermissionDefinition
in interface PermissionControlled
public void init() throws java.lang.Exception
Initializable
init
in interface Initializable
init
in interface GroupManager<S extends ServerContext>
java.lang.Exception
public Group[] getGroups()
getGroups
in interface GroupManager<S extends ServerContext>
public void deleteGroup(SessionId sessionId, Group group) throws java.lang.Exception
deleteGroup
in interface GroupManager<S extends ServerContext>
java.lang.Exception
public void updateGroup(SessionId sessionId, Group group) throws java.lang.Exception
updateGroup
in interface GroupManager<S extends ServerContext>
java.lang.Exception
public Group insertGroup(SessionId caller, Group group) throws java.lang.Exception
insertGroup
in interface GroupManager<S extends ServerContext>
java.lang.Exception
public Group findGroupByName(java.lang.String groupName)
findGroupByName
in interface GroupManager<S extends ServerContext>
public Group fetchGroupByName(java.lang.String groupName) throws java.lang.Exception
fetchGroupByName
in interface GroupManager<S extends ServerContext>
java.lang.Exception
public boolean existsGroup(java.lang.String groupName)
protected java.io.File getGroupConfigFile()
protected java.util.List<Group> getGroupList()
protected int nextGroupId()
protected abstract Group performInsertGroup(SessionId callerSessId, Group group, java.util.List<Group> groupList) throws java.lang.Exception
java.lang.Exception
protected abstract void performUpdateGroup(SessionId callerSessId, Group group) throws java.lang.Exception
java.lang.Exception
protected abstract void performDeleteGroup(SessionId callerSessId, Group group) throws java.lang.Exception
java.lang.Exception
protected abstract void read(java.util.List<Group> groupList) throws java.lang.Exception
java.lang.Exception
Copyright © 2014 EsprIT-Systems. All Rights Reserved.