railo-context.Component
contentbox.model.security.Author
I am a author entity
| Property Summary | ||||
|---|---|---|---|---|
| type | property | default | serializable | required |
any
|
authorID
|
true
|
false
|
|
any
|
authorService
|
true
|
false
|
|
any
|
biography
|
true
|
false
|
|
any
|
createdDate
|
true
|
false
|
|
any
|
email
|
true
|
false
|
|
array
|
entries
|
true
|
false
|
|
any
|
firstName
|
true
|
false
|
|
any
|
isActive
|
false
|
true
|
false
|
any
|
lastLogin
|
true
|
false
|
|
any
|
lastName
|
true
|
false
|
|
boolean
|
loggedIn
|
false
|
true
|
false
|
any
|
numberOfEntries
|
true
|
false
|
|
any
|
numberOfPages
|
true
|
false
|
|
array
|
pages
|
true
|
false
|
|
any
|
password
|
true
|
false
|
|
any
|
permissionList
|
true
|
false
|
|
array
|
permissions
|
true
|
false
|
|
any
|
preferences
|
true
|
false
|
|
any
|
role
|
true
|
false
|
|
any
|
username
|
true
|
false
|
|
| Constructor Summary | |
|---|---|
|
init()
Constructor. |
|
| Method Summary | |
|---|---|
any
|
addEntry(any entry)
|
any
|
addPage(any page)
|
any
|
addPermission(any permission)
|
boolean
|
checkPermission(any slug)
Check for permission. |
Author
|
clearPermissions()
Clear all permissions. |
struct
|
getAllPreferences()
Get all user preferences in inflated format. |
string
|
getAuthorID()
|
string
|
getAuthorService()
|
string
|
getBiography()
|
string
|
getCreatedDate()
|
string
|
getDisplayCreatedDate()
Get formatted createdDate. |
string
|
getDisplayLastLogin()
Get formatted lastLogin. |
string
|
getEmail()
|
string
|
getEntries()
|
string
|
getFirstName()
|
string
|
getIsActive()
|
string
|
getLastLogin()
|
string
|
getLastName()
|
string
|
getLoggedIn()
|
any
|
getMemento()
Get a flat representation of this entry. |
string
|
getName()
Retrieve full name. |
string
|
getNumberOfEntries()
|
string
|
getNumberOfPages()
|
string
|
getPages()
|
string
|
getPassword()
|
string
|
getPermissionList()
|
string
|
getPermissions()
|
any
|
getPreference(any name, [any defaultValue])
Get a preference, you can pass a default value if preference does not exist. |
string
|
getPreferences()
|
string
|
getRole()
|
string
|
getUsername()
|
boolean
|
hasEntry([any entry])
|
boolean
|
hasPage([any page])
|
boolean
|
hasPermission([any permission])
|
boolean
|
hasRole([any role])
|
any
|
inPermissionList(any list)
Verify that a passed in list of perms the user can use. |
boolean
|
isLoaded()
is loaded?. |
any
|
isLoggedIn()
Logged in. |
void
|
preInsert()
|
boolean
|
removeEntry(any entry)
|
boolean
|
removePage(any page)
|
boolean
|
removePermission(any permission)
|
any
|
setAuthorService(any authorService)
|
any
|
setBiography(any biography)
|
any
|
setCreatedDate(any createdDate)
|
any
|
setEmail(any email)
|
any
|
setEntries(array entries)
|
any
|
setFirstName(any firstName)
|
any
|
setIsActive(any isActive)
|
any
|
setLastLogin(any lastLogin)
|
any
|
setLastName(any lastName)
|
any
|
setLoggedIn(boolean loggedIn)
|
any
|
setNumberOfEntries(any numberOfEntries)
|
any
|
setNumberOfPages(any numberOfPages)
|
any
|
setPages(array pages)
|
any
|
setPassword(any password)
|
any
|
setPermissionList(any permissionList)
|
Author
|
setPermissions(array permissions)
Override the setPermissions. |
Author
|
setPreference(any name, any value)
Set a preference in the user preferences. |
Author
|
setPreferences(any preferences)
Store a preferences structure or JSON data in the user prefernces. |
any
|
setRole(any role)
|
any
|
setUsername(any username)
|
| Methods inherited from class railo-context.Component |
|---|
| None |
| Constructor Detail |
|---|
Constructor
| Property Detail |
|---|
required - falsefieldtype - idgenerator - nativeserializable - truesetter - norequired - falseinject - authorService@cbpersistent - falseserializable - truerequired - falsenotnull - falseormtype - textlength - 8000serializable - truerequired - falsenotnull - trueormtype - timestampupdate - falseserializable - truerequired - falsenotnull - trueindex - idx_emaillength - 255serializable - truerequired - falseinverse - truefieldtype - one-to-manycascade - save-updateorderby - publishedDate DESCbatchsize - 10singularname - entryfkcolumn - FK_authorIDserializable - truecfc - contentbox.model.content.Entrylazy - extrarequired - falsenotnull - truelength - 100serializable - truerequired - falsenotnull - trueormtype - booleanindex - idx_login,idx_activeserializable - truerequired - falsenotnull - falseormtype - timestampserializable - truerequired - falsenotnull - truelength - 100serializable - truerequired - falsepersistent - falseserializable - truerequired - falseformula - select count(*) from cb_content as content where content.FK_authorID=authorID and content.contentType='entry'serializable - truerequired - falseformula - select count(*) from cb_content as content where content.FK_authorID=authorID and content.contentType='page'serializable - truerequired - falseinverse - truefieldtype - one-to-manycascade - save-updateorderby - publishedDate DESCbatchsize - 10singularname - pagefkcolumn - FK_authorIDserializable - truecfc - contentbox.model.content.Pagelazy - extrarequired - falsenotnull - trueindex - idx_loginlength - 100serializable - truerequired - falsepersistent - falseserializable - truelinktable - cb_authorPermissionsrequired - falsefieldtype - many-to-manycascade - allorderby - permissionsingularname - permissionfkcolumn - FK_authorIDserializable - trueinversejoincolumn - FK_permissionIDcfc - contentbox.model.security.Permissionlazy - extrarequired - falsenotnull - falseormtype - textlength - 8000serializable - truerequired - falsefieldtype - many-to-onenotnull - truefkcolumn - FK_roleIDserializable - truecfc - contentbox.model.security.Rolelazy - trueunique - truerequired - falsenotnull - trueindex - idx_loginlength - 100serializable - true| Method Detail |
|---|
entrypagepermissionCheck for permission
slug - The permission slug or list of slugs to validate the user has. If it's a list then they are ORed togetherClear all permissions
Get all user preferences in inflated format
Get formatted createdDate
Get formatted lastLogin
Get a flat representation of this entry
Retrieve full name
Get a preference, you can pass a default value if preference does not exist
namedefaultValueentrypagepermissionroleVerify that a passed in list of perms the user can use
listis loaded?
Logged in
entrypagepermissionauthorServicebiographycreatedDateemailentriesfirstNameisActivelastLoginlastNameloggedInnumberOfEntriesnumberOfPagespagespasswordpermissionListOverride the setPermissions
permissionsSet a preference in the user preferences
namevalueStore a preferences structure or JSON data in the user prefernces
preferences - A struct of data or a JSON packet to storeroleusername