public class OrgUnitStore extends AbstractItemValueStore<OrgUnit>
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 |
INSERT_QUERY |
static java.lang.String |
UPDATE_QUERY |
datasource, logger
Constructor and Description |
---|
OrgUnitStore(javax.sql.DataSource dataSource,
Container dirContainer) |
Modifier and Type | Method and Description |
---|---|
void |
create(Item item,
OrgUnit value) |
void |
delete(Item item) |
void |
deleteAll() |
OrgUnit |
get(Item item) |
java.util.Set<java.lang.String> |
getAdministrators(Item ouItem) |
java.util.Set<java.lang.String> |
getAdminRoles(Item ouItem,
java.util.List<Item> admins) |
java.util.List<java.lang.String> |
getChildren(Item item) |
java.util.List<java.lang.String> |
getMembers(Item item) |
OrgUnitPath |
getPath(Item item) |
OrgUnitPath |
getPathByUid(java.lang.String ouUid) |
boolean |
hasAdministrator(Item item) |
boolean |
hasChilds(Item item) |
boolean |
hasMembers(Item ouItem) |
java.util.List<java.lang.String> |
listByAdministrator(java.util.List<Item> items) |
boolean |
pathExists(java.lang.String name,
java.lang.String parent) |
void |
removeAdministrator(java.lang.String uid) |
java.util.List<java.lang.String> |
search(java.lang.String name) |
java.util.List<java.lang.String> |
search(java.lang.String name,
java.util.List<java.lang.String> limitToOu) |
void |
setAdminRoles(Item ouItem,
Item adminItem,
java.util.Set<java.lang.String> roles) |
void |
update(Item item,
OrgUnit 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 static final java.lang.String INSERT_QUERY
public static final java.lang.String UPDATE_QUERY
public OrgUnitStore(javax.sql.DataSource dataSource, Container dirContainer)
public void create(Item item, OrgUnit value) throws java.sql.SQLException
java.sql.SQLException
public void update(Item item, OrgUnit 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 OrgUnitPath getPath(Item item) throws java.sql.SQLException
java.sql.SQLException
public OrgUnitPath getPathByUid(java.lang.String ouUid) throws java.sql.SQLException
java.sql.SQLException
public java.util.List<java.lang.String> search(java.lang.String name) throws java.sql.SQLException
java.sql.SQLException
public java.util.List<java.lang.String> search(java.lang.String name, java.util.List<java.lang.String> limitToOu) throws java.sql.SQLException
java.sql.SQLException
public boolean pathExists(java.lang.String name, java.lang.String parent) throws java.sql.SQLException
java.sql.SQLException
public void setAdminRoles(Item ouItem, Item adminItem, java.util.Set<java.lang.String> roles) throws java.sql.SQLException
java.sql.SQLException
public java.util.Set<java.lang.String> getAdminRoles(Item ouItem, java.util.List<Item> admins) throws java.sql.SQLException
java.sql.SQLException
public java.util.Set<java.lang.String> getAdministrators(Item ouItem) throws java.sql.SQLException
java.sql.SQLException
public void removeAdministrator(java.lang.String uid) throws java.sql.SQLException
java.sql.SQLException
public java.util.List<java.lang.String> listByAdministrator(java.util.List<Item> items) throws java.sql.SQLException
java.sql.SQLException
public java.util.List<java.lang.String> getMembers(Item item) throws java.sql.SQLException
java.sql.SQLException
public boolean hasChilds(Item item) throws java.sql.SQLException
java.sql.SQLException
public java.util.List<java.lang.String> getChildren(Item item) throws java.sql.SQLException
java.sql.SQLException
public boolean hasAdministrator(Item item) throws java.sql.SQLException
java.sql.SQLException
public boolean hasMembers(Item ouItem) throws java.sql.SQLException
java.sql.SQLException
Copyright © 2021. All Rights Reserved.