Class ModuleProjectSettings
java.lang.Object
com.iizix.prop.ModuleProjectSettings
Class used to wrap the property container for Module Settings.
- Author:
- Christopher Mindus
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringStatic strings.static final StringStatic strings.static final StringStatic strings.static final StringStatic strings.static final StringStatic strings.static final StringStatic strings.static final StringStatic strings.static final StringStatic strings.static final StringStatic strings.Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of the Module Project Settings for a property container.Method Summary
Modifier and TypeMethodDescriptionGets the list of Project/Alias.getAppID()Gets the app ID.Gets the classpath entries for the module project.<PC extends PropCnr>
PCgetContainer(String name, Class<PC> clazz) Gets a container by name and class type.Gets the unmodifiable map of custom app properties, a map with keys and values.getCustomAppValue(String key) Gets a value for a key in the custom app properties.Gets the description of the application.Gets the main property container storage.Gets the ModuleApp instance.Gets the plug-ins required by the module.getSettings(String name) Gets or creates the settings container of the specified name.Gets the version of the AppbooleanFlag for settings being edited.booleanReturns if the application uses external login.booleanReturns if the application requires user authentication every time it's started.voidsetAliases(ArrayList<String[]> list) Sets a new list of Project/Aliases.booleansetClasspath(Collection<ClasspathEntry> classpath) Sets the classpath.voidsetEditing(boolean isEditing) Flag for settings being edited.voidsetUseAliases(boolean on) Sets if Aliases are used for Reference or Project names.booleanChecks if Aliases are used for Reference or Project names.
Field Details
ALIAS
ALIASES
PROJECT
CLASSPATH
USER_AUTH
EXT_LOGIN
CUSTOM_APP
APP_ID
VERSION
Constructor Details
ModuleProjectSettings
Creates an instance of the Module Project Settings for a property container.
Method Details
setEditing
public void setEditing(boolean isEditing) Flag for settings being edited.isEditing
public boolean isEditing()Flag for settings being edited.getMainPropCnr
Gets the main property container storage.getModuleApp
Gets the ModuleApp instance.getDescription
Gets the description of the application.- Returns:
- The application description, or null if not defined.
useAliases
public boolean useAliases()Checks if Aliases are used for Reference or Project names.setUseAliases
public void setUseAliases(boolean on) Sets if Aliases are used for Reference or Project names.getAliases
setAliases
getSettings
Gets or creates the settings container of the specified name.- Throws:
PropException- If the settings couldn't be created.
getPlugins
Gets the plug-ins required by the module.- Returns:
- A comma separated string, or null for none.
getContainer
isUserAuthenticationAlwaysRequired
public boolean isUserAuthenticationAlwaysRequired()Returns if the application requires user authentication every time it's started.- Returns:
- true for user authentication always required, by password or fingerprint.
isExternalLoginUsed
public boolean isExternalLoginUsed()Returns if the application uses external login. When "true", the iiziRun user is not used and a new session is always started until the login has completed.- Returns:
- true if external login is used, e.g. using LinkedIn, false for internal user authentication.
getCustomAppValue
getCustomAppMap
getAppID
getVersion
Gets the version of the App- Returns:
- The version in lower case, defaults to "0" for none.
setClasspath
Sets the classpath.- Parameters:
classpath- The classpath.- Returns:
- true for changes, false for no changes.
getClasspathEntries
Gets the classpath entries for the module project.- Returns:
- The classpath entries array to use for the module project.