API documentation automatically generated by docmeteor.
File: "lib/utils.js" Where: {client|server}
extend the group schema
This method extendGroupSchemaExtern is defined in SchemaManager
Arguments
- schema {Object}
SchemaManager.extendGroupSchemaExtern = function (schema) { ...
lib/utils.js:5
File: "server/methods.js" Where: {server}
Add a user to a group
Arguments
- userId {String}
- groupId {String}
- roles {Array}
Returns Boolean
true = user was added
: function (userId, groupId, roles) { ...
server/methods.js:24
removes a user from a group
Arguments
- userId {String}
- email {String}
- groupId {String}
Returns Boolean
true = removed user from group successfull
: function (userId, email, groupId) { ...
server/methods.js:66
checks if a given groupname already exists
Arguments
- groupname {String}
Returns Boolean
true = groupname is existing false = groupname not existing
checkGroupnameExisting: function (groupname) { ...
server/methods.js:111
creates a group (autoform method call)
Arguments
- doc {Object}
- mod {Object}
- documentId {String}
Returns Boolean
true = created group successfull
createGroup: function (doc, mod, documentId) { ...
server/methods.js:127
updates a group (autoform method call)
Arguments
- doc {Object}
- mod {Object}
- documentId {String}
Returns Boolean
true = edit group successfull
updateGroup: function (doc, mod, documentId) { ...
server/methods.js:175
assigns a sub group to a group
Arguments
- groupId {String}
- parentGroupId {String}
Returns Boolean
true = assign subgroup successfull
assignSubGroup: function (groupId, parentGroupId) { ...
server/methods.js:222
remove a sub group from a group
Arguments
- groupId {String}
- parentGroupId {String}
Returns Boolean
true = removed subgroup successfull
removeSubGroup: function (groupId, parentGroupId) { ...
server/methods.js:245
removes a group
Arguments
- groupId {String}
Returns Boolean
true = removed group successfull
removeGroup: function (groupId) { ...
server/methods.js:267
add user role
Arguments
- groupId {String}
- userId {String}
- role {String}
Returns Boolean
true = added role
addUserRoleInGroup: function(groupId, userId, role){ ...
server/methods.js:306
add user role
Arguments
- groupId {String}
- userId {String}
- role {String}
Returns Boolean
true = added role
deleteUserRoleInGroup: function(groupId, userId, role){ ...
server/methods.js:333