public interface IOrgUnit
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 |
addProperties(com.engiweb.pm.entity.BeanList<PropertyBean> blPropertyBean,
OrgUnitBean orgUnitBean,
java.lang.String token,
java.lang.String realmAdm)
Adds a list of properties to an organization unit
|
void |
addResources(com.engiweb.pm.entity.BeanList<ResourceBean> blResources,
OrgUnitBean orgUnitBean,
boolean hier,
boolean employee,
java.lang.String cod_oper,
java.lang.String token,
java.lang.String realm)
Adds a list of
ResourceBean to an organization unit |
void |
addRoles(com.engiweb.pm.entity.BeanList<EntitlementBean> blEntitlement,
OrgUnitBean orgUnitBean,
boolean hier,
boolean alignUserToDef,
java.lang.String cod_oper,
java.lang.String token,
java.lang.String realm)
Adds a list of entitlements to an organization unit
|
void |
addRoles(com.engiweb.pm.entity.BeanList<EntitlementBean> entBl,
OrgUnitBean ouBean,
boolean hier,
java.lang.String cod_oper,
java.lang.String token,
java.lang.String realm)
Add a list of
EntitlementBean to an OrgUnitBean |
void |
delete(OrgUnitBean orgUnitBean,
boolean hier,
java.lang.String token,
java.lang.String realm)
Deletes an existing organization unit.
|
void |
deleteType(OUTypeBean ouTypeBean,
java.lang.String token,
java.lang.String realm)
Removes an existing organization unit type.
|
com.engiweb.pm.entity.BeanList<OrgUnitBean> |
find(OrgUnitBean orgUnitBean,
OrgUnitBean ouStart,
com.engiweb.pm.entity.Paging paging,
java.lang.String token,
java.lang.String realm)
Returns the organization units filtered by a passed
OrgUnitBean object starting from a start OU. |
com.engiweb.pm.entity.BeanList<ApplicationBean> |
findApplication(ApplicationBean appBean,
OrgUnitBean orgUnitBean,
com.engiweb.pm.entity.Paging paging,
java.lang.String token,
java.lang.String realm)
Returns a list of applications associated to entitlements belonging to an organization unit
|
com.engiweb.pm.entity.BeanList<ApplicationBean> |
findApplicationByEntitlement(ApplicationBean appBean,
EntitlementBean entBean,
OrgUnitBean orgUnitBean,
com.engiweb.pm.entity.Paging paging,
java.lang.String token,
java.lang.String realm)
Returns a list of applications belonging to an organization unit (punctually or hierarchically) filtered by an entitlement
|
com.engiweb.pm.entity.BeanList<EntitlementBean> |
findEntitlement(EntitlementBean entBean,
ApplicationBean appBean,
OrgUnitBean orgUnitBean,
boolean hier,
com.engiweb.pm.entity.Paging paging,
java.lang.String token,
java.lang.String realm)
Returns a list of entitlements belonging to an organization unit (punctually or hierarchically) filtered by an application
|
com.engiweb.pm.entity.BeanList<OrgUnitBean> |
findInHier(OrgUnitBean orgUnitBean,
boolean findAdmin,
com.engiweb.pm.entity.Paging paging,
java.lang.String token,
java.lang.String realm)
Returns the children nodes of the passed OU
|
com.engiweb.pm.entity.BeanList<OrgUnitBean> |
findInHier(OrgUnitBean orgUnitBean,
boolean findAdmin,
java.lang.String token,
java.lang.String realm)
Deprecated.
As of release 5.1, replaced by
findInHier(OrgUnitBean, boolean, Paging, String, String) |
com.engiweb.pm.entity.BeanList<OrgUnitBean> |
findInHier(OrgUnitBean orgUnitBean,
com.engiweb.pm.entity.Paging paging,
java.lang.String token,
java.lang.String realm)
Returns the children nodes of the passed OU
|
com.engiweb.pm.entity.BeanList<OrgUnitBean> |
findInHier(OrgUnitBean orgUnitBean,
java.lang.String token,
java.lang.String realm)
Deprecated.
As of release 5.1, replaced by
findInHier(OrgUnitBean, Paging, String, String) |
com.engiweb.pm.entity.BeanList<OrgUnitBean> |
findParent(OrgUnitBean ouBean,
boolean showAdmin,
java.lang.String token,
java.lang.String realm)
Returns the parent tree of the passed OU.
|
com.engiweb.pm.entity.BeanList<PropertyBean> |
findProperty(PropertyBean propertyBean,
OrgUnitBean orgUnitBean,
com.engiweb.pm.entity.Paging paging,
java.lang.String token,
java.lang.String realmAdm)
Returns a list of properties assigned to an organization unit
|
com.engiweb.pm.entity.BeanList<ResourceBean> |
findResource(ResourceBean resourcBean,
OrgUnitBean orgUnitBean,
com.engiweb.pm.entity.Paging paging,
java.lang.String cod_oper,
java.lang.String token,
java.lang.String realm)
Returns the resources filtered by a passed
ResourceBean object assigned to an organization unit |
com.engiweb.pm.entity.BeanList<OUTypeBean> |
findType(OUTypeBean ouTypeBean,
com.engiweb.pm.entity.Paging paging,
java.lang.String token,
java.lang.String realm)
Returns the organization unit types filtered by a passed
OUTypeBean object |
com.engiweb.pm.entity.BeanList<UserBean> |
findUser(UserBean userBean,
EntitlementBean entitlementBean,
OrgUnitBean orgUnitBean,
boolean hier,
com.engiweb.pm.entity.Paging paging,
java.lang.String token,
java.lang.String realm)
Returns a list of users filtered by entitlement belonging to an organization unit or one of its sons (if hier is true)
|
com.engiweb.pm.entity.BeanList<UserBean> |
findUser(UserBean userBean,
OrgUnitBean orgUnitBean,
boolean hier,
com.engiweb.pm.entity.Paging paging,
java.lang.String token,
java.lang.String realm)
Returns a list of users belonging to an organization unit or one of its sons (if hier is true)
|
OrgUnitBean |
insert(OrgUnitBean orgUnitBean,
OrgUnitBean ouParentBean,
boolean parentEntitlements,
boolean parentResources,
java.lang.String token,
java.lang.String realm)
Adds a new organization unit, if it not exists yet, to the organization unit tree.
|
OUTypeBean |
insertType(OUTypeBean ouTypeBean,
java.lang.String token,
java.lang.String realm)
Adds a new orgnization unit type if it not exists yet.
|
void |
modifyRoles(com.engiweb.pm.entity.BeanList<EntitlementBean> entBl,
OrgUnitBean ouBean,
boolean hier,
boolean alignUserToDef,
java.lang.String cod_oper,
java.lang.String token,
java.lang.String realm)
Updates Default, VisibilityViolation and/or enabled property from a list of entitlements belonging to an orgaanization unit
|
void |
modifySOD(OrgUnitBean orgUnitBean,
boolean enableSOD,
boolean hier,
java.lang.String token,
java.lang.String realm)
Modify SOD on the organization unit punctually or hierarchically
|
void |
removeProperties(com.engiweb.pm.entity.BeanList<PropertyBean> blPropertyBean,
OrgUnitBean orgUnitBean,
java.lang.String token,
java.lang.String realmAdm)
Removes a list of properties from an application
|
void |
removeResources(com.engiweb.pm.entity.BeanList<ResourceBean> blResources,
OrgUnitBean orgUnitBean,
boolean hier,
java.lang.String cod_oper,
java.lang.String token,
java.lang.String realm)
Removes a list of
ResourceBean from an organization unit |
void |
removeRoles(com.engiweb.pm.entity.BeanList<EntitlementBean> entBl,
OrgUnitBean orgUnitBean,
boolean hier,
java.lang.String cod_oper,
java.lang.String token,
java.lang.String realm)
Removes a list of entitlements from an organization unit
|
OrgUnitBean |
update(OrgUnitBean orgUnitBean,
OrgUnitBean ouParentBean,
java.lang.String token,
java.lang.String realm)
Updates an existing organization unit
|
void |
updateType(OUTypeBean ouTypeBean,
java.lang.String token,
java.lang.String realm)
Updates an existing organization unit type
|
static final java.lang.String COPYRIGHT
OrgUnitBean insert(OrgUnitBean orgUnitBean, OrgUnitBean ouParentBean, boolean parentEntitlements, boolean parentResources, java.lang.String token, java.lang.String realm) throws com.engiweb.toolkit.common.BackendException
orgUnitBean - OrgUnitBean to add (mandatory)ouParentBean - OrgUnitBean parent of the new organization unit.It must be present and uniquely defined.parentEntitlements - If true, all entitlements belonging to parent OU will be assigned to the new child OUparentResources - If true, all resources belonging to parent OU will be assigned to the new child OUtoken - String Authorization stringrealm - String Realm nameOrgUnitBean addedcom.engiweb.toolkit.common.BackendExceptionOrgUnitBean update(OrgUnitBean orgUnitBean, OrgUnitBean ouParentBean, java.lang.String token, java.lang.String realm) throws com.engiweb.toolkit.common.BackendException
orgUnitBean - OrgUnitBean to update (mandatory)ouParentBean - OrgUnitBean parent of the updated organization unit.It must be present and uniquely defined.token - String Authorization stringrealm - String Realm nameOrgUnitBean updated.com.engiweb.toolkit.common.BackendExceptionvoid delete(OrgUnitBean orgUnitBean, boolean hier, java.lang.String token, java.lang.String realm) throws com.engiweb.toolkit.common.BackendException
orgUnitBean - OrgUnitBean to delete (mandatory). If OU is not a leaf, then all nested OUs will be assigned to its associated parent OUboolean - hier: if true organization unit and its sons will be deletedtoken - String Authorization stringrealm - String Realm namecom.engiweb.toolkit.common.BackendExceptioncom.engiweb.pm.entity.BeanList<OrgUnitBean> find(OrgUnitBean orgUnitBean, OrgUnitBean ouStart, com.engiweb.pm.entity.Paging paging, java.lang.String token, java.lang.String realm) throws com.engiweb.toolkit.common.BackendException
OrgUnitBean object starting from a start OU.
Is startOU is null or not uniquely defined, the start OU is defined according to user visibilityorgUnitBean - OrgUnitBean if null no filter is applied, otherwise the passed object is used as filterouStart - OrgUnitBean OU from which research must be performed. If null or id or code is not set start OU is defined according to user visibilitypaging - Pagingtoken - String Authorization stringrealm - String Realm nameBeanList of OrgUnitBeancom.engiweb.toolkit.common.BackendExceptionvoid addResources(com.engiweb.pm.entity.BeanList<ResourceBean> blResources, OrgUnitBean orgUnitBean, boolean hier, boolean employee, java.lang.String cod_oper, java.lang.String token, java.lang.String realm) throws com.engiweb.toolkit.common.BackendException
ResourceBean to an organization unitblResources - BeanList of ResourceBean to add. Resources must be present and uniquely defined.orgUnitBean - OrgUnitBean to which add resources. It must be present and uniquely defined.hier - boolean if true resources will be add to organization unit in hierarchical mode.employ - boolean if true resources will be assigned to all employments according with passed OUcod_oper - String Code operation. If null PM generates it automaticallytoken - String Authorization stringrealm - String Realm namecom.engiweb.toolkit.common.BackendExceptionvoid removeResources(com.engiweb.pm.entity.BeanList<ResourceBean> blResources, OrgUnitBean orgUnitBean, boolean hier, java.lang.String cod_oper, java.lang.String token, java.lang.String realm) throws com.engiweb.toolkit.common.BackendException
ResourceBean from an organization unitblResources - BeanList of ResourceBean to remove. Resources must be present and uniquely defined.orgUnitBean - OrgUnitBean from which remove resources. It must be present and uniquely defined.hier - if true resources will be will be removed from organization unit in hierarchical mode.cod_oper - String Code operation. If null PM generates it automaticallytoken - String Authorization stringrealm - String Realm namecom.engiweb.toolkit.common.BackendExceptioncom.engiweb.pm.entity.BeanList<ResourceBean> findResource(ResourceBean resourcBean, OrgUnitBean orgUnitBean, com.engiweb.pm.entity.Paging paging, java.lang.String cod_oper, java.lang.String token, java.lang.String realm) throws com.engiweb.toolkit.common.BackendException
ResourceBean object assigned to an organization unitceBean - resourcBean ResourceBean if null no filter is applied, otherwise the passed object is used as filterorgUnitBean - OrgUnitBean in which to search for the resourcesPaging - paging: Pagingcod_oper - String Code operation. If null PM generates it automaticallytoken - String Authorization stringrealm - String Realm namecom.engiweb.toolkit.common.BackendExceptioncom.engiweb.pm.entity.BeanList<OrgUnitBean> findParent(OrgUnitBean ouBean, boolean showAdmin, java.lang.String token, java.lang.String realm) throws com.engiweb.toolkit.common.BackendException
orgUnitBean - OrgUnitBean that you want to find the parent tree. It must be present end uniquely definedboolean - showAdmin: if true returs the ou's administratorstoken - String Authorization stringrealm - String Realm nameBeanList of OrgUnitBeancom.engiweb.toolkit.common.BackendExceptioncom.engiweb.pm.entity.BeanList<OrgUnitBean> findInHier(OrgUnitBean orgUnitBean, com.engiweb.pm.entity.Paging paging, java.lang.String token, java.lang.String realm) throws com.engiweb.toolkit.common.BackendException
orgUnitBean - OrgUnitBean that you want to find the sons. It must be present end uniquely definedtoken - String Authorization stringrealm - String Realm nameBeanList of OrgUnitBeancom.engiweb.toolkit.common.BackendException@Deprecated com.engiweb.pm.entity.BeanList<OrgUnitBean> findInHier(OrgUnitBean orgUnitBean, java.lang.String token, java.lang.String realm) throws com.engiweb.toolkit.common.BackendException
findInHier(OrgUnitBean, Paging, String, String)com.engiweb.toolkit.common.BackendExceptioncom.engiweb.pm.entity.BeanList<OrgUnitBean> findInHier(OrgUnitBean orgUnitBean, boolean findAdmin, com.engiweb.pm.entity.Paging paging, java.lang.String token, java.lang.String realm) throws com.engiweb.toolkit.common.BackendException
orgUnitBean - OrgUnitBean that you want to find the sons. It must be present end uniquely definedboolean - findAdmin set true if you want to retrieve the aministrator associated to the oustoken - String Authorization stringrealm - String Realm nameBeanList of OrgUnitBeancom.engiweb.toolkit.common.BackendException@Deprecated com.engiweb.pm.entity.BeanList<OrgUnitBean> findInHier(OrgUnitBean orgUnitBean, boolean findAdmin, java.lang.String token, java.lang.String realm) throws com.engiweb.toolkit.common.BackendException
findInHier(OrgUnitBean, boolean, Paging, String, String)com.engiweb.toolkit.common.BackendExceptionOUTypeBean insertType(OUTypeBean ouTypeBean, java.lang.String token, java.lang.String realm) throws com.engiweb.toolkit.common.BackendException
ouTypeBean - OUTypeBean to insert (mandatory). The organization unit type name is a mandatory field.token - String Authorization stringrealm - String Realm nameOrgUnitBean createdcom.engiweb.toolkit.common.BackendExceptionvoid updateType(OUTypeBean ouTypeBean, java.lang.String token, java.lang.String realm) throws com.engiweb.toolkit.common.BackendException
ouTypeBean - OUTypeBean to update (mandatory).It must be present and uniquely defined.token - String Authorization stringrealm - String Realm namecom.engiweb.toolkit.common.BackendExceptionvoid deleteType(OUTypeBean ouTypeBean, java.lang.String token, java.lang.String realm) throws com.engiweb.toolkit.common.BackendException
ouTypeBean - OUTypeBean to delete (mandatory).It must be present and uniquely defined.token - String Authorization stringrealm - String Realm namecom.engiweb.toolkit.common.BackendExceptioncom.engiweb.pm.entity.BeanList<OUTypeBean> findType(OUTypeBean ouTypeBean, com.engiweb.pm.entity.Paging paging, java.lang.String token, java.lang.String realm) throws com.engiweb.toolkit.common.BackendException
OUTypeBean objectouTypeBean - OUTypeBean if null no filter is applied, otherwise the passed object is used as filterpaging - Pagingtoken - String Authorization stringrealm - String Realm nameBeanList of OUTypeBeancom.engiweb.toolkit.common.BackendExceptioncom.engiweb.pm.entity.BeanList<UserBean> findUser(UserBean userBean, EntitlementBean entitlementBean, OrgUnitBean orgUnitBean, boolean hier, 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 filterentitlementBean - EntitlementBean if null no filter is applied, otherwise the passed object is used as filterorgUnitBean - OrgUnitBean must be present and uniquely definedboolean - hier: if true the research is performed hierarchicallypaging - Pagingtoken - String Authorization stringrealm - String Realm nameBeanList of UserBeancom.engiweb.toolkit.common.BackendExceptioncom.engiweb.pm.entity.BeanList<UserBean> findUser(UserBean userBean, OrgUnitBean orgUnitBean, boolean hier, 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 filterorgUnitBean - OrgUnitBean must be present and uniquely definedboolean - hier: if true the research is performed hierarchicallypaging - Pagingtoken - String Authorization stringrealm - String Realm nameBeanList of UserBeancom.engiweb.toolkit.common.BackendExceptionvoid addRoles(com.engiweb.pm.entity.BeanList<EntitlementBean> blEntitlement, OrgUnitBean orgUnitBean, boolean hier, boolean alignUserToDef, java.lang.String cod_oper, java.lang.String token, java.lang.String realm) throws com.engiweb.toolkit.common.BackendException
alignUserToDef - blEntitlement - BeanList of EntitlementBean on which can be set some properties (DEFAULT, VISIBILITY_VIOLATION, ENALBLED). Entitlements must be present and uniquely
definedorgUnitBean - OrgUnitBean must be present and uniquely definedboolean - hier: if true adds is performed hierarchicallycod_oper - String Code operation. If null PM generates it automaticallytoken - String Authorization stringrealm - String Realm namecom.engiweb.toolkit.common.BackendExceptionvoid addRoles(com.engiweb.pm.entity.BeanList<EntitlementBean> entBl, OrgUnitBean ouBean, boolean hier, java.lang.String cod_oper, java.lang.String token, java.lang.String realm) throws com.engiweb.toolkit.common.BackendException
EntitlementBean to an OrgUnitBeanentBl - BeanList of well defined EntitlementBean to addouBean - OrgUnitBean to which enitlements must be addhier - if true entitlement are assigned hierarchicallycod_oper - String Code operation. If null PM generates it automaticallytoken - String Authorization stringrealm - String Realm namecom.engiweb.toolkit.common.BackendExceptionvoid modifyRoles(com.engiweb.pm.entity.BeanList<EntitlementBean> entBl, OrgUnitBean ouBean, boolean hier, boolean alignUserToDef, java.lang.String cod_oper, java.lang.String token, java.lang.String realm) throws com.engiweb.toolkit.common.BackendException
blEntitlement - BeanList of EntitlementBean on which some properties (DEFAULT, VISIBILITY_VIOLATION, ENALBLED) can be updated. Entitlements must be present and
uniquelyorgUnitBean - OrgUnitBean must be present and uniquely definedboolean - hier: if true updates is performed hierarchicallyboolean - alignUserToDef: true if roles must to be assigned to already present OU userscod_oper - String Code operation. If null PM generates it automaticallytoken - String Authorization stringrealm - String Realm namecom.engiweb.toolkit.common.BackendExceptionvoid removeRoles(com.engiweb.pm.entity.BeanList<EntitlementBean> entBl, OrgUnitBean orgUnitBean, boolean hier, java.lang.String cod_oper, java.lang.String token, java.lang.String realm) throws com.engiweb.toolkit.common.BackendException
blEntitlement - BeanList of EntitlementBean to remove, They must be present and uniquely definedorgUnitBean - OrgUnitBean must be present and uniquely definedhier - if true removal operation is performed hierarchicallycod_oper - String Code operation. If null PM generates it automaticallytoken - String Authorization stringrealm - String Realm namecom.engiweb.toolkit.common.BackendExceptioncom.engiweb.pm.entity.BeanList<ApplicationBean> findApplication(ApplicationBean appBean, OrgUnitBean orgUnitBean, com.engiweb.pm.entity.Paging paging, java.lang.String token, java.lang.String realm) throws com.engiweb.toolkit.common.BackendException
appBean - ApplicationBean if null no filter is applied, otherwise the passed object is used as filterorgUnitBean - OrgUnitBean must be present and uniquely definedpaging - Pagingtoken - String Authorization stringrealm - String Realm nameBeanList of ApplicationBeancom.engiweb.toolkit.common.BackendExceptionvoid modifySOD(OrgUnitBean orgUnitBean, boolean enableSOD, boolean hier, java.lang.String token, java.lang.String realm) throws com.engiweb.toolkit.common.BackendException
orgUnitBean - OrgUnitBean if null the organization unit in the user scope is usedenableSOD - if true SOD is enabledhier - if true modify is performed hierarchicallytoken - String Authorization stringrealm - String Realm namecom.engiweb.toolkit.common.BackendExceptionvoid removeProperties(com.engiweb.pm.entity.BeanList<PropertyBean> blPropertyBean, OrgUnitBean orgUnitBean, java.lang.String token, java.lang.String realmAdm) throws com.engiweb.toolkit.common.BackendException
blPropertyBean - BeanList of PropertyBean to remove from application.orgUnitBean - OrgUnitBean must be present and uniquely definedtoken - String Authorization stringrealm - String Realm namecom.engiweb.toolkit.common.BackendExceptioncom.engiweb.pm.entity.BeanList<PropertyBean> findProperty(PropertyBean propertyBean, OrgUnitBean orgUnitBean, com.engiweb.pm.entity.Paging paging, java.lang.String token, java.lang.String realmAdm) throws com.engiweb.toolkit.common.BackendException
propertyBean - PropertyBean if null no filter is applied, otherwise the passed object is used as filterorgUnitBean - OrgUnitBean must be present and uniquely definedpaging - Pagingtoken - String Authorization stringrealm - String Realm nameBeanList of PropertyBeancom.engiweb.toolkit.common.BackendExceptionvoid addProperties(com.engiweb.pm.entity.BeanList<PropertyBean> blPropertyBean, OrgUnitBean orgUnitBean, java.lang.String token, java.lang.String realmAdm) throws com.engiweb.toolkit.common.BackendException
blPropertyBean - BeanList of PropertyBean to add to organization unitorgUnitBean - OrgUnitBean must be present and uniquely definedtoken - String Authorization stringrealm - String Realm namecom.engiweb.toolkit.common.BackendExceptioncom.engiweb.pm.entity.BeanList<EntitlementBean> findEntitlement(EntitlementBean entBean, ApplicationBean appBean, OrgUnitBean orgUnitBean, boolean hier, com.engiweb.pm.entity.Paging paging, java.lang.String token, java.lang.String realm) throws com.engiweb.toolkit.common.BackendException
entBean - EntitlementBean if null no filter is applied, otherwise the passed object is used as filterappBean - ApplicationBean if null no filter is applied, otherwise the passed object is used as filterorgUnitBean - OrgUnitBean must be present and uniquely definedhier - if true research is performed hierarchicallypaging - Pagingtoken - String Authorization stringrealm - String Realm nameBeanList of EntitlementBeancom.engiweb.toolkit.common.BackendExceptioncom.engiweb.pm.entity.BeanList<ApplicationBean> findApplicationByEntitlement(ApplicationBean appBean, EntitlementBean entBean, OrgUnitBean orgUnitBean, com.engiweb.pm.entity.Paging paging, java.lang.String token, java.lang.String realm) throws com.engiweb.toolkit.common.BackendException
appBean - ApplicationBean if null no filter is applied, otherwise the passed object is used as filterentBean - EntitlementBean if null no filter is applied, otherwise the passed object is used as filterorgUnitBean - OrgUnitBean must be present and uniquely definedpaging - Pagingtoken - String Authorization stringrealm - String Realm nameBeanList of ApplicationBeancom.engiweb.toolkit.common.BackendException