Class: Grant

Simplicite.Ajax.Grant

new Grant

Grant constructor

Parameters:
Name Type Description
app Simplicite.Ajax Ajax services
grant object User rights meta-data
Source:
  • grant.js, line 13

Methods

accessCreate

Can create object

Parameters:
Name Type Description
name string | Simplicite.Ajax.BusinessObject object or name
Source:
  • grant.js, line 175

accessDelete

Can delete object

Parameters:
Name Type Description
name string | Simplicite.Ajax.BusinessObject object or name
Source:
  • grant.js, line 187

accessObject

Can access/read object

Parameters:
Name Type Description
name string | Simplicite.Ajax.BusinessObject object or name
Source:
  • grant.js, line 169

accessUpdate

Can update object

Parameters:
Name Type Description
name string | Simplicite.Ajax.BusinessObject object or name
Source:
  • grant.js, line 181

checkAccess

Check access to object

Parameters:
Name Type Description
name string | Simplicite.Ajax.BusinessObject object or name
prop string optional property to check 'c'=create 'u'=update 'd'=delete
Source:
  • grant.js, line 160

getDataMapObject

Get datamap object wrapper

Parameters:
Name Type Description
obj string object name
Source:
  • grant.js, line 153

getEmail

Get user email

Source:
  • grant.js, line 49

getFirstName

Get user first name

Source:
  • grant.js, line 54

getFullName

Get user full name

Source:
  • grant.js, line 64

getHomeObject

Get home object wrapper

Parameters:
Name Type Description
obj string object name
Source:
  • grant.js, line 128

getLang

Get user language

Source:
  • grant.js, line 44

getLastName

Get user last name

Source:
  • grant.js, line 59

getLogin

Get user login

Source:
  • grant.js, line 39

getMainObject

Get main object wrapper

Parameters:
Name Type Description
obj string object name
Source:
  • grant.js, line 122

getObject

Get object wrapper

Parameters:
Name Type Description
inst string instance name
name string object name
Source:
  • grant.js, line 116

getPanelObject

Get panel wrapper

Parameters:
Name Type Description
obj string object name
fk string optional foreign-key name
Source:
  • grant.js, line 141

getParameter

Get a session parameter

Parameters:
Name Type Description
callback function Callback
name string Parameter name
params object Optional parameters (see Simplicite.Ajax.getSysParam)
Source:
  • grant.js, line 84

getRefObject

Get reference object wrapper

Parameters:
Name Type Description
obj string object name
Source:
  • grant.js, line 147

getText

Get text alias (constraint usage)

Parameters:
Name Type Description
code string text code
plural boolean look for the plural label
Source:
  • grant.js, line 101

getTmpObject

Get temporary object wrapper

Parameters:
Name Type Description
obj string object name
Source:
  • grant.js, line 134

getUserID

Get user ID

Source:
  • grant.js, line 34

hasResponsibility

Check if user has responsibility on specified group

Parameters:
Name Type Description
group string Group name
Source:
  • grant.js, line 70

isAdmin

Is user an ADMIN ?

Source:
  • grant.js, line 75

setParameter

Set a session parameter

Parameters:
Name Type Description
callback function Callback
name string Parameter name
value string Parameter value
params object Optional parameters (see Simplicite.Ajax.setSysParam)
Source:
  • grant.js, line 93

T

Get text alias (constraint usage)

Parameters:
Name Type Description
code string text code
plural boolean look for the plural label
Source:
  • grant.js, line 108