de.esprit.netsuite.server.permission

## Class DefaultPermissionConfig

- java.lang.Object
- - de.esprit.common.util.DumpableObject
  - - de.esprit.netsuite.server.permission.AbstractPermissionConfig
    - - de.esprit.netsuite.server.permission.DefaultPermissionConfig

- All Implemented Interfaces:
    Clearable, Dumpable, PermissionConfig, java.io.Serializable

      public class DefaultPermissionConfig
      extends AbstractPermissionConfig

  This class encapsulates the configuration of user and group access permissions stored in the server config file `ServerConfigFile.PERMISSION`. User and group permissions are defined in different lists whereas group permissions are only checked if a requested user permission was not found. Note that group permissions only take effect, if a `GroupMembershipResolver` instance was installed using `AbstractPermissionConfig.setGroupMemberResolver(GroupMembershipResolver)`.
  Author:
    Rainer Buesch
  See Also:
    Serialized Form

- - ### Field Summary

    - ### Fields inherited from class de.esprit.netsuite.server.permission.AbstractPermissionConfig

      `accessibleObjectKey, groupNameKey, groupPermissionsTable, permissionConfigType, permissionKey, userNameKey, userPermissionsTable`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `DefaultPermissionConfig()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.lang.String` | `getConfigFileName()`
    `void` | `read(ServerContext serverCtx)`
    `DumpString` | `toDumpString(DumpString s)` This method allows subclasses to add values to the existing DumpString of the superclass.
    `ToString` | `toString(ToString s)` This method allows subclasses to add values to the existing ToString of the superclass.
    `void` | `write(ServerContext serverCtx)`

    - ### Methods inherited from class de.esprit.netsuite.server.permission.AbstractPermissionConfig

      `addGroupPermission, addUserPermission, checkUserPermission, clear, clearGroupPermissions, clearUserPermissions, findGroupPermissionsFor, findGroupPermissionsFor, findUserPermissionsFor, findUserPermissionsFor, getGroupPermissions, getUserPermissions, hasGroupPermission, hasGroupPermission, hasUserPermission, hasUserPermission, read, removeGroupPermissionsFor, removeGroupPermissionsFor, removeUserPermissionsFor, removeUserPermissionsFor, setGroupMemberResolver, setGroupPermissions, setUserPermissions, write`

    - ### Methods inherited from class de.esprit.common.util.DumpableObject

      `configureDumpHeadlineLength, configureDumpMaxElementsPrinted, copyDumpStringValues, copyToStringValues, createDumpHeader, toDumpString, toString`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

    - ### Methods inherited from interface de.esprit.common.type.Dumpable

      `toDumpString, toString`

- - ### Constructor Detail

    - #### DefaultPermissionConfig

          public DefaultPermissionConfig()

  - ### Method Detail

    - #### getConfigFileName

          public java.lang.String getConfigFileName()

    - #### read

          public final void read(ServerContext serverCtx)
                          throws java.lang.Exception

      Throws:
        `java.lang.Exception`

    - #### write

          public final void write(ServerContext serverCtx)
                           throws java.lang.Exception

      Throws:
        `java.lang.Exception`

    - #### toString

          public final ToString toString(ToString s)

      Description copied from interface: `Dumpable`
      This method allows subclasses to add values to the existing ToString of the superclass. Usually subclasses only need to override this method.
      Specified by:
        `toString` in interface `Dumpable`
      Overrides:
        `toString` in class `AbstractPermissionConfig`

    - #### toDumpString

          public final DumpString toDumpString(DumpString s)

      Description copied from interface: `Dumpable`
      This method allows subclasses to add values to the existing DumpString of the superclass. Usually subclasses only need to override this method.
      Specified by:
        `toDumpString` in interface `Dumpable`
      Overrides:
        `toDumpString` in class `AbstractPermissionConfig`

Copyright © 2014 EsprIT-Systems. All Rights Reserved.