public class GroupStore extends AbstractItemValueStore<Group>
AbstractItemValueStore.ItemV<T>JdbcAbstractStore.Creator<T>, JdbcAbstractStore.DataType, JdbcAbstractStore.EntityPopulator<T>, JdbcAbstractStore.SqlOperation<R>, JdbcAbstractStore.StatementValues<T>| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SELECT_ALL |
static java.lang.String |
SELECT_BY_NAME |
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, joinbatchInsert, batchInsert, delete, delete, delete, doOrContinue, doOrFail, getConnection, insert, insert, insert, insert, insertAndReturn, insertWithSerial, lastInsertId, select, select, select, unique, unique, unique, unique, unique, update, update, update, update, updatepublic 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.SQLExceptionpublic void update(Item item, Group value) throws java.sql.SQLException
java.sql.SQLExceptionpublic void delete(Item item) throws java.sql.SQLException
java.sql.SQLExceptionpublic void deleteAll()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void addUsersMembers(Item item, java.util.List<Item> usersMembers) throws java.sql.SQLException
java.sql.SQLExceptionpublic void addGroupsMembers(Item item, java.util.List<Item> groupsMembers) throws java.sql.SQLException, ServerFault
java.sql.SQLExceptionServerFaultpublic void addExternalUsersMembers(Item item, java.util.List<Item> externalUsersMembers) throws java.sql.SQLException
java.sql.SQLExceptionpublic void removeUsersMembers(Item item, java.util.Collection<java.lang.Long> membersUid) throws java.sql.SQLException
java.sql.SQLExceptionpublic void removeGroupsMembers(Item item, java.util.Collection<java.lang.Long> membersUid) throws java.sql.SQLException
java.sql.SQLExceptionpublic void removeExternalUsersMembers(Item item, java.util.Collection<java.lang.Long> membersUid) throws java.sql.SQLException
java.sql.SQLExceptionpublic java.util.List<Member> getMembers(Item item) throws java.sql.SQLException
java.sql.SQLExceptionpublic java.util.List<java.lang.String> getParents(Item item) throws java.sql.SQLException
java.sql.SQLExceptionpublic java.util.List<Member> getFlatUsersMembers(Item item) throws java.sql.SQLException
java.sql.SQLExceptionpublic java.util.List<java.lang.String> getUserGroups(Container userContainer, Item item) throws java.sql.SQLException
java.sql.SQLExceptionpublic java.util.List<java.lang.String> getGroupGroups(Item item) throws java.sql.SQLException
java.sql.SQLExceptionpublic boolean areValid(java.lang.String[] groupsUids)
throws java.sql.SQLException
java.sql.SQLExceptionpublic boolean nameAlreadyUsed(Group group) throws java.sql.SQLException
java.sql.SQLExceptionpublic boolean nameAlreadyUsed(java.lang.Long itemId,
Group group)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.lang.String byName(java.lang.String name)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.util.List<java.lang.String> allUids()
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.util.List<java.lang.String> search(GroupSearchQuery query) throws java.sql.SQLException
java.sql.SQLExceptionCopyright © 2023. All Rights Reserved.