Interface IMobileApplicationPublicationStore
-
public interface IMobileApplicationPublicationStore
Stores and loads 1C:Enterprise mobile applications publications run configuration.Mobile application publications consist of:
- Mobile application content file with Configuration. Default file name is
1cema.xml
- Mobile application run configuration file with name
1cemarun.xml
- Folders structure with external components
IMobileApplicationPublicationStore
allows to create mobile publication run configurations store file with publication run and debug information and to load existing mobile publication run configurations.Note, that
IMobileApplicationPublicationStore
stores and loads run configuration only.
To store actual mobile application Configuration content clients may useIThickClientExecutor
. - Mobile application content file with Configuration. Default file name is
-
-
Field Summary
Fields Modifier and Type Field Description static String
RUN_CONFIGURATION_NAME
The default name, using by 1C:Enterprise runtime as mobile application publication run configuration file name.static String
STORE_DEFAULT_NAME
The default name, using by 1C:Enterprise runtime as mobile application publication store file name.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MobileApplicationPublication
loadRunConfiguration(MobileApplicationPublication publication)
Reads mobile application publication run configuration store file to the instance ofMobileApplicationPublication
.void
storeRunConfiguration(MobileApplicationPublication publication)
Creates and stores a mobile application publication run configuration file from theMobileApplicationPublication
instance.
-
-
-
Field Detail
-
STORE_DEFAULT_NAME
static final String STORE_DEFAULT_NAME
The default name, using by 1C:Enterprise runtime as mobile application publication store file name.Value is '
1cema.xml
'.- See Also:
- Constant Field Values
-
RUN_CONFIGURATION_NAME
static final String RUN_CONFIGURATION_NAME
The default name, using by 1C:Enterprise runtime as mobile application publication run configuration file name.
Contains:- Last change time stamp
- 1C:Enterprise debug server address
Value is '
1cemarun.xml
'.- See Also:
- Constant Field Values
-
-
Method Detail
-
storeRunConfiguration
void storeRunConfiguration(MobileApplicationPublication publication) throws WebServerAccessException
Creates and stores a mobile application publication run configuration file from theMobileApplicationPublication
instance.Mobile application publication run configuration instance contains last change time stamp and debug information. The run configuration will be serialized as configuration file in XML format.
- Parameters:
publication
- the mobile application publication to store run configuration for, cannot benull
- Throws:
WebServerAccessException
- if storing fails
-
loadRunConfiguration
MobileApplicationPublication loadRunConfiguration(MobileApplicationPublication publication) throws WebServerAccessException
Reads mobile application publication run configuration store file to the instance ofMobileApplicationPublication
.
If there is no run configuration file, then the object will be returned unchanged.- Parameters:
publication
- the publication instance to fill with loaded publication run configuration file, cannot benull
- Returns:
- updated
MobileApplicationPublication
instance filled with attributes from loaded publication configuration file, nevernull
- Throws:
WebServerAccessException
- if run configuration file parse errors occurred
-
-