role

package
Version: v0.0.0-...-d84e329 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2017 License: LGPL-2.1 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(s liferay.Session) *Service

func (*Service) AddRole

func (s *Service) AddRole(name string, titleMap map[string]interface{}, descriptionMap map[string]interface{}, _type int) (map[string]interface{}, error)

func (*Service) AddRole2

func (s *Service) AddRole2(className string, classPK int64, name string, titleMap map[string]interface{}, descriptionMap map[string]interface{}, _type int, subtype string, serviceContext *liferay.ObjectWrapper) (map[string]interface{}, error)

func (*Service) AddUserRoles

func (s *Service) AddUserRoles(userId int64, roleIds []interface{}) error

func (*Service) DeleteRole

func (s *Service) DeleteRole(roleId int64) error

func (*Service) GetGroupRoles

func (s *Service) GetGroupRoles(groupId int64) ([]interface{}, error)

func (*Service) GetRole

func (s *Service) GetRole(roleId int64) (map[string]interface{}, error)

func (*Service) GetRole2

func (s *Service) GetRole2(companyId int64, name string) (map[string]interface{}, error)

func (*Service) GetUserGroupGroupRoles

func (s *Service) GetUserGroupGroupRoles(userId int64, groupId int64) ([]interface{}, error)

func (*Service) GetUserGroupRoles

func (s *Service) GetUserGroupRoles(userId int64, groupId int64) ([]interface{}, error)

func (*Service) GetUserRelatedRoles

func (s *Service) GetUserRelatedRoles(userId int64, groups []interface{}) ([]interface{}, error)

func (*Service) GetUserRoles

func (s *Service) GetUserRoles(userId int64) ([]interface{}, error)

func (*Service) HasUserRole

func (s *Service) HasUserRole(userId int64, companyId int64, name string, inherited bool) (bool, error)

func (*Service) HasUserRoles

func (s *Service) HasUserRoles(userId int64, companyId int64, names []interface{}, inherited bool) (bool, error)

func (*Service) UnsetUserRoles

func (s *Service) UnsetUserRoles(userId int64, roleIds []interface{}) error

func (*Service) UpdateRole

func (s *Service) UpdateRole(roleId int64, name string, titleMap map[string]interface{}, descriptionMap map[string]interface{}, subtype string, serviceContext *liferay.ObjectWrapper) (map[string]interface{}, error)

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL