Class ServerAppDistributionProps
java.lang.Object
com.iizix.prop.GProp<GProp<?>[]>
com.iizix.prop.PropCnr
com.iizix.server.app.prop.ServerAppDistributionProps
- All Implemented Interfaces:
EventListener, IGProp<GProp<?>[]>, IPropCnr, IServerAppDistributionProps, Cloneable
- Direct Known Subclasses:
AppDistributionProps
Editor version of the container that holds the required settings for the server to operate and initialize itself with.
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name of the property for the App Store URL: "appStoreURL".static final AtomThe atom for the App Distribution properties container: "$dist".static final StringThe name of the property for Jar destination.static final StringThe name of the property for the Developer ID.static final StringThe Application distribution file name located under the Module root: ".iiziApp", when outside the Jar file.static final StringThe name of the property for the Google Play URL: "googlePlayURL".static final StringThe name of the property for the Developer Group ID.static final StringThe name of the property for Include App source.static final StringThe name of the property for Include externals.static final StringThe name of the property for Jar compression.static final StringThe name of the property for Jar obfuscation.static final StringThe name of the property for Jar seal.static final StringThe name of the property for Jar signing.static final StringThe name of the property for Google Maps key.static final StringThe name of the property for Other Modules.protected FileProject directory, null if not set.static final StringThe name of the property for Register app.static final StringThe name of the property for the Registered App ID.Fields inherited from class PropCnr
EMPTY, EMPTY_CLASSES, EMPTY_CNRS, EXTENDS_FRAMEWORK_ERROR_IDFields inherited from class GProp
GPDEBUG, PROP_ATTR_STRING_EDITOR_PROP, PROP_ATTR_STRING_ERRORED_NAME, PROP_ATTR_STRING_EXTENDS, PROP_ATTR_STRING_EXTENDS_FINAL, PROP_ATTR_STRING_EXTENDS_PRIVATE, PROP_ATTR_STRING_NULLABLE, PROP_ATTR_STRING_PRIVATE, PROP_ATTR_STRING_PRIVATE_CHANGE_EVENT, PROP_ATTR_STRING_READ_ONLY, PROP_ATTR_STRING_SECRET, PROP_USER_1, PROP_USER_2Fields inherited from interface IGProp
EQC_ERROR_IGNORE_ALL, EQC_ERROR_IGNORE_REFERENCES, EQC_IGNORE_ARRAY, EQC_IGNORE_VOLATILE_OR_EDITOR, EQC_INCLUDE_PRIVATE, EQC_SAVE_FILE, EQC_SAVE_RELEVANT_ONLY, EXT_CONTAINER_EXTENDS, EXT_CONTAINER_EXTENDS_VALID, EXT_EXTENDED, EXT_FINAL, EXT_OVERRIDES, EXT_OVERRIDES_FINAL_ERR, EXT_PRIVATEConstructor Summary
ConstructorsConstructorDescriptionCreates the screen identification property container without a name.ServerAppDistributionProps(Atom propertyAtom) Creates the screen identification property container with the specified name.Method Summary
Modifier and TypeMethodDescriptionclone()Clone must be overridden.booleanFlag to include external the App's source.booleanFlag to include external directories and libraries.booleanFlag to compress the Jar file.booleanFlag to obfuscate the Jar file's Java source code.booleanFlag to seal the Jar file.booleanFlag to sign the Jar file.booleanGets the flag if the app should be registered with the license system.getAppID()Gets the Registered App ID.Gets the URL of the app's page in the Apple App Store, offered to a Browser that cannot run the app (CC-BROWSER-GATE).Gets the description.Gets the destination Jar file name.Gets the Developer ID of the app.Gets the URL of the app's page in Google Play, offered to a Browser that cannot run the app (CC-BROWSER-GATE).Gets the Developer Group ID of the app.Gets the key to use for Browser use of Google Maps: the key the server's configuration sets for this application alone (setServerKeyGoogleMaps(String)), else the key of the distribution (CC-FIX-MAPS-KEY-SERVER).getName()Gets the app name.String[]Gets the Modules that should be included in the application, apart of the module this property belongs to.Gets the project directory.voidsetDescription(String descr) Sets the description.voidsetDestinationJar(String destJar) Sets the destination Jar file.voidsetIncludeAppSource(boolean doInclude) Sets the flag to include the App's source.voidsetIncludeExternals(boolean doInclude) Sets the flag to include external directories and libraries.voidsetJarCompression(boolean on) Sets the flag to compress the Jar file.voidsetJarObfuscation(boolean on) Sets the flag to obfuscate the Jar file's Java source code.voidsetJarSeal(boolean on) Sets the flag to seal the Jar file.voidsetJarSign(boolean on) Sets the flag to sign the Jar file.voidsetLoadedFile(File file) Sets the .iiziApp file that loaded this property.voidSets the app name.voidsetOtherModules(String[] otherModules) Sets the Modules that should be included in the application, apart of the module this property belongs to.voidSets the Google Maps key the server's configuration holds for this application alone (the key of the application's definition in its environment,ServerAppConfig.getKeyGoogleMaps()), whichgetKeyGoogleMaps()then answers in front of the distribution's own key (CC-FIX-MAPS-KEY-SERVER).Methods inherited from class PropCnr
__transferChildProps, addPredefinedProps, addProp, addProp, addProp2, addProp2, appendPropValue, canRequestFocus, completeVirtualize, containsProp, containsProp, convertLoadedProp, couldRequestFocusIfVirtualized, createCopyOfAtom, createUniqueAtom, createUniqueAtom, createUniqueAtom, createVSReference, doPropEqualsArrayValues, enablePropCommunication, enablePropHashMap, equalsTree, equalsTree, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getBool, getBool, getBool, getBool, getChildPropError, getChildPropError, getChildPropErrorSeverity, getChildPropErrorSeverity, getErrorsProp, getExtendsContainer, getExtendsError, getExtendsName, getExtendsOverride, getExtendsPossibleClasses, getFirstProp, getFirstProp, getFocusEngine, getInt, getInt, getInt, getInt, getLong, getLong, getLong, getLong, getNumber, getNumber, getNumber, getNumber, getPossibleChildren, getPredefinedProps, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getPropBaseReference, getPropCnr, getPropCount, getPropCount, getPropIndex, getPropIndex, getPropIndexes, getProps, getProps, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue0, getRetargetedVerifyContainer, getString, getString, getString, getString, getValueClasses, getVSReference, hasFocus, hasSendData, initializeElement, initializeExtendsFramework, initializeProp, initializePropTree, initializeValue, initPropCnr, insertProp, insertProp2, isChild, isExtendsOverriden, isExtendsPropertyValid, isExtendsRoot, isPropAddRemoveAllowed, isPropCommunicating, isPropExtended, isPropValueTreeLockNeeded, list, list, logPropNotFound, maybeAddProp, onInsertProp, onPropDispose, onPropRemoved, onPropTreeInitialized, onReferenceEvent, onVirtualContainerCreated, onVirtualizationCompleted, paramString, prepare, removeAllProps, removeAllProps2, removeProp, removeProp, removeProp, removeProp, removeProp, removeProp, removeProp, removeProp2, removeProp2, removeProp2, removeProp2, removeProp2, removeProp2, removeProp2, reorderProps, replaceProps, requestFocus, requestFocus, requestFocusEx, requestFocusEx, resolveReferences, resolveRuntimeReferences, setBool, setBool, setBool, setBool, setCreateRequiredProp, setExtendsName, setExtendsOverride, setInt, setInt, setInt, setLong, setLong, setLong, setLong, setNumber, setNumber, setNumber, setNumber, setProp, setProp, setProp, setProp2, setProp2, setPropValue, setPropValue, setPropValue, setPropValue, setPropValue, setPropValue, setString, setString, setString, setString, shouldCreateProps, shouldSerializeToXML, toElementString, toNativeValue0, usePropHashMap, usesPropIndex, validateChildPropInValue, validateClassInstances, validatePropType, validatePropValue, verify, verifyInternalUseOnly, verifyTree, virtualizeMethods inherited from class GProp
addPropError, addPropListener, appendProp, convertPropError, dispose, equals, equals, equalsErrors, equalsObj, equalsPropValue, equalValues, finalize, fine, fine, finer, finer, finest, finest, fromElementString, getAliasName, getAppSessionGyro, getAppWorker, getAtomPath, getAttribute, getChildReferencePropName, getClientSessionGyro, getClientWorker, getConstraints, getEnvironment, getErroredPropItems, getErroredProps, getErrorsProp, getExtendsRootContainer, getFullPropName, getFullPropName, getFullPropNameDebug, getFullPropNameDebug, getListeners, getModuleFolder, getModuleFolder, getParent, getParent, getProjectName, getPropAtom, getPropError, getPropError, getPropErroredName, getPropErrorSeverity, getPropExtendsFlags, getPropFromPath, getPropFromPath, getPropFromReference, getPropFromReference, getPropIndex, getPropName, getPropPath, getPropPath, getPropReferenceTarget, getPropRootPropMgr, getPropTreeErrorSeverity, getPropValue, getPropValue, getPropValueObject, getReferencePropName, getReferencePropNameNoAssert, getRelativePropName, getRootFromName, getRootName, getRootParent, getRootParentNoAssert, getTreeLock, hasChanged, hasCircularReferencesError, hashCode, hasPrivateChangeEventProp, hasPropError, hasPropTreeError, info, info, initializeGElement, initializeGProp, isDisposed, isPropChildOf, isPropClientCreated, isPropCreateRequired, isPropErrorPersisted, isPropExtended, isPropExtendsFinal, isPropExtendsPrivate, isPropExtendsPrivateInRoot, isPropExtendsPrivateInRoot, isPropFile, isPropFolder, isPropForEditor, isPropForEditorAtCreation, isPropNullable, isPropPrivate, isPropPrivateAtCreation, isPropReadOnly, isPropReferenceTreeValid, isPropRoot, isPropRootLoading, isPropRootTreeModificationsAllowed, isPropSaveRelevant, isPropSecret, isPropSecretCapable, isPropUSER, isPropVirtualized, isPropVirtualizing, isPropVolatile, isPropVolatileOrEditorOnly, isProxied, isSibling, list, list, list, mapAliasToReference, mapAliasToReference, mapReferenceToAlias, mapReferenceToAlias, mapReferenceToProjectRelative, modifyPropValue, moveProp, moveProp, moveProp, onEvent, onEventSelf, onInitialize, onPrepare, onPropInvalidateCache, onPropParentChanged, onPropValueSet, onRemoteEvent, paramString, paramValue, post, post, removePropError, removePropListener, removePropUSER, renameProp, renameProp2, resetChangedTree, setChanged, setConstraints, setConstraints, setParent, setPrivateChangeEventProp, setPrivateCreateRequiredProp, setPropError, setPropErroredName, setPropExtended, setPropExtendsFinal, setPropExtendsPrivate, setPropForEditor, setPropNullable, setPropPrivate, setPropReadOnly, setPropSecret, setPropUSER, setPropValue, setPropValue, setPropValue, setPropValueIncognito, setPropVolatile, severe, severe, severe, shouldSerializeToXML, throwIfReadOnly, toNativeValue, toShortString, toShortString, toString, toString, triggerRemoteEvent, triggerRemoteEvent, validateProp, warning, warning, warningMethods inherited from interface IGProp
addPropError, addPropListener, dispose, equals, fine, fine, finer, finer, finest, finest, fromElementString, getAppSessionGyro, getAtomPath, getClientSessionGyro, getConstraints, getEnvironment, getErroredPropItems, getErroredProps, getErrorsProp, getExtendsRootContainer, getFullPropName, getFullPropNameDebug, getModuleFolder, getModuleFolder, getParent, getParent, getPropAtom, getPropError, getPropError, getPropErrorSeverity, getPropExtendsFlags, getPropFromPath, getPropFromReference, getPropIndex, getPropName, getPropPath, getPropPath, getPropRootPropMgr, getPropTreeErrorSeverity, getPropValue, getPropValue, getReferencePropName, getRelativePropName, getRootParent, getTreeLock, hasChanged, hasCircularReferencesError, hasPrivateChangeEventProp, hasPropError, hasPropTreeError, info, info, initializeGElement, initializeGProp, isDisposed, isPropChildOf, isPropClientCreated, isPropCreateRequired, isPropExtended, isPropExtendsFinal, isPropExtendsPrivate, isPropExtendsPrivateInRoot, isPropExtendsPrivateInRoot, isPropFile, isPropFolder, isPropNullable, isPropPrivate, isPropReadOnly, isPropReferenceTreeValid, isPropRoot, isPropVirtualized, isSibling, list, list, list, mapAliasToReference, mapReferenceToAlias, mapReferenceToProjectRelative, moveProp, moveProp, moveProp, onEvent, onEventSelf, onRemoteEvent, removePropError, removePropListener, renameProp, setChanged, setConstraints, setConstraints, setParent, setPrivateChangeEventProp, setPropError, setPropExtendsFinal, setPropExtendsPrivate, setPropNullable, setPropPrivate, setPropReadOnly, setPropValue, setPropValue, severe, severe, severe, toNativeValue, triggerRemoteEvent, triggerRemoteEvent, validateProp, warning, warning, warningMethods inherited from interface IPropCnr
canRequestFocus, canRequestFocus, couldRequestFocusIfVirtualized, couldRequestFocusIfVirtualized
Field Details
FILE_NAME
The Application distribution file name located under the Module root: ".iiziApp", when outside the Jar file.- See Also:
ATOM
The atom for the App Distribution properties container: "$dist".DESTINATION_JAR
OTHER_MODULES
INCLUDE_EXTERNALS
The name of the property for Include externals.- See Also:
JAR_SIGN
JAR_SEAL
JAR_COMPRESSION
JAR_OBFUSCATION
INCLUDE_APP_SOURCE
The name of the property for Include App source.- See Also:
GROUP_ID
DEVELOPER_ID
REGISTER_APP
REGISTERED_APP_ID
The name of the property for the Registered App ID.- See Also:
KEY_GOOGLE_MAPS
APP_STORE_URL
The name of the property for the App Store URL: "appStoreURL".- See Also:
GOOGLE_PLAY_URL
The name of the property for the Google Play URL: "googlePlayURL".- See Also:
projectDir
Project directory, null if not set.
Constructor Details
ServerAppDistributionProps
public ServerAppDistributionProps()Creates the screen identification property container without a name. The name must be set in all cases using thesetPropertyAtomcall.ServerAppDistributionProps
Creates the screen identification property container with the specified name. All system-reserved names for components begins with "$".- Parameters:
propertyAtom- the name of the component, unique within it's parent.
Method Details
setLoadedFile
Sets the .iiziApp file that loaded this property.- Parameters:
file- The file that loaded this property.
getProjectDir
clone
setName
getName
Gets the app name.- Returns:
- The app name, never null but could be empty string (illegal name).
setDescription
Sets the description.- Parameters:
descr- The description, or null to undefine it.
getDescription
setDestinationJar
Sets the destination Jar file.- Parameters:
destJar- The file name.
getDestinationJar
Gets the destination Jar file name.- Returns:
- The file name, or null if not defined.
doJarSign
public boolean doJarSign()Flag to sign the Jar file.- Returns:
- true by default, false if configured otherwise.
setJarSign
public void setJarSign(boolean on) Sets the flag to sign the Jar file.- Parameters:
on- The flag.
doJarSeal
public boolean doJarSeal()Flag to seal the Jar file.- Returns:
- true by default, false if configured otherwise.
setJarSeal
public void setJarSeal(boolean on) Sets the flag to seal the Jar file.- Parameters:
on- The flag.
doJarCompression
public boolean doJarCompression()Flag to compress the Jar file.- Returns:
- true by default, false if configured otherwise.
setJarCompression
public void setJarCompression(boolean on) Sets the flag to compress the Jar file.- Parameters:
on- The flag.
doJarObfuscation
public boolean doJarObfuscation()Flag to obfuscate the Jar file's Java source code.- Returns:
- false by default, true if configured otherwise.
setJarObfuscation
public void setJarObfuscation(boolean on) Sets the flag to obfuscate the Jar file's Java source code.- Parameters:
on- The flag.
doIncludeExternals
public boolean doIncludeExternals()Flag to include external directories and libraries.- Returns:
- true by default, false if configured otherwise.
setIncludeExternals
public void setIncludeExternals(boolean doInclude) Sets the flag to include external directories and libraries.- Parameters:
doInclude- The flag.
doIncludeAppSource
public boolean doIncludeAppSource()Flag to include external the App's source.This can be used e.g. for backup purposes.
- Returns:
- false by default, true if configured otherwise.
setIncludeAppSource
public void setIncludeAppSource(boolean doInclude) Sets the flag to include the App's source.This can be used e.g. for backup purposes.
- Parameters:
doInclude- The flag.
setOtherModules
Sets the Modules that should be included in the application, apart of the module this property belongs to.- Parameters:
otherModules- The other Module names that should make up the application.
getOtherModules
Gets the Modules that should be included in the application, apart of the module this property belongs to.- Returns:
- The other Module names that should make up the application.
getGroupID
Gets the Developer Group ID of the app.- Returns:
- The developer Group ID, never null, but empty string for none.
getDeveloperID
Gets the Developer ID of the app.- Returns:
- The developer ID, never null, but empty string for none.
doRegisterApp
public boolean doRegisterApp()Gets the flag if the app should be registered with the license system.- Returns:
- true for registration required, false otherwise.
getAppID
Gets the Registered App ID. This ID is filled in automatically when registering a new app.- Returns:
- The Registered App ID, never null, but empty string for none.
getKeyGoogleMaps
Gets the key to use for Browser use of Google Maps: the key the server's configuration sets for this application alone (setServerKeyGoogleMaps(String)), else the key of the distribution (CC-FIX-MAPS-KEY-SERVER). If neither is defined, the server environment's key will be used, if any. If none is found, a Browser client shows "Google Maps key not configured" in the map.- Specified by:
getKeyGoogleMapsin interfaceIServerAppDistributionProps- Returns:
- The key for Google Maps, or
nullfor none.
setServerKeyGoogleMaps
Sets the Google Maps key the server's configuration holds for this application alone (the key of the application's definition in its environment,ServerAppConfig.getKeyGoogleMaps()), whichgetKeyGoogleMaps()then answers in front of the distribution's own key (CC-FIX-MAPS-KEY-SERVER). Called by the server when the application is loaded; never saved with the distribution.- Parameters:
key- The key, null or empty for none.
getAppStoreURL
Gets the URL of the app's page in the Apple App Store, offered to a Browser that cannot run the app (CC-BROWSER-GATE). Optional: an app that is not in the store has none.- Specified by:
getAppStoreURLin interfaceIServerAppDistributionProps- Returns:
- The URL as typed, or
nullfor none. The server validates it ashttps:before writing it into the page.
getGooglePlayURL
Gets the URL of the app's page in Google Play, offered to a Browser that cannot run the app (CC-BROWSER-GATE). Optional: an app that is not in the store has none.- Specified by:
getGooglePlayURLin interfaceIServerAppDistributionProps- Returns:
- The URL as typed, or
nullfor none. The server validates it ashttps:before writing it into the page.