genericAdmin

genericAdmin

genericAdmin

Functions used to display the Generic Admin section of Farcry. Any types that use the farcry generic admin facility MUST extend this component

Metadata

deployPermissions()

Creates default permissions for a given type

Arguments

Name Type Required Default Options Description
typename String Yes
permissionType String No PolicyGroup

getObjects()

Returns a query of objects to be displayed

Arguments

Name Type Required Default Options Description
dsn string Yes [runtime expression] Database DSN
typename string Yes Object type of objects to be displayed
criteria struct Yes

initNameSpace()

Arguments

Name Type Required Default Options Description
typename String No

permissionCheck()

Checks if user has a permission to perform select action

Arguments

Name Type Required Default Options Description
permission string Yes name of permission

renderSearchFields()

Returns HTML for seach fields in generic Admin

Arguments

Name Type Required Default Options Description
criteria String Yes
typename String Yes

sessionNameSpaceExists()

Arguments

Name Type Required Default Options Description
typename String Yes