public final class UserGroupMethods extends Object
Gloop
.Modifier and Type | Method and Description |
---|---|
static void |
addUserToGroup(String username,
String groupname) |
static void |
deleteGroup(String id) |
static void |
deleteUser(String id) |
static io.toro.gloop.object.property.GloopModel |
findAccessTokenByUserId(String userName) |
static List<String> |
findGroups() |
static io.toro.gloop.object.property.GloopModel |
findUser(String username) |
static io.toro.gloop.object.property.GloopModel |
findUser(String username,
String password) |
static io.toro.gloop.object.property.GloopModel |
findUserByEmail(String emailAddress) |
static io.toro.gloop.object.property.GloopModel |
findUsers(Closure predicateClosure) |
static io.toro.gloop.object.property.GloopModel |
generateToken(String userName) |
static boolean |
groupExists(String name) |
static List<String> |
groupsExist(List<String> groupNames) |
static void |
removeUserFromGroup(String username,
String groupname) |
static void |
saveGroup(String groupName) |
static void |
saveUser(io.toro.gloop.object.property.GloopModel user) |
@GloopObjectParameter(value="user{\n user#io.toro.martini.user.User{\n }\n}") public static io.toro.gloop.object.property.GloopModel findUser(@GloopParameter(allowNull=false) String username)
@GloopObjectParameter(value="user{\n user#io.toro.martini.user.User{\n }\n}") public static io.toro.gloop.object.property.GloopModel findUser(@GloopParameter(allowNull=false) String username, @GloopParameter(allowNull=false) String password)
@GloopObjectParameter(value="user{\n user#io.toro.martini.user.User{\n }\n}") public static io.toro.gloop.object.property.GloopModel findUserByEmail(@GloopParameter(allowNull=false) String emailAddress)
public static boolean groupExists(@GloopParameter(allowNull=false) String name)
@GloopComment(value="Returns a list of group names that were found") public static List<String> groupsExist(@GloopParameter(allowNull=false) List<String> groupNames)
public static void saveUser(@GloopParameter(allowNull=false) @GloopObjectParameter(value="user#io.toro.martini.user.User{\n}") io.toro.gloop.object.property.GloopModel user)
@GloopObjectParameter(value="users{\n users#io.toro.martini.user.User[]{\n }\n}") @GloopComment(value="The closure needs to be a groovy expression that starts with { and ends with }. It will have one argument called \'it\' that is a io.toro.martini.permissions.model.User object. The closure should return a boolean telling the method whether to include the user in the result or not") public static io.toro.gloop.object.property.GloopModel findUsers(Closure predicateClosure) throws ToroException
ToroException
public static void saveGroup(@GloopParameter(allowNull=false) String groupName)
public static void addUserToGroup(@GloopParameter(allowNull=false) String username, @GloopParameter(allowNull=false) String groupname)
public static void removeUserFromGroup(@GloopParameter(allowNull=false) String username, @GloopParameter(allowNull=false) String groupname) throws ToroException
ToroException
public static void deleteUser(@GloopParameter(allowNull=false) String id)
public static void deleteGroup(@GloopParameter(allowNull=false) String id)
@GloopObjectParameter(value="token{\n token#io.toro.martini.user.AccessToken{\n }\n}") public static io.toro.gloop.object.property.GloopModel findAccessTokenByUserId(String userName)
@GloopObjectParameter(value="token{\n token#io.toro.martini.user.AccessToken{\n }\n}") public static io.toro.gloop.object.property.GloopModel generateToken(String userName) throws ToroException
ToroException
Copyright © 2019. All rights reserved.