Class ServerAppConfig

  • All Implemented Interfaces:
    EventListener, IGProp<GProp<?>[]>, IPropCnr, java.lang.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 Detail

      • FILENAME

        public static final java.lang.String FILENAME
        File name to application (Jar file name or directory path containing ".iiziModuleProject" file).
        See Also:
        Constant Field Values
      • GROUPS

        public static final java.lang.String GROUPS
        The groups of this app.
        See Also:
        Constant Field Values
    • Constructor Detail

      • 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 Detail

      • getServerDirectory

        public java.io.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<?>[]>
      • getFileName

        public java.lang.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 java.lang.String getDescription()
        Gets the description of the App configuration.
        Returns:
        The description, or null if not defined.
      • getGroupsString

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

        public java.lang.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,
                                     java.sql.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.
        java.sql.SQLException - For SQL errors.
      • verify

        public void 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.