@groovy.transform.ToString(cache: true, includeNames: true, includePackage: false) @groovy.util.logging.Slf4j @grails.gorm.hibernate.annotation.ManagedEntity class UserGroup extends java.lang.Object implements Auditable, MultiTenant<UserGroup>, java.io.Serializable, Stampable<UserGroup>
Modifiers | Name | Description |
---|---|---|
static java.lang.String |
USER_DEFAULT_GROUP |
Constructor and description |
---|
UserGroup
() |
Type Params | Return Type | Name and description |
---|---|---|
|
static UserGroup |
create(User user, Group group, boolean flush) |
|
boolean |
equals(java.lang.Object other) |
|
static boolean |
exists(long userId, long groupId) |
|
static UserGroup |
get(long userId, long groupId) |
|
int |
hashCode() |
|
static boolean |
remove(User u, Group rg) |
|
static int |
removeAll(User u) |
|
static int |
removeAll(Group rg) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#getClass(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#hashCode(), java.lang.Object#equals(java.lang.Object), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#notify() |
租户信息, 对应 Tenant Domain 的 subDomain 字段, 用于 gorm 实现多租户
Groovy Documentation