public class GroupStore extends AbstractItemValueStore<Group>
AbstractItemValueStore.ItemV<T>
JdbcAbstractStore.Creator<T>, JdbcAbstractStore.DataType, JdbcAbstractStore.EntityPopulator<T>, JdbcAbstractStore.SqlOperation<Res>, JdbcAbstractStore.StatementValues<T>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SELECT_ALL |
static java.lang.String |
SELECT_BY_NAME |
java.lang.String |
SELECT_GROUP_GROUPS |
java.lang.String |
SELECT_USER_GROUPS |
datasource
Constructor and Description |
---|
GroupStore(javax.sql.DataSource pool,
Container container) |
Modifier and Type | Method and Description |
---|---|
void |
addExternalUsersMembers(Item item,
java.util.List<Item> externalUsersMembers) |
void |
addGroupsMembers(Item item,
java.util.List<Item> groupsMembers) |
void |
addUsersMembers(Item item,
java.util.List<Item> usersMembers) |
java.util.List<java.lang.String> |
allUids() |
boolean |
areValid(java.lang.String[] groupsUids) |
java.lang.String |
byName(java.lang.String name) |
void |
create(Item item,
Group value) |
void |
delete(Item item) |
void |
deleteAll() |
Group |
get(Item item) |
java.util.List<Member> |
getFlatUsersMembers(Item item) |
java.util.List<java.lang.String> |
getGroupGroups(Item item) |
java.util.List<Member> |
getMembers(Item item) |
java.util.List<java.lang.String> |
getParents(Item item) |
java.util.List<java.lang.String> |
getUserGroups(Container userContainer,
Item item) |
boolean |
nameAlreadyUsed(Group group) |
boolean |
nameAlreadyUsed(java.lang.Long itemId,
Group group) |
void |
removeExternalUsersMembers(Item item,
java.util.Collection<java.lang.Long> membersUid) |
void |
removeGroupsMembers(Item item,
java.util.Collection<java.lang.Long> membersUid) |
void |
removeUsersMembers(Item item,
java.util.Collection<java.lang.Long> membersUid) |
java.util.List<java.lang.String> |
search(GroupSearchQuery query) |
void |
update(Item item,
Group value) |
getMultiple, join
batchInsert, batchInsert, delete, doOrContinue, doOrFail, getConnection, insert, insert, insert, insert, insertAndReturn, insertWithSerial, inTransaction, lastInsertId, select, select, select, staticInTransaction, unique, unique, unique, unique, update, update, update, update, update
public final java.lang.String SELECT_USER_GROUPS
public final java.lang.String SELECT_GROUP_GROUPS
public static final java.lang.String SELECT_BY_NAME
public static final java.lang.String SELECT_ALL
public GroupStore(javax.sql.DataSource pool, Container container)
public void create(Item item, Group value) throws java.sql.SQLException
java.sql.SQLException
public void update(Item item, Group value) throws java.sql.SQLException
java.sql.SQLException
public void delete(Item item) throws java.sql.SQLException
java.sql.SQLException
public void deleteAll() throws java.sql.SQLException
java.sql.SQLException
public void addUsersMembers(Item item, java.util.List<Item> usersMembers) throws java.sql.SQLException
java.sql.SQLException
public void addGroupsMembers(Item item, java.util.List<Item> groupsMembers) throws java.sql.SQLException, ServerFault
java.sql.SQLException
ServerFault
public void addExternalUsersMembers(Item item, java.util.List<Item> externalUsersMembers) throws java.sql.SQLException
java.sql.SQLException
public void removeUsersMembers(Item item, java.util.Collection<java.lang.Long> membersUid) throws java.sql.SQLException
java.sql.SQLException
public void removeGroupsMembers(Item item, java.util.Collection<java.lang.Long> membersUid) throws java.sql.SQLException
java.sql.SQLException
public void removeExternalUsersMembers(Item item, java.util.Collection<java.lang.Long> membersUid) throws java.sql.SQLException
java.sql.SQLException
public java.util.List<Member> getMembers(Item item) throws java.sql.SQLException
java.sql.SQLException
public java.util.List<java.lang.String> getParents(Item item) throws java.sql.SQLException
java.sql.SQLException
public java.util.List<Member> getFlatUsersMembers(Item item) throws java.sql.SQLException
java.sql.SQLException
public java.util.List<java.lang.String> getUserGroups(Container userContainer, Item item) throws java.sql.SQLException
java.sql.SQLException
public java.util.List<java.lang.String> getGroupGroups(Item item) throws java.sql.SQLException
java.sql.SQLException
public boolean areValid(java.lang.String[] groupsUids) throws java.sql.SQLException
java.sql.SQLException
public boolean nameAlreadyUsed(Group group) throws java.sql.SQLException
java.sql.SQLException
public boolean nameAlreadyUsed(java.lang.Long itemId, Group group) throws java.sql.SQLException
java.sql.SQLException
public java.lang.String byName(java.lang.String name) throws java.sql.SQLException
java.sql.SQLException
public java.util.List<java.lang.String> allUids() throws java.sql.SQLException
java.sql.SQLException
public java.util.List<java.lang.String> search(GroupSearchQuery query) throws java.sql.SQLException
java.sql.SQLException
Copyright © 2021. All Rights Reserved.