public interface IResourceDirect
extends common.direct.IDirect
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
Copyright.
|
Modifier and Type | Method and Description |
---|---|
void |
delete(ResourceBean resBean,
com.engiweb.pm.dao.db.DAO dao)
Deletes an existing resource.
|
void |
deleteFamily(ResourceFamilyBean resFamBean,
com.engiweb.pm.dao.db.DAO dao)
Deletes an existing resource family and cascade all resource types and resources related.
|
void |
deleteType(ResourceTypeBean resTypeBean,
com.engiweb.pm.dao.db.DAO dao)
Deletes an existing resource type and cascade all related resources.
|
com.engiweb.pm.entity.BeanList<ResourceBean> |
find(ResourceBean resBean,
com.engiweb.pm.entity.Paging paging,
com.engiweb.pm.dao.db.DAO dao)
Returns the resources filtered by a passed
ResourceBean object. |
com.engiweb.pm.entity.BeanList<ResourceFamilyBean> |
findFamily(ResourceFamilyBean resFamBean,
com.engiweb.pm.entity.Paging paging,
com.engiweb.pm.dao.db.DAO dao)
Returns the resource families filtered by a passed
ResourceFamilyBean object. |
com.engiweb.pm.entity.BeanList<OrgUnitBean> |
findOrgUnit(OrgUnitBean ouBean,
ResourceBean resBean,
java.lang.String code_scope,
com.engiweb.pm.entity.Paging paging,
com.engiweb.pm.dao.db.DAO dao)
Returns the organizational units for the given
ResourceBean object. |
com.engiweb.pm.entity.BeanList<ResourceTypeBean> |
findType(ResourceTypeBean resTypeBean,
com.engiweb.pm.entity.Paging paging,
com.engiweb.pm.dao.db.DAO dao)
Returns the resource types filtered by a passed
ResourceTypeBean object. |
com.engiweb.pm.entity.BeanList<UserBean> |
findUser(UserBean userBean,
OrgUnitBean ouBean,
EntitlementBean entitlementBean,
com.engiweb.pm.web.bean.AbstractBean resBean,
boolean hier,
boolean delegate,
java.lang.String code_scope,
com.engiweb.pm.entity.Paging paging,
com.engiweb.pm.dao.db.DAO dao)
Returns user having a fixed resource.
|
com.engiweb.pm.entity.BeanList<UserBean> |
findUserByIntOU(UserBean userBean,
OrgUnitBean ouBean,
EntitlementBean entitlementBean,
OrgUnitBean resBean,
boolean hier,
boolean delegated,
java.lang.String code_scope,
com.engiweb.pm.entity.Paging paging,
com.engiweb.pm.dao.db.DAO dao)
Returns users having a fixed organization unit in visibility.
|
com.engiweb.pm.entity.BeanList<UserBean> |
findUserByIntOUAndProfile(UserBean userBean,
OrgUnitBean ouBean,
OrgUnitBean resBean,
com.engiweb.pm.entity.BeanList<EntitlementBean> blEntBean,
boolean hier,
boolean delegated,
java.lang.String code_scope,
com.engiweb.pm.entity.Paging paging,
com.engiweb.pm.dao.db.DAO dao)
Returns user having a organizational unit internal resource assigned to a fixed list of entitlement, punctual or in visibility
|
com.engiweb.pm.entity.BeanList<UserBean> |
findUserByProfile(UserBean userBean,
OrgUnitBean ouBean,
com.engiweb.pm.web.bean.AbstractBean resBean,
com.engiweb.pm.entity.BeanList<EntitlementBean> blEntBean,
boolean hier,
boolean delegated,
java.lang.String code_scope,
com.engiweb.pm.entity.Paging paging,
com.engiweb.pm.dao.db.DAO dao)
Returns users with a fixed internal resource (OrgUnit, Entitlement,
Application, ResourceFamily, ResourceType) given a list of his profiles.
|
ResourceBean |
insert(ResourceBean resBean,
com.engiweb.pm.dao.db.DAO dao)
Adds a new resource, if it not exists yet.
|
ResourceFamilyBean |
insertFamily(ResourceFamilyBean resFamBean,
com.engiweb.pm.dao.db.DAO dao)
Adds a new resource family, if it not exists yet.
|
ResourceTypeBean |
insertType(ResourceTypeBean resTypeBean,
com.engiweb.pm.dao.db.DAO dao)
Adds a new resource type, if it not exists yet.
|
void |
update(ResourceBean resBean,
com.engiweb.pm.dao.db.DAO dao)
Updates an existing resource.
|
void |
updateFamily(ResourceFamilyBean resFamBean,
com.engiweb.pm.dao.db.DAO dao)
Updates an existing resource family.
|
void |
updateType(ResourceTypeBean resTypeBean,
com.engiweb.pm.dao.db.DAO dao)
Updates an existing resource type.
|
static final java.lang.String COPYRIGHT
ResourceBean insert(ResourceBean resBean, com.engiweb.pm.dao.db.DAO dao) throws com.engiweb.toolkit.common.BackendException
resBean
- ResourceBean
to add (mandatory)dao
- DAO
the connection daoResourceBean
com.engiweb.toolkit.common.BackendException
- the backend exceptionvoid update(ResourceBean resBean, com.engiweb.pm.dao.db.DAO dao) throws com.engiweb.toolkit.common.BackendException
resBean
- ResourceBean
to update (mandatory)dao
- DAO
the connection daocom.engiweb.toolkit.common.BackendException
- the backend exceptionvoid delete(ResourceBean resBean, com.engiweb.pm.dao.db.DAO dao) throws com.engiweb.toolkit.common.BackendException
resBean
- ResourceBean
to delete (mandatory)dao
- DAO
the connection daocom.engiweb.toolkit.common.BackendException
- the backend exceptioncom.engiweb.pm.entity.BeanList<ResourceBean> find(ResourceBean resBean, com.engiweb.pm.entity.Paging paging, com.engiweb.pm.dao.db.DAO dao) throws com.engiweb.toolkit.common.BackendException
ResourceBean
object.resBean
- ResourceBean
if null no filter is applied, otherwise the passed object is used as filterpaging
- Paging
dao
- DAO
the connection daoBeanList
of ResourceBean
com.engiweb.toolkit.common.BackendException
- the backend exceptionResourceFamilyBean insertFamily(ResourceFamilyBean resFamBean, com.engiweb.pm.dao.db.DAO dao) throws com.engiweb.toolkit.common.BackendException
resFamBean
- ResourceFamilyBean
to add (mandatory)dao
- DAO
the connection daoResourceFamilyBean
com.engiweb.toolkit.common.BackendException
- the backend exceptionvoid updateFamily(ResourceFamilyBean resFamBean, com.engiweb.pm.dao.db.DAO dao) throws com.engiweb.toolkit.common.BackendException
resFamBean
- ResourceFamilyBean
to update (mandatory)dao
- DAO
the connection daocom.engiweb.toolkit.common.BackendException
- the backend exceptionvoid deleteFamily(ResourceFamilyBean resFamBean, com.engiweb.pm.dao.db.DAO dao) throws com.engiweb.toolkit.common.BackendException
resFamBean
- ResourceFamilyuBean
to delete (mandatory)dao
- DAO
the connection daocom.engiweb.toolkit.common.BackendException
- the backend exceptioncom.engiweb.pm.entity.BeanList<ResourceFamilyBean> findFamily(ResourceFamilyBean resFamBean, com.engiweb.pm.entity.Paging paging, com.engiweb.pm.dao.db.DAO dao) throws com.engiweb.toolkit.common.BackendException
ResourceFamilyBean
object.resFamBean
- ResourceFamilyBean
if null no filter is applied, otherwise the passed object is used as filterpaging
- Paging
dao
- DAO
the connection daoBeanList
of ResourceFamilyBean
com.engiweb.toolkit.common.BackendException
- the backend exceptionResourceTypeBean insertType(ResourceTypeBean resTypeBean, com.engiweb.pm.dao.db.DAO dao) throws com.engiweb.toolkit.common.BackendException
resTypeBean
- ResourceTypeBean
the resource type to add (mandatory)dao
- DAO
the connection daoResourceTypeBean
com.engiweb.toolkit.common.BackendException
- the backend exceptionvoid updateType(ResourceTypeBean resTypeBean, com.engiweb.pm.dao.db.DAO dao) throws com.engiweb.toolkit.common.BackendException
resTypeBean
- ResourceBean
to update (mandatory)dao
- DAO
the connection daocom.engiweb.toolkit.common.BackendException
- the backend exceptionvoid deleteType(ResourceTypeBean resTypeBean, com.engiweb.pm.dao.db.DAO dao) throws com.engiweb.toolkit.common.BackendException
resTypeBean
- ResourceBean
to delete (mandatory)dao
- DAO
the connection daocom.engiweb.toolkit.common.BackendException
- the backend exceptioncom.engiweb.pm.entity.BeanList<ResourceTypeBean> findType(ResourceTypeBean resTypeBean, com.engiweb.pm.entity.Paging paging, com.engiweb.pm.dao.db.DAO dao) throws com.engiweb.toolkit.common.BackendException
ResourceTypeBean
object.resTypeBean
- ResourceTypeBean
if null no filter is applied, otherwise the passed object is used as filterpaging
- Paging
dao
- DAO
the connection daoBeanList
of ResourceTypeBean
com.engiweb.toolkit.common.BackendException
- the backend exceptioncom.engiweb.pm.entity.BeanList<OrgUnitBean> findOrgUnit(OrgUnitBean ouBean, ResourceBean resBean, java.lang.String code_scope, com.engiweb.pm.entity.Paging paging, com.engiweb.pm.dao.db.DAO dao) throws com.engiweb.toolkit.common.BackendException
ResourceBean
object.ouBean
- OrgUnitBean
if null no filter is applied, otherwise the passed object is used as filterresBean
- ResourceBean
whose assigned organizational unit are to be retrieved.code_scope
- String
the code scopepaging
- Paging
the pagingdao
- DAO
the connection daoBeanList
of OrgUnitBean
com.engiweb.toolkit.common.BackendException
- the backend exceptioncom.engiweb.pm.entity.BeanList<UserBean> findUser(UserBean userBean, OrgUnitBean ouBean, EntitlementBean entitlementBean, com.engiweb.pm.web.bean.AbstractBean resBean, boolean hier, boolean delegate, java.lang.String code_scope, com.engiweb.pm.entity.Paging paging, com.engiweb.pm.dao.db.DAO dao) throws com.engiweb.toolkit.common.BackendException
AbstractBean
of ResourceBean
type, for external resource, or ApplicationBean
, EntitlementBean
, OrgUnitBean
for
internal resources.userBean
- UserBean
the user (optional)ouBean
- OrgUnitBean
the organization unit, if not null must be well definedentitlementBean
- EntitlementBean
the entitlement, if not null must be well definedresBean
- AbstractBean
resource of ApplicationBean
or EntitlementBean
or OrgUnitBean
type. Mandatoryhier
- boolean: true if the research must be done in hierarchical mode.
It is used only if ouBean arguments are setdelegate
- boolean: true if the research must include also user having the
organization unit resource delegatedcode_scope
- String
the code scopepaging
- Paging
the pagingdao
- DAO
the connection daoBeanList
di UserBean
com.engiweb.toolkit.common.BackendException
- the backend exceptioncom.engiweb.pm.entity.BeanList<UserBean> findUserByIntOU(UserBean userBean, OrgUnitBean ouBean, EntitlementBean entitlementBean, OrgUnitBean resBean, boolean hier, boolean delegated, java.lang.String code_scope, com.engiweb.pm.entity.Paging paging, com.engiweb.pm.dao.db.DAO dao) throws com.engiweb.toolkit.common.BackendException
userBean
- UserBean
the user (optional)ouBean
- OrgUnitBean
organization unit, if not null must be well definedentitlementBean
- EntitlementBean
entitlement, if not null must be well definedresBean
- OrgUnitBean
resource of organization unit type. Mandatoryhier
- boolean: true if the research must be done in hierarchical mode. It is
used only if ouBean arguments are setdelegated
- boolean: true if the research must include also user having the
organization unit resource delegatedcode_scope
- String
the code scopepaging
- Paging
the pagingdao
- DAO
the connection daoBeanList
di UserBean
com.engiweb.toolkit.common.BackendException
- the backend exceptioncom.engiweb.pm.entity.BeanList<UserBean> findUserByProfile(UserBean userBean, OrgUnitBean ouBean, com.engiweb.pm.web.bean.AbstractBean resBean, com.engiweb.pm.entity.BeanList<EntitlementBean> blEntBean, boolean hier, boolean delegated, java.lang.String code_scope, com.engiweb.pm.entity.Paging paging, com.engiweb.pm.dao.db.DAO dao) throws com.engiweb.toolkit.common.BackendException
userBean
- UserBean
if null no filter is applied, otherwise the passed object is used as filterouBean
- OrgUnitBean
starting point in the the organization unit tree from which
search users. If null no filter is applied, otherwise it must be well definedresBean
- AbstractBean
that sets the internal resource type to search.
It must be well defined (Mandatory)blEntBean
- BeanList
of profiles owned by user.The list is considered in
OR conditionhier
- true if the research must be done in hierarchical mode. It is
used only if ouBean arguments are setdelegated
- true if the research must include also user having the
organization unit resource delegatedcode_scope
- String
the code scopepaging
- Paging
the pagingdao
- DAO
the connection daoBeanList
of UserBean
com.engiweb.toolkit.common.BackendException
- the backend exceptioncom.engiweb.pm.entity.BeanList<UserBean> findUserByIntOUAndProfile(UserBean userBean, OrgUnitBean ouBean, OrgUnitBean resBean, com.engiweb.pm.entity.BeanList<EntitlementBean> blEntBean, boolean hier, boolean delegated, java.lang.String code_scope, com.engiweb.pm.entity.Paging paging, com.engiweb.pm.dao.db.DAO dao) throws com.engiweb.toolkit.common.BackendException
userBean
- UserBean
if null no filter is applied, otherwise the passed object is used as filterouBean
- OrgUnitBean
starting point in the the organization unit tree from which
search users. If null no filter is applied, otherwise it must be well definedresBean
- resource of OrgUnitBean
type. MandatoryblEntBean
- BeanList
of profiles owned by user.The list is considered in
OR conditionhier
- true if the research must be done in hierarchical mode. It is
used only if ouBean arguments are setdelegated
- true if the research must include also user having the
organization unit resource delegatedcode_scope
- String
the code scopepaging
- Paging
the pagingdao
- DAO
the connection daoBeanList
of UserBean
com.engiweb.toolkit.common.BackendException
- the backend exception