메소드 | 설명 | |
---|---|---|
ExportPage ( Page page, bool isRecursive ) : |
Exports the page.
|
|
ImportPage ( byte uploadedPackage, string fileName, int pageId, int siteId ) : bool |
Imports the page.
|
|
PackageService ( ) : System |
Initializes a new instance of the PackageService class.
|
메소드 | 설명 | |
---|---|---|
AddToManifest ( |
Add the given directories files (matching the given file filter and search options) to the manifest.
|
|
CreatePackageDirectory ( string pageName, string packageId ) : |
Creates a unique directory for temporarily holding the page export package.
|
|
ExpandFiles ( IEnumerable |
Expands the files.
|
|
FindNewBlockTypes ( Page page, IEnumerable |
Iterates recursively through all BlockTypes associated with a Page and its children and compares them with the list of BlockTypes that are currently installed.
|
|
FindUniqueBlockTypesAndDirectories ( Page page, bool isRecursive, BlockType>.Dictionary |
Finds the unique block types and directories for the given page and adds them to the blockTypes and directories dictionaries.
|
|
GetJson ( Page page, bool isRecursive ) : string |
Gets the json for this page.
|
|
SavePages ( |
Recursively saves Pages and associated Blocks, PageRoutes and PageContexts.
|
|
ScrubIds ( IEntity entity ) : void | ||
ValidateImportData ( Page page, IEnumerable |
Validates the import data.
|
public ExportPage ( Page page, bool isRecursive ) : |
||
page | Page | The page. |
isRecursive | bool | if set to |
리턴 |
public ImportPage ( byte uploadedPackage, string fileName, int pageId, int siteId ) : bool | ||
uploadedPackage | byte | Byte array of the uploaded package |
fileName | string | File name of uploaded package |
pageId | int | The Id of the Page to save new data underneath |
siteId | int | The Id of the Site tha the Page is being imported into |
리턴 | bool |