public class OrgUnitStore extends AbstractItemValueStore<OrgUnit>
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 |
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, 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 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.SQLExceptionpublic void update(Item item, OrgUnit 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 OrgUnitPath getPath(Item item) throws java.sql.SQLException
java.sql.SQLExceptionpublic OrgUnitPath getPathByUid(java.lang.String ouUid) throws java.sql.SQLException
java.sql.SQLExceptionpublic java.util.List<java.lang.String> search(java.lang.String name)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.util.List<java.lang.String> search(java.lang.String name,
java.util.List<java.lang.String> limitToOu)
throws java.sql.SQLException
java.sql.SQLExceptionpublic boolean pathExists(java.lang.String name,
java.lang.String parent)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void setAdminRoles(Item ouItem, Item adminItem, java.util.Set<java.lang.String> roles) throws java.sql.SQLException
java.sql.SQLExceptionpublic java.util.Set<java.lang.String> getAdminRoles(Item ouItem, java.util.List<Item> admins) throws java.sql.SQLException
java.sql.SQLExceptionpublic java.util.Set<java.lang.String> getAdministrators(Item ouItem) throws java.sql.SQLException
java.sql.SQLExceptionpublic void removeAdministrator(java.lang.String uid)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.util.List<java.lang.String> listByAdministrator(java.util.List<Item> items) throws java.sql.SQLException
java.sql.SQLExceptionpublic java.util.List<java.lang.String> getMembers(Item item) throws java.sql.SQLException
java.sql.SQLExceptionpublic boolean hasChilds(Item item) throws java.sql.SQLException
java.sql.SQLExceptionpublic java.util.List<java.lang.String> getChildren(Item item) throws java.sql.SQLException
java.sql.SQLExceptionpublic boolean hasAdministrator(Item item) throws java.sql.SQLException
java.sql.SQLExceptionpublic boolean hasMembers(Item ouItem) throws java.sql.SQLException
java.sql.SQLExceptionCopyright © 2022. All Rights Reserved.