To get full access to the Kademi Hub existing customers can login here, or new customers can register here.
Properties
Name | Returns | Notes | Example |
---|---|---|---|
currentUser | UserResource | ||
currentProfile | Profile | ||
roles | Set | ||
currentRootFolder | RootFolder | ||
currentRequestPrivs | Set | Return the list of priviledges calculated for the current user on the current resource This method just provides access to request.attributes.privs, it does not do the caluclation itself |
Methods
Name | Returns | Notes | Example |
---|---|---|---|
yield ( ) | void | Yield to the operating system. Should be called when inside for loops which the governor cant directly control | |
findApplicableRoles ( targetOrg, p ) | Set | ||
containsRole ( roles, roleName ) | boolean | ||
runAsUser ( userRes, objectMirror ) | Object | ||
runAsUser ( pb, objectMirror ) | Object | ||
runAsUser ( userName, objectMirror ) | Object | ||
runAsUser ( p, objectMirror ) | Object | ||
runAsUser ( p, rf, objectMirror ) | Object | ||
generateLoginToken ( websiteName, profileBean ) | String | ||
generateLoginToken ( websiteName, versioned, profileBean ) | String | ||
generateLoginToken ( website, branch, p ) | String | ||
generateLoginToken ( website, branch, forceVersioned, p ) | String | ||
isUserInGroup ( email, groupName ) | MembershipBean | check user in a group | |
containsPriv ( privs, priv ) | boolean | Check if the given privledge is contained within the given set of priviledges priv can be a string or Priviledge object |