OpenVeo AngularJS back end

API Docs for: 3.0.0
Show:

userService

Summary

Defines service to manage roles and permissions.

Methods

cacheClear

Syntax

cacheClear

(
  • [type]
)

Summary

Clears a user service cache.

Parameters:

  • [type] String optional

    The cache element to clear or null to remove all caches

destroy

Syntax

destroy

()

Summary

Destroys UserService cached data.

getRoles

Syntax

getRoles

() Array

Summary

Gets roles.

Returns:

Array:

The roles

getRoles

Syntax

getRoles

() Array

Summary

Gets permissions.

Returns:

Array:

The permissions

loadPermissions

Syntax

loadPermissions

() Promise

Summary

Loads the list of permissions from server.

Returns:

Promise:

The Http promise

loadRoles

Syntax

loadRoles

() Promise

Summary

Loads the list of roles from server.

Returns:

Promise:

The Http promise