Class ServerAppConfig

java.lang.Object
com.iizix.prop.GProp<GProp<?>[]>
com.iizix.prop.PropCnr
com.iizix.server.prop.ServerAppConfig
All Implemented Interfaces:
EventListener, IGProp<GProp<?>[]>, IPropCnr, Cloneable
Direct Known Subclasses:
EditorServerAppConfig

public class ServerAppConfig extends PropCnr
Property container for the configuration of an App of the iiziServer.

The property container parent is a ServerConfigEnvProps instance.

  • Field Details

  • Constructor Details

    • ServerAppConfig

      public ServerAppConfig()
      Creates the App configuration without a name. The name must be set in all cases using the setPropertyAtom call.
    • ServerAppConfig

      public ServerAppConfig(Atom atom)
      Creates the App configuration with a name.
      Parameters:
      atom - The name of the property.
  • Method Details

    • getServerDirectory

      public File getServerDirectory()
      Gets the base server directory (current directory for server).
      Returns:
      The directory of the server.
    • onPropInvalidateCache

      protected void onPropInvalidateCache()
      Cache invalidation required.
      Overrides:
      onPropInvalidateCache in class GProp<GProp<?>[]>
    • clone

      public ServerAppConfig clone()
      Clones the instance.
      Overrides:
      clone in class PropCnr
      Returns:
      The cloned instance.
    • getFileName

      public String getFileName()
      Gets the file name to application (Jar file name or directory path containing ".iiziModuleProject" file).
      Returns:
      The path, or null if not defined.
    • getDescription

      public String getDescription()
      Gets the description of the App configuration.
      Returns:
      The description, or null if not defined.
    • getGroupsString

      public String getGroupsString()
      Gets the app groups associated.
      Returns:
      The app groups separated by commas, null for none.
    • getGroupNames

      public String[] getGroupNames()
      Gets the group names array associated with this app.
      Returns:
      An array of unique group names.
    • getGroups

      public GroupInfo[] getGroups(boolean reload) throws NotFoundException, SQLException
      Gets the groups for this app.
      Parameters:
      reload - Flag to reload the group informations from the database.
      Returns:
      The groups for this app.
      Throws:
      NotFoundException - If a group is not found.
      SQLException - For SQL errors.
    • verify

      public boolean verify(PropVerification verification)
      Verifies this property container. The check performed is the extension of classes and that no circular reference is present.
      Specified by:
      verify in interface IGProp<GProp<?>[]>
      Overrides:
      verify in class PropCnr
      Parameters:
      verification - The property verification class.
      Returns:
      true if verification should proceed, false if disposed of and verification should not take place.