Prototype Root
ACTIONS | FUNCTIONS | MACROS | SKINS | TEMPLATES | TYPE.PROPERTIES

Actions
blocked_action
action called when a site has been blocked
colorpicker_action
wrapper to access colorpicker
list_action
action for listing public sites
main_action
main action
main_css_action
action to render external stylesheet
main_js_action
action to render external javascript
new_action
action for creating a new Site
notfound_action
404 action
rss_action
rss action
rss_xml_action
wrapper for rss action
sys_error_action
error action
 
Functions
checkAccess(action, usr, level)
permission check (called by hopobject.onRequest())
checkAdd(usr)
function checks if user is allowed to create a new Site
deleteSite(site)
function removes a site completely including stories, comments, members
evalNewSite(title, alias, creator)
evaluating new Site
getLayout()
return the root layout if no layout is activated, check if the default layout is existing, otherwise return a transient layout object
getLocale()
function checks if language and country were specified for root. if so, it returns the specified Locale-object otherwise it returns the default locale of the JVM
getTimeZone()
function returns the (already cached) TimeZone-Object
getTitle()
function checks if the system title of this antville-installation was defined in setup if not, it returns "Antville"
getUrl()
function checks if the system url of this antville-installation was defined in setup and returns it. if not set, root.href() is returned.
processHref(href)
href URL postprocessor. If a virtual host mapping is defined for this site's alias, use it. Otherwise, use normal site URL.
renderSitelist(limit, show, scroll)
this function renders a list of sites but first checks which collection to use
searchSites(query, sid)
Search one or more (public) sites. Returns an array containing site-aliases and story ids of matching items.
 
Macros
Root.layoutchooser
proxy macro for LayoutMgr.layoutchooser
Root.localechooser
macro rendering a dropdown containing all available locales
Root.loginstatus
macro rendering loginStatus of user valid params: - loginSkin - logoutSkin
Root.longdateformat
macro renders a chooser for the longdateformat
Root.shortdateformat
macro renders a chooser for the shortdateformat
Root.sitecounter
macro renders the number of site (either all or just the public ones)
Root.sys_allowEmails
* macro allow e-mail notification 0: no notification 1: notification for all sites 2: notification only for trusted sites
Root.sys_allowFiles
macro rendering allowFiles-flag
Root.sys_blockAfterWarning
macro rendering Number of days to wait before blocking private site
Root.sys_blockPrivateSites
macro rendering blockPrivateSites-flag
Root.sys_blockWarningAfter
macro rendering Number of days before sending blockwarning-mail
Root.sys_deleteAfterWarning
macro rendering Number of days to wait before deleting inactive site
Root.sys_deleteInactiveSites
macro rendering deleteInactiveSites-flag
Root.sys_deleteWarningAfter
macro rendering Number of days before sending deletewarning-mail
Root.sys_diskQuota
macro rendering diskquota
Root.sys_email
macro rendering address used for sending mails
Root.sys_enableAutoCleanup
macro rendering autocleanup-flag
Root.sys_frontSite
macro renders the alias of the frontpage site defined
Root.sys_limitNewSites
macro rendering a dropdown for limiting the creation of new Sites
Root.sys_minMemberAge
macro renders a dropdown containing the minimal registration time
Root.sys_minMemberSince
macro renders an input type text for editing the system-timestamp that allows users who have registered before it to create a site
Root.sys_startAtHour
macro rendering hour when automatic cleanup starts
Root.sys_title
render the system-title of this antville-installation
Root.sys_url
macro rendering siteurl
Root.sys_waitAfterNewSite
macro renders a dropdown containing the number of days a user has to wait after having created a site before being allowed to create a new one
Root.sysmgrnavigation
render the system manager navigation if user is a system manager
Root.timezonechooser
macro rendering a dropdown containing all available locales
Root.title
render the system title of this antville installation
Root.url
render the system-url of this antville installation
 
Skins
blocked.skin
javascript.skin
list.skin
response.nextpage, response.prevpage, response.sitelist
main.skin
new.skin
response.action
notfound.skin
request.path
page.skin
response.body, response.message, response.title
rss.skin
param.email, param.items, param.lastupdate, param.resources, param.textinput, param.title
style.skin
sysError.skin
sysmgrnavigation.skin
systemscripts.skin
welcome.skin
 


type.properties
##
## object references
##
sys_frontSite  = object(Site)
sys_layout     = object(Layout)

##
## collections
##
_children               = collection(Site)
_children.foreign       = SITE_ID
_children.accessname    = SITE_ALIAS
_children.order         = SITE_LASTUPDATE desc

publicSites             = collection(Site)
publicSites.filter      = SITE_ISONLINE > 0 AND SITE_ISBLOCKED = 0
publicSites.order       = SITE_TITLE asc

users                   = collection(User)
users.accessname        = USER_NAME

storiesByID             = collection(Story)
storiesByID.filter      = TEXT_PROTOTYPE = 'Story'
storiesByID.accessname  = TEXT_ID

##
## mountpoints
##
manage      = mountpoint(SysMgr)
members     = mountpoint(MemberMgr)
layouts     = mountpoint(RootLayoutMgr)
blogger     = mountpoint(BloggerApi)
metaWeblog  = mountpoint(MetaWeblogApi)
mt          = mountpoint(MtApi)