Class TeamAffinityDBViewBuilder
java.lang.Object
overit.geocallapp.wfm.core.ux.workorder.teamaffinity.operationAffinity.TeamAffinityDBViewBuilder
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddDataToDBView(Collection<BOWorkOrderTeamAffinity> teamAffinities, DBView dbv) Fill theDBViewwith the team affinitiesbuildDBView(Collection<BOWorkOrderTeamAffinity> teamAffinities) Build aDBViewwith the wo operation affinity of each teamgetResourceData(Long resourceId) Retrieve the team resource dataprotected DBViewInitialize theDBViewstructurevoidsetOperationCenter(Long operationCenter)
-
Field Details
-
userCache
-
daoUsers
-
operationCenter
-
-
Constructor Details
-
TeamAffinityDBViewBuilder
public TeamAffinityDBViewBuilder()
-
-
Method Details
-
setOperationCenter
-
buildDBView
public DBView buildDBView(Collection<BOWorkOrderTeamAffinity> teamAffinities) throws DAException, DAValidateException Build aDBViewwith the wo operation affinity of each team- Parameters:
teamAffinities- a list of affinitiesBOWorkOrderTeamAffinity- Returns:
- a
DBViewwith the affinity of each team - Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
initDBView
Initialize theDBViewstructure- Returns:
- an empty
DBView
-
addDataToDBView
protected void addDataToDBView(Collection<BOWorkOrderTeamAffinity> teamAffinities, DBView dbv) throws DAException, DAValidateException Fill theDBViewwith the team affinities- Parameters:
teamAffinities- a list of affinitiesBOWorkOrderTeamAffinitydbv- an emptyDBView- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
getResourceData
protected Map<String,Object> getResourceData(Long resourceId) throws DAException, DAValidateException Retrieve the team resource data- Parameters:
resourceId- the resource Id- Returns:
- a map with resource data
- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-