Class PartyRelationshipLogic
java.lang.Object
com.echothree.util.server.control.BaseLogic
com.echothree.model.control.party.server.logic.PartyRelationshipLogic
-
Method Summary
Modifier and TypeMethodDescriptionaddEmployeeToCompany
(ExecutionErrorAccumulator eea, Party companyParty, Party employeeParty, BasePK createdBy) addEmployeeToDepartment
(ExecutionErrorAccumulator eea, Party departmentParty, Party employeeParty, BasePK createdBy) addEmployeeToDivision
(ExecutionErrorAccumulator eea, Party divisionParty, Party employeeParty, BasePK createdBy) createPartyRelationship
(ExecutionErrorAccumulator eea, PartyRelationshipType partyRelationshipType, Party fromParty, RoleType fromRoleType, Party toParty, RoleType toRoleType, BasePK createdBy) void
deletePartyRelationship
(ExecutionErrorAccumulator eea, PartyRelationshipType partyRelationshipType, Party fromParty, RoleType fromRoleType, Party toParty, RoleType toRoleType, BasePK deletedBy) static PartyRelationshipLogic
getPartyRelationshipTypeByName
(ExecutionErrorAccumulator eea, String partyRelationshipTypeName) getRoleTypeByName
(ExecutionErrorAccumulator eea, String roleTypeName) boolean
isEmployeeOfCompany
(ExecutionErrorAccumulator eea, Party company, Party employee) boolean
isEmployeeOfDepartment
(ExecutionErrorAccumulator eea, Party department, Party employee) boolean
isEmployeeOfDivision
(ExecutionErrorAccumulator eea, Party division, Party employee) void
removeEmployeeFromCompany
(ExecutionErrorAccumulator eea, Party companyParty, Party employeeParty, BasePK deletedBy) void
removeEmployeeFromCompanysDivisions
(ExecutionErrorAccumulator eea, Party companyParty, Party employeeParty, BasePK deletedBy) void
removeEmployeeFromDepartment
(ExecutionErrorAccumulator eea, Party departmentParty, Party employeeParty, BasePK deletedBy) void
removeEmployeeFromDivision
(ExecutionErrorAccumulator eea, Party divisionParty, Party employeeParty, BasePK deletedBy) void
removeEmployeeFromDivisionsDepartments
(ExecutionErrorAccumulator eea, Party divisionParty, Party employeeParty, BasePK deletedBy) Methods inherited from class com.echothree.util.server.control.BaseLogic
addExecutionError, addSecurityMessage, getEntityInstanceByBaseEntity, getEntityInstanceByBasePK, getSession, handleExecutionError, handleSecurityMessage, hasExecutionErrors
-
Method Details
-
getInstance
-
getPartyRelationshipTypeByName
public PartyRelationshipType getPartyRelationshipTypeByName(ExecutionErrorAccumulator eea, String partyRelationshipTypeName) -
getRoleTypeByName
-
createPartyRelationship
public PartyRelationship createPartyRelationship(ExecutionErrorAccumulator eea, PartyRelationshipType partyRelationshipType, Party fromParty, RoleType fromRoleType, Party toParty, RoleType toRoleType, BasePK createdBy) -
deletePartyRelationship
public void deletePartyRelationship(ExecutionErrorAccumulator eea, PartyRelationshipType partyRelationshipType, Party fromParty, RoleType fromRoleType, Party toParty, RoleType toRoleType, BasePK deletedBy) -
isEmployeeOfCompany
-
addEmployeeToCompany
public PartyRelationship addEmployeeToCompany(ExecutionErrorAccumulator eea, Party companyParty, Party employeeParty, BasePK createdBy) -
removeEmployeeFromCompany
public void removeEmployeeFromCompany(ExecutionErrorAccumulator eea, Party companyParty, Party employeeParty, BasePK deletedBy) -
isEmployeeOfDivision
-
addEmployeeToDivision
public PartyRelationship addEmployeeToDivision(ExecutionErrorAccumulator eea, Party divisionParty, Party employeeParty, BasePK createdBy) -
removeEmployeeFromCompanysDivisions
public void removeEmployeeFromCompanysDivisions(ExecutionErrorAccumulator eea, Party companyParty, Party employeeParty, BasePK deletedBy) -
removeEmployeeFromDivision
public void removeEmployeeFromDivision(ExecutionErrorAccumulator eea, Party divisionParty, Party employeeParty, BasePK deletedBy) -
isEmployeeOfDepartment
public boolean isEmployeeOfDepartment(ExecutionErrorAccumulator eea, Party department, Party employee) -
addEmployeeToDepartment
public PartyRelationship addEmployeeToDepartment(ExecutionErrorAccumulator eea, Party departmentParty, Party employeeParty, BasePK createdBy) -
removeEmployeeFromDivisionsDepartments
public void removeEmployeeFromDivisionsDepartments(ExecutionErrorAccumulator eea, Party divisionParty, Party employeeParty, BasePK deletedBy) -
removeEmployeeFromDepartment
public void removeEmployeeFromDepartment(ExecutionErrorAccumulator eea, Party departmentParty, Party employeeParty, BasePK deletedBy)
-