public final class OrgStructureHelper extends Object
Modifier and Type | Method and Description |
---|---|
static OrgStructModule |
getOrgStructModuleInProcessModel(String moduleName,
com.whitestein.lsps.model.ProcessModel processModel)
Searches for
organizational structure module
(identified by given moduleName ) that is expected to exist in
given processModel or in one of its imported
modules, and returns OrgStructModule instance found or null if
there is no such module. |
static RoleUnit |
getRoleUnitInProcessModel(RoleUnitName roleUnitName,
com.whitestein.lsps.model.ProcessModel processModel)
Returns
role or organization unit for given
role or organization unit name within given
processModel . |
static Set<RoleUnitName> |
resolveRoleNamesFor(RoleUnitName roleUnitName,
ParametricRolesResolver resolver,
com.whitestein.lsps.model.ProcessModel processModel)
Resolves role names from given role or organization unit name using given
resolver within given processModel and
returns the resolved set of role names. |
static Set<RoleUnitName> |
resolveRoleNamesFor(Set<RoleUnitName> roleUnitNames,
ParametricRolesResolver resolver,
com.whitestein.lsps.model.ProcessModel processModel)
Resolves role names from given set of role and/or organization unit
names using given
resolver within given
processModel and returns the resolved set of role
names. |
static Set<RoleUnitName> |
resolveRoleNamesFor(Set<RoleUnitName> roleUnitNames,
com.whitestein.lsps.model.ProcessModel processModel)
Resolves role names from given set of role and/or organization unit
names using
default resolver within
given processModel and returns the resolved set of
role names. |
public static Set<RoleUnitName> resolveRoleNamesFor(Set<RoleUnitName> roleUnitNames, com.whitestein.lsps.model.ProcessModel processModel)
default resolver
within
given processModel
and returns the resolved set of
role names.roleUnitNames
- The set of role and/or organization unit names.processModel
- The model element representing the whole process model.public static Set<RoleUnitName> resolveRoleNamesFor(Set<RoleUnitName> roleUnitNames, ParametricRolesResolver resolver, com.whitestein.lsps.model.ProcessModel processModel)
resolver
within given
processModel
and returns the resolved set of role
names.roleUnitNames
- The set of role and/or organization unit names.resolver
- The roles resolver used to resolve roles and/or organization
units to roles only.processModel
- The model element representing the whole process model.public static Set<RoleUnitName> resolveRoleNamesFor(RoleUnitName roleUnitName, ParametricRolesResolver resolver, com.whitestein.lsps.model.ProcessModel processModel)
resolver
within given processModel
and
returns the resolved set of role names.roleUnitName
- The name of a role or an organization unit.resolver
- The roles resolver used to resolve roles and/or organization
units to roles only.processModel
- The model element representing the whole process model.public static RoleUnit getRoleUnitInProcessModel(RoleUnitName roleUnitName, com.whitestein.lsps.model.ProcessModel processModel)
role or organization unit
for given
role or organization unit name
within given
processModel
.roleUnitName
- The name of a role or an organization unit.processModel
- The model element representing the whole process model.processModel
or null
if there
is no such role or organization unit.public static OrgStructModule getOrgStructModuleInProcessModel(String moduleName, com.whitestein.lsps.model.ProcessModel processModel)
organizational structure module
(identified by given moduleName
) that is expected to exist in
given processModel
or in one of its imported
modules, and returns OrgStructModule
instance found or null
if
there is no such module.moduleName
- The name of the organizational structure module element.processModel
- The model element representing the whole process model.OrgStructModule
instance found or null
if there is
no such module.Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.