Class Solution

java.lang.Object
de.fraunhofer.iese.mydata.common.MyDataEntity
de.fraunhofer.iese.mydata.solution.Solution

@Entity public class Solution extends MyDataEntity
  • Constructor Details

    • Solution

      public Solution()
      required by JPA
    • Solution

      public Solution(SolutionId sid)
      Parameters:
      sid - : the solutionid for this solution. It can not be null.
  • Method Details

    • setSolutionId

      public void setSolutionId(SolutionId sid)
      Parameters:
      sid - : the solutionid for this solution. It can not be null.
    • setSolutionId

      public void setSolutionId(String urn)
      Parameters:
      urn - : the solutionid as a string for this solution. It can not be null.
    • getUsers

      public Set<User> getUsers()
      Returns:
      the list of users for the current solution
    • setUsers

      public void setUsers(Set<User> users)
      Parameters:
      users - : the list of users to be set to the current solution. It can not be null.
    • getPolicies

      public Set<Policy> getPolicies()
      Returns:
      the list of policies for the current solution
    • setPolicies

      public void setPolicies(Set<Policy> policies)
      Parameters:
      policies - : the list of policies to be set to the current solution. It can not be null.
    • getTimers

      public Set<Timer> getTimers()
      Returns:
      the list of timers for the current solution
    • setTimers

      public void setTimers(Set<Timer> timers)
      Parameters:
      timers - : the list of timers to be set to the current solution. It can not be null.
    • getPips

      public Set<PipComponentInformation> getPips()
      Returns:
      the list of PIPs for the current solution
    • setPips

      public void setPips(Set<PipComponentInformation> pips)
      Parameters:
      pips - : the list of PIPs to be set to the current solution. It can not be null.
    • getPeps

      public Set<PepComponentInformation> getPeps()
      Returns:
      the list of PEPs for the current solution
    • setPeps

      public void setPeps(Set<PepComponentInformation> peps)
      Parameters:
      peps - : the list of PEPs to be set to the current solution. It can not be null.
    • getPxps

      public Set<PxpComponentInformation> getPxps()
      Returns:
      the list of PXPs for the current solution
    • setPxps

      public void setPxps(Set<PxpComponentInformation> pxps)
      Parameters:
      pxps - : the list of PXPs to be set to the current solution. It can not be null.
    • getLockStatus

      public Boolean getLockStatus()
      Returns:
      true if solutions is locked, false otherwise
    • isSolutionLocked

      public Boolean isSolutionLocked()
      Returns:
      true if solution is locked, false otherwise
    • addPxpComponentInformation

      public void addPxpComponentInformation(PxpComponentInformation component)
      Parameters:
      component - : add a PXP to the current solution. It can not be null.
    • removePxpComponentInformation

      public void removePxpComponentInformation(PxpComponentInformation component)
      Parameters:
      component - : remove a PXP from the current solution. It can not be null.
    • addPepComponentInformation

      public void addPepComponentInformation(PepComponentInformation component)
      Parameters:
      component - : add a PEP to the current solution. It can not be null.
    • removePepComponentInformation

      public void removePepComponentInformation(PepComponentInformation component)
      Parameters:
      component - : remove a PEP from the current solution. It can not be null.
    • addPipComponentInformation

      public void addPipComponentInformation(PipComponentInformation component)
      Parameters:
      component - : add a PIP to the current solution. It can not be null.
    • removePipComponentInformation

      public void removePipComponentInformation(PipComponentInformation component)
      Parameters:
      component - : remove a PIP from the current solution. It can not be null.
    • addPolicy

      public void addPolicy(Policy p)
      Parameters:
      p - : add a Policy to the current solution. It can not be null.
    • removePolicy

      public void removePolicy(Policy p)
      Parameters:
      p - : remove a policy from the current solution. It can not be null.
    • addTimer

      public void addTimer(Timer t)
      Parameters:
      t - : add a timer to the current solution. It can not be null.
    • removeTimer

      public void removeTimer(Timer t)
      Parameters:
      t - : remove a timer from the current solution. It can not be null.
    • addUser

      public void addUser(User u)
      Parameters:
      u - : add an user to the current solution. It can not be null.
    • removeUser

      public void removeUser(User u)
      Parameters:
      u - : remove an user from the current solution. It can not be null.
    • getLibraryClients

      public Set<LibraryClient> getLibraryClients()
      Returns:
      the list of clients for the current solution
    • setLibraryClients

      public void setLibraryClients(Set<LibraryClient> libraryClients)
      Parameters:
      libraryClients - : the list of clients to be set to the current solution. It can not be null.
    • addLibraryClient

      public void addLibraryClient(LibraryClient libraryClient)
      Parameters:
      libraryClient - add a library cliuent to the this solution. It can not be null.
    • removeLibraryClient

      public void removeLibraryClient(LibraryClient libraryClient)
      Parameters:
      libraryClient - remove a library client from this solution. It can not be null.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object