|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Objectservices.PageService
class PageService
Tasks related to page requests.
Property Summary | |
---|---|
static Map |
conf
Config |
def |
dependenciesService
Tasks related to Dependencies. |
static def |
expose
Information needed for the GWT application to use this service. |
def |
messageSource
get the spring message resource bundle |
static ConfigurableMimeFileTypeMap |
mimeMapper
Spring MIME types mapper. |
SandboxManager |
sandboxManager
SandboxManager bean (autowired by Spring). |
def |
yamService
Tasks related to YAM files. |
Constructor Summary | |
PageService()
|
Method Summary | |
---|---|
boolean
|
allowRawHtml(Map thisPage)
Checks whether this page is allowed to be served as raw html |
Map
|
analyse(Map params)
Analyse the request and return a map modelling this type of page. |
void
|
cancelEdit(Map flow)
Cancel an edit by deleting the staging files. |
String
|
checkName(String pageName, String id, String pathDir)
Check the name of a page before to create it. |
String
|
create(String pageName, String id, String pathDir)
Create a yam/html page or a directory. |
boolean
|
createDirectory(Map thisPage, Sandbox sandbox)
Create a new directory. |
boolean
|
createYamPage(Map thisPage, Sandbox sandbox, String seed)
Create a new YAM page. |
String
|
fckEscapesFix(String body)
FCKEditor strips cow-escape spans containing a single slash. |
void
|
fromStaging(Map flow)
Write or commit a successful edit from the staging area back to the origin. |
List
|
getDirList(File pageFile, Wiki wiki)
Get a directory listing. |
File
|
getIndexPage(File pageFile)
Get the index.html/index.htm if it exists. |
Map
|
getNavigationModel(File pageFileDir, Wiki pageWiki)
Get the navigation model for a page. |
Map
|
getNavigationModel(File pageFileDir, Wiki pageWiki, List navFiles)
Get the navigation model for a page relative to config. |
void
|
overwrite(YamFile yamFile, String text, boolean isYam)
Overwrite a YAM file from some text which may be YAM or HTML. |
void
|
overwrite(Map flow, File editFile, String text)
Overwrite a file from some text which may be TXT or HTML. |
void
|
prepareEdit(Map flow)
Prepare an edit. |
void
|
previewEdit(Map flow)
Set up preview of an edit. |
void
|
refreshEdit(Map flow)
Refresh an edit. |
void
|
saveEdit(Map flow)
Save an edit. |
YamFile
|
toStaging(Map flow, boolean regenerate)
Copy or checkout a YAM file to the staging area. |
File
|
toStaging(Map flow)
Copy or checkout a file to the staging area. |
File
|
toStaging(Map flow, String pagePath, File pageFile)
Copy or checkout a file to the staging area. |
void
|
unpackArchive(InputStream stream, String archiveFileName, File baseDir, List addedFiles, List messages, boolean overwrite)
Unpack the given archive file into the given directory. |
boolean
|
updateEditFiles(Map flow)
Update edit file(s). |
boolean
|
updateEditFiles(Map flow, File editFile)
Update a single file. |
Methods inherited from class Object | |
---|---|
wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll |
Property Detail |
---|
static Map conf
def dependenciesService
static def expose
def messageSource
static ConfigurableMimeFileTypeMap mimeMapper
SandboxManager sandboxManager
def yamService
Constructor Detail |
---|
PageService()
Method Detail |
---|
boolean allowRawHtml(Map thisPage)
Map analyse(Map params)
void cancelEdit(Map flow)
String checkName(String pageName, String id, String pathDir)
String create(String pageName, String id, String pathDir)
boolean createDirectory(Map thisPage, Sandbox sandbox)
boolean createYamPage(Map thisPage, Sandbox sandbox, String seed)
String fckEscapesFix(String body)
void fromStaging(Map flow)
List getDirList(File pageFile, Wiki wiki)
File getIndexPage(File pageFile)
Map getNavigationModel(File pageFileDir, Wiki pageWiki)
Map getNavigationModel(File pageFileDir, Wiki pageWiki, List navFiles)
void overwrite(YamFile yamFile, String text, boolean isYam)
void overwrite(Map flow, File editFile, String text)
void prepareEdit(Map flow)
void previewEdit(Map flow)
void refreshEdit(Map flow)
void saveEdit(Map flow)
YamFile toStaging(Map flow, boolean regenerate)
File toStaging(Map flow)
File toStaging(Map flow, String pagePath, File pageFile)
void unpackArchive(InputStream stream, String archiveFileName, File baseDir, List addedFiles, List messages, boolean overwrite)
boolean updateEditFiles(Map flow)
boolean updateEditFiles(Map flow, File editFile)
Groovy Documentation