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, toStringcheckPermission, getServerConfig, getServerContext, getStatisticManagergetApplicationContext, getLogChannel, isLogDebug, isLogVerbose, logDebug, logDump, logError, logError, logFatal, logInfo, logVerbose, logWarning, setLogChannelconfigureDumpHeadlineLength, configureDumpMaxElementsPrinted, copyDumpStringValues, copyToStringValues, createDumpHeader, toDumpString, toDumpString, toStringpublic static final PermissionDefinition permissionDef
public AbstractGroupManager(S serverCtx)
public int getGroupCount()
getGroupCount in interface GroupManager<S extends ServerContext>public PermissionDefinition getPermissionDefinition()
PermissionControlledPermissionControlled object with a unique name
and provides a list of supported assignable permissions.getPermissionDefinition in interface PermissionControlledpublic void init()
throws java.lang.Exception
Initializableinit in interface Initializableinit in interface GroupManager<S extends ServerContext>java.lang.Exceptionpublic 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.Exceptionpublic void updateGroup(SessionId sessionId, Group group) throws java.lang.Exception
updateGroup in interface GroupManager<S extends ServerContext>java.lang.Exceptionpublic Group insertGroup(SessionId caller, Group group) throws java.lang.Exception
insertGroup in interface GroupManager<S extends ServerContext>java.lang.Exceptionpublic 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.Exceptionpublic 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.Exceptionprotected abstract void performUpdateGroup(SessionId callerSessId, Group group) throws java.lang.Exception
java.lang.Exceptionprotected abstract void performDeleteGroup(SessionId callerSessId, Group group) throws java.lang.Exception
java.lang.Exceptionprotected abstract void read(java.util.List<Group> groupList) throws java.lang.Exception
java.lang.ExceptionCopyright © 2014 EsprIT-Systems. All Rights Reserved.