Class Affiliation
java.lang.Object
de.fraunhofer.iese.mydata.common.MyDataEntity
de.fraunhofer.iese.mydata.affiliation.Affiliation
- 
Constructor SummaryConstructorsConstructorDescriptionDefault constructor for JPAAffiliation(AffiliationId affId) assign an affiliationId to the current affiliation
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddSolution(@NonNull Solution solution) needed for JPA/Hibernate a solution, if not null, is added to the current list of solutions for this affiliationvoidneeded for JPA/Hibernate a user, if not null, is added to the current list of users for this affiliationbooleanbooleanneeded for JPA/Hibernate if the solutions set is null, a new set is initializedgetUsers()needed for JPA/Hibernate if the users set is null, a new set is initializedinthashCode()voidremoveSolution(@NonNull Solution solution) needed for JPA/Hibernate a solution, if not null, is removed from the current list of solutions for this affiliationvoidremoveUser(@NonNull User user) needed for JPA/Hibernate a user, if not null, is removed from the current list of users for this affiliationvoidsetLockStatus(Boolean lo) voidsetSolutions(@NonNull Set<Solution> solutions) needed for JPA/Hibernate if the solutions set is null, a new set is initialized, else, it re-uses the previous object then updates the current list (set) of solutions for this affiliationvoidneeded for JPA/Hibernate if the users set is null, a new set is initialized, else, it re-uses the previous object then updates the current list (set) of users for this affiliationMethods inherited from class de.fraunhofer.iese.mydata.common.MyDataEntityfromJson, getGson, getGson, toJson, toString, validate, validateAndNullCheck
- 
Constructor Details- 
Affiliationpublic Affiliation()Default constructor for JPA
- 
Affiliationassign an affiliationId to the current affiliation- Parameters:
- affId-
 
 
- 
- 
Method Details- 
getLockStatuspublic boolean getLockStatus()- Returns:
- true if the affiliation is locked, false if still ok
 
- 
setLockStatus- Parameters:
- lo- : lock or unlock the current affiliation
 
- 
addSolutionneeded for JPA/Hibernate a solution, if not null, is added to the current list of solutions for this affiliation- Parameters:
- solution-
 
- 
removeSolutionneeded for JPA/Hibernate a solution, if not null, is removed from the current list of solutions for this affiliation- Parameters:
- solution-
 
- 
equals
- 
hashCodepublic int hashCode()
- 
getSolutionsneeded for JPA/Hibernate if the solutions set is null, a new set is initialized- Returns:
- the current list (set) of solutions for this affiliation
 
- 
getUsersneeded for JPA/Hibernate if the users set is null, a new set is initialized- Returns:
- the current list (set) of users for this affiliation
 
- 
setSolutionsneeded for JPA/Hibernate if the solutions set is null, a new set is initialized, else, it re-uses the previous object then updates the current list (set) of solutions for this affiliation- Parameters:
- solutions- the new list(set) of solutions for this affiliation
 
- 
setUsersneeded for JPA/Hibernate if the users set is null, a new set is initialized, else, it re-uses the previous object then updates the current list (set) of users for this affiliation- Parameters:
- users- the new list(set) of users for this affiliation
 
- 
addUserneeded for JPA/Hibernate a user, if not null, is added to the current list of users for this affiliation- Parameters:
- user-
 
- 
removeUserneeded for JPA/Hibernate a user, if not null, is removed from the current list of users for this affiliation- Parameters:
- user-
 
 
-