Class ServerAppConfig

  • All Implemented Interfaces:
    EventListener, IGProp<GProp<?>[]>, IPropCnr, java.lang.Cloneable
    Direct Known Subclasses:

    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.
        atom - The name of the property.
    • Method Detail

      • getServerDirectory

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

        protected void onPropInvalidateCache()
        Cache invalidation required.
        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).
        The path, or null if not defined.
      • getDescription

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

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

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

        public GroupInfo[] getGroups​(boolean reload)
                              throws NotFoundException,
        Gets the groups for this app.
        reload - Flag to reload the group informations from the database.
        The groups for this app.
        NotFoundException - If a group is not found.
        java.sql.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<?>[]>
        verify in class PropCnr
        verification - The property verification class.
        true if verification should proceed, false if disposed of and verification should not take place.