Documentation for user-banner.ftl
git-svn-id: https://svn.libreccm.org/ccm/trunk@6284 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
da9883b61c
commit
77a17736b1
|
|
@ -5,38 +5,95 @@
|
||||||
"ui": "http://www.arsdigita.com/ui/1.0"}
|
"ui": "http://www.arsdigita.com/ui/1.0"}
|
||||||
>
|
>
|
||||||
|
|
||||||
|
<#--filedoc
|
||||||
|
The user banner component provides several informations about the current
|
||||||
|
user.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<#--doc
|
||||||
|
Retreives the value the `greeting` property from the user banner.
|
||||||
|
|
||||||
|
@return The value of the `greeting` property of the user banner.
|
||||||
|
-->
|
||||||
<#function getGreeting>
|
<#function getGreeting>
|
||||||
<#return model["./ui:userBanner/@greeting"]>
|
<#return model["./ui:userBanner/@greeting"]>
|
||||||
</#function>
|
</#function>
|
||||||
|
|
||||||
|
<#--doc
|
||||||
|
Determines if the current user is logged in.
|
||||||
|
|
||||||
|
@return `true` if the current user is logged in, `false` if not.
|
||||||
|
-->
|
||||||
<#function isLoggedIn>
|
<#function isLoggedIn>
|
||||||
<#return (model["./ui:userBanner/@screenName"]?size > 0)>
|
<#return (model["./ui:userBanner/@screenName"]?size > 0)>
|
||||||
</#function>
|
</#function>
|
||||||
|
|
||||||
|
<#--doc
|
||||||
|
Determines if the current user is *not* logged in.
|
||||||
|
|
||||||
|
@return `true` if the current user is *not* logged in, `false` if the user
|
||||||
|
is logged in.
|
||||||
|
-->
|
||||||
<#function isNotLoggedIn>
|
<#function isNotLoggedIn>
|
||||||
<#return (model["./ui:userBanner/@screenName"]?size == 0)>
|
<#return (model["./ui:userBanner/@screenName"]?size == 0)>
|
||||||
</#function>
|
</#function>
|
||||||
|
|
||||||
|
<#--doc
|
||||||
|
Retrieves the URL for changing the password. Only available if the current
|
||||||
|
user is logged in.
|
||||||
|
|
||||||
|
@return The URL for changing the password.
|
||||||
|
-->
|
||||||
<#function getChangePasswordUrl>
|
<#function getChangePasswordUrl>
|
||||||
<#return model["./ui:userBanner/@changePasswordURL"]>
|
<#return model["./ui:userBanner/@changePasswordURL"]>
|
||||||
</#function>
|
</#function>
|
||||||
|
|
||||||
|
<#--doc
|
||||||
|
Retrieves the link to the login form. Only available if the current user
|
||||||
|
is not logged in.
|
||||||
|
|
||||||
|
@return The link to the login form.
|
||||||
|
-->
|
||||||
<#function getLoginLink>
|
<#function getLoginLink>
|
||||||
<#return model["./ui:userBanner/@loginExcursionURL"]>
|
<#return model["./ui:userBanner/@loginExcursionURL"]>
|
||||||
</#function>
|
</#function>
|
||||||
|
|
||||||
|
<#--doc
|
||||||
|
Retrieves the link for logging out. Only available if the current user
|
||||||
|
is logged in.
|
||||||
|
|
||||||
|
@return The link for logging out.
|
||||||
|
-->
|
||||||
<#function getLogoutLink>
|
<#function getLogoutLink>
|
||||||
<#return model["./ui:userBanner/@logoutURL"]>
|
<#return model["./ui:userBanner/@logoutURL"]>
|
||||||
</#function>
|
</#function>
|
||||||
|
|
||||||
|
<#--doc
|
||||||
|
Retrieves the screen name (user name) of the current user. Only available
|
||||||
|
if the current user is logged in.
|
||||||
|
|
||||||
|
@return The screen name of the current user.
|
||||||
|
-->
|
||||||
<#function getScreenName>
|
<#function getScreenName>
|
||||||
<#return model["./ui:userBanner/@screenName"]>
|
<#return model["./ui:userBanner/@screenName"]>
|
||||||
</#function>
|
</#function>
|
||||||
|
|
||||||
|
<#--doc
|
||||||
|
The given name of the current user. Only available if the current user is
|
||||||
|
logged in.
|
||||||
|
|
||||||
|
@return The given name of the current user.
|
||||||
|
-->
|
||||||
<#function getUserGivenName>
|
<#function getUserGivenName>
|
||||||
<#return model["./ui:userBanner/@givenName"]>
|
<#return model["./ui:userBanner/@givenName"]>
|
||||||
</#function>
|
</#function>
|
||||||
|
|
||||||
|
<#--doc
|
||||||
|
The family name of the current user. Only available if the current user is
|
||||||
|
logged in.
|
||||||
|
|
||||||
|
@return The family name of the current user.
|
||||||
|
-->
|
||||||
<#function getUserFamilyName>
|
<#function getUserFamilyName>
|
||||||
<#return model["./ui:userBanner/@familyName"]>
|
<#return model["./ui:userBanner/@familyName"]>
|
||||||
</#function>
|
</#function>
|
||||||
Loading…
Reference in New Issue