public interface IResource
extends com.engiweb.toolkit.interfaces.IEjb
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
Copyright
|
Modifier and Type | Method and Description |
---|---|
void |
delete(ResourceBean resBean,
java.lang.String cod_oper,
java.lang.String token,
java.lang.String realm)
Deletes an existing resource.
|
void |
deleteFamily(ResourceFamilyBean resFamBean,
java.lang.String cod_oper,
java.lang.String token,
java.lang.String realm)
Deletes an existing resource family and cascade all resource types and resources related.
|
void |
deleteType(ResourceTypeBean resTypeBean,
java.lang.String cod_oper,
java.lang.String token,
java.lang.String realm)
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,
java.lang.String token,
java.lang.String realm)
Returns the resources filtered by a passed
ResourceBean object. |
com.engiweb.pm.entity.BeanList<ResourceFamilyBean> |
findFamily(ResourceFamilyBean resFamBean,
com.engiweb.pm.entity.Paging paging,
java.lang.String token,
java.lang.String realm)
Returns the resource families filtered by a passed
ResourceFamilyBean object. |
com.engiweb.pm.entity.BeanList<OrgUnitBean> |
findOrgUnit(OrgUnitBean ouBean,
ResourceBean resBean,
com.engiweb.pm.entity.Paging paging,
java.lang.String token,
java.lang.String realm)
Returns the organizational units for the given
ResourceBean object. |
com.engiweb.pm.entity.BeanList<ResourceTypeBean> |
findType(ResourceTypeBean resTypeBean,
com.engiweb.pm.entity.Paging paging,
java.lang.String token,
java.lang.String realm)
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,
com.engiweb.pm.entity.Paging paging,
java.lang.String token,
java.lang.String realm)
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,
com.engiweb.pm.entity.Paging paging,
java.lang.String token,
java.lang.String realm)
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,
com.engiweb.pm.entity.Paging paging,
java.lang.String token,
java.lang.String realm)
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,
com.engiweb.pm.entity.Paging paging,
java.lang.String token,
java.lang.String realm)
Returns users with a fixed internal resource (OrgUnit, Entitlement,
Application, ResourceFamily, ResourceType) given a list of his profiles.
|
ResourceBean |
insert(ResourceBean resBean,
java.lang.String cod_oper,
java.lang.String token,
java.lang.String realm)
Adds a new resource, if it not exists yet.
|
ResourceFamilyBean |
insertFamily(ResourceFamilyBean resFamBean,
java.lang.String cod_oper,
java.lang.String token,
java.lang.String realm)
Adds a new resource family, if it not exists yet.
|
ResourceTypeBean |
insertType(ResourceTypeBean resTypeBean,
java.lang.String cod_oper,
java.lang.String token,
java.lang.String realm)
Adds a new resource type, if it not exists yet.
|
void |
update(ResourceBean resBean,
java.lang.String cod_oper,
java.lang.String token,
java.lang.String realm)
Updates an existing resource.
|
void |
updateFamily(ResourceFamilyBean resFamBean,
java.lang.String cod_oper,
java.lang.String token,
java.lang.String realm)
Updates an existing resource family.
|
void |
updateType(ResourceTypeBean resTypeBean,
java.lang.String cod_oper,
java.lang.String token,
java.lang.String realm)
Updates an existing resource type.
|
static final java.lang.String COPYRIGHT
ResourceBean insert(ResourceBean resBean, java.lang.String cod_oper, java.lang.String token, java.lang.String realm) throws com.engiweb.toolkit.common.BackendException
resBean
- ResourceBean
to add (mandatory)cod_oper
- String
Code operation. If null PM generates it automaticallytoken
- String
Authorization stringrealm
- String
Realm nameResourceBean
addedcom.engiweb.toolkit.common.BackendException
void update(ResourceBean resBean, java.lang.String cod_oper, java.lang.String token, java.lang.String realm) throws com.engiweb.toolkit.common.BackendException
resBean
- ResourceBean
to update (mandatory)cod_oper
- String
Code operation. If null PM generates it automaticallytoken
- String
Authorization stringrealm
- String
Realm namecom.engiweb.toolkit.common.BackendException
void delete(ResourceBean resBean, java.lang.String cod_oper, java.lang.String token, java.lang.String realm) throws com.engiweb.toolkit.common.BackendException
resBean
- ResourceBean
to delete (mandatory)cod_oper
- String
Code operation. If null PM generates it automaticallytoken
- String
Authorization stringrealm
- String
Realm namecom.engiweb.toolkit.common.BackendException
com.engiweb.pm.entity.BeanList<ResourceBean> find(ResourceBean resBean, com.engiweb.pm.entity.Paging paging, java.lang.String token, java.lang.String realm) 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
token
- String
Authorization stringrealm
- String
Realm nameBeanList
of ResourceBean
com.engiweb.toolkit.common.BackendException
ResourceFamilyBean insertFamily(ResourceFamilyBean resFamBean, java.lang.String cod_oper, java.lang.String token, java.lang.String realm) throws com.engiweb.toolkit.common.BackendException
resFamBean
- ResourceFamilyBean
to add (mandatory)cod_oper
- String
Code operation. If null PM generates it automaticallytoken
- String
Authorization stringrealm
- String
Realm nameResourceFamilyBean
addedcom.engiweb.toolkit.common.BackendException
void updateFamily(ResourceFamilyBean resFamBean, java.lang.String cod_oper, java.lang.String token, java.lang.String realm) throws com.engiweb.toolkit.common.BackendException
resFamBean
- ResourceFamilyBean
to update (mandatory)cod_oper
- String
Code operation. If null PM generates it automaticallytoken
- String
Authorization stringrealm
- String
Realm namecom.engiweb.toolkit.common.BackendException
void deleteFamily(ResourceFamilyBean resFamBean, java.lang.String cod_oper, java.lang.String token, java.lang.String realm) throws com.engiweb.toolkit.common.BackendException
resFamBean
- ResourceFamilyuBean
to delete (mandatory)cod_oper
- String
Code operation. If null PM generates it automaticallytoken
- String
Authorization stringrealm
- String
Realm namecom.engiweb.toolkit.common.BackendException
com.engiweb.pm.entity.BeanList<ResourceFamilyBean> findFamily(ResourceFamilyBean resFamBean, com.engiweb.pm.entity.Paging paging, java.lang.String token, java.lang.String realm) 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
token
- String
Authorization stringrealm
- String
Realm nameBeanList
of ResourceFamilyBeancom.engiweb.toolkit.common.BackendException
ResourceTypeBean insertType(ResourceTypeBean resTypeBean, java.lang.String cod_oper, java.lang.String token, java.lang.String realm) throws com.engiweb.toolkit.common.BackendException
cod_oper
- String
Code operation. If null PM generates it automaticallytoken
- String
Authorization stringrealm
- String
Realm nameResourceTypeBean
addedcom.engiweb.toolkit.common.BackendException
void updateType(ResourceTypeBean resTypeBean, java.lang.String cod_oper, java.lang.String token, java.lang.String realm) throws com.engiweb.toolkit.common.BackendException
resTypeBean
- ResourceBean
to update (mandatory)cod_oper
- String
Code operation. If null PM generates it automaticallytoken
- String
Authorization stringrealm
- String
Realm namecom.engiweb.toolkit.common.BackendException
void deleteType(ResourceTypeBean resTypeBean, java.lang.String cod_oper, java.lang.String token, java.lang.String realm) throws com.engiweb.toolkit.common.BackendException
resTypeBean
- ResourceBean
to delete (mandatory)cod_oper
- String
Code operation. If null PM generates it automaticallytoken
- String
Authorization stringrealm
- String
Realm namecom.engiweb.toolkit.common.BackendException
com.engiweb.pm.entity.BeanList<ResourceTypeBean> findType(ResourceTypeBean resTypeBean, com.engiweb.pm.entity.Paging paging, java.lang.String token, java.lang.String realm) 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
token
- String
Authorization stringrealm
- String
Realm nameBeanList
of ResourceFamilyBeancom.engiweb.toolkit.common.BackendException
com.engiweb.pm.entity.BeanList<OrgUnitBean> findOrgUnit(OrgUnitBean ouBean, ResourceBean resBean, com.engiweb.pm.entity.Paging paging, java.lang.String token, java.lang.String realm) 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.paging
- Paging
token
- String
Authorization stringrealm
- String
Realm nameBeanList
of OrgUnitBean
with the given resoucecom.engiweb.toolkit.common.BackendException
com.engiweb.pm.entity.BeanList<UserBean> findUser(UserBean userBean, OrgUnitBean ouBean, EntitlementBean entitlementBean, com.engiweb.pm.web.bean.AbstractBean resBean, boolean hier, boolean delegate, com.engiweb.pm.entity.Paging paging, java.lang.String token, java.lang.String realm) throws com.engiweb.toolkit.common.BackendException
AbstractBean
of ResourceBean
type, for external resource, or ApplicationBean
, EntitlementBean
, OrgUnitBean
for
internal resources.userBean
- UserBean
if null no filter is applied, otherwise the passed object is used as filterouBean
- OrgUnitBean
if null no filter is applied, otherwise it must be well definedentitlementBean
- EntitlementBean
if null no filter is applied, otherwise it must be well definedresBean
- resource of OrgUnitBean
type. MandatoryresBean
- resource of ApplicationBean
or EntitlementBean
or OrgUnitBean
type. Mandatoryhier
- 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 delegatedpaging
- Paging
token
- String
Authorization stringrealm
- String
Realm nameBeanList
of UserBean
com.engiweb.toolkit.common.BackendException
com.engiweb.pm.entity.BeanList<UserBean> findUserByIntOU(UserBean userBean, OrgUnitBean ouBean, EntitlementBean entitlementBean, OrgUnitBean resBean, boolean hier, boolean delegated, com.engiweb.pm.entity.Paging paging, java.lang.String token, java.lang.String realm) throws com.engiweb.toolkit.common.BackendException
userBean
- UserBean
if null no filter is applied, otherwise the passed object is used as filterouBean
- OrgUnitBean
if null no filter is applied, otherwise it must be well definedentitlementBean
- EntitlementBean
if null no filter is applied, otherwise it must be well definedresBean
- resource of OrgUnitBean
type. Mandatoryhier
- 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 delegatedpaging
- Paging
token
- String
Authorization stringrealm
- String
Realm nameBeanList
of UserBean
com.engiweb.toolkit.common.BackendException
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, com.engiweb.pm.entity.Paging paging, java.lang.String token, java.lang.String realm) 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 delegatedpaging
- Paging
token
- String
Authorization stringrealm
- String
Realm nameBeanList
of UserBean
com.engiweb.toolkit.common.BackendException
com.engiweb.pm.entity.BeanList<UserBean> findUserByIntOUAndProfile(UserBean userBean, OrgUnitBean ouBean, OrgUnitBean resBean, com.engiweb.pm.entity.BeanList<EntitlementBean> blEntBean, boolean hier, boolean delegated, com.engiweb.pm.entity.Paging paging, java.lang.String token, java.lang.String realm) 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 delegatedpaging
- Paging
token
- String
Authorization stringrealm
- String
Realm nameBeanList
of UserBean
com.engiweb.toolkit.common.BackendException