Class CopyParam

    • Constructor Detail

      • CopyParam

        public CopyParam()
    • Method Detail

      • buildDefault

        public static CopyParam buildDefault​(Project project)
        Parameters:
        project - the related project
        Returns:
        Default instance for a copy param
      • getId

        public Long getId()
        Specified by:
        getId in interface WithId
        Returns:
        the copy parameter ID
      • setId

        public void setId​(Long id)
        Parameters:
        id - the copy parameter ID
      • setDeletionStatus

        public void setDeletionStatus​(DeletionStatus status)
        Description copied from interface: WithDeletionStatus
        Set the deletion status :

        Is it in a bin or ready to be definitely deleted.

        Null means active.

        Specified by:
        setDeletionStatus in interface WithDeletionStatus
        Parameters:
        status - null or a deletion status
      • isWithRoles

        public boolean isWithRoles()
        Returns:
        If the roles must also be copied
      • setWithRoles

        public void setWithRoles​(boolean withRoles)
        Parameters:
        withRoles - If the roles must also be copied
      • isWithDeliverables

        public boolean isWithDeliverables()
        Returns:
        If the deliverables must also be copied
      • setWithDeliverables

        public void setWithDeliverables​(boolean withDeliverables)
        Parameters:
        withDeliverables - If the deliverables must also be copied
      • isWithResources

        public boolean isWithResources()
        Returns:
        If the resources must also be copied
      • setWithResources

        public void setWithResources​(boolean withResources)
        Parameters:
        withResources - If the resources must also be copied
      • getProject

        public Project getProject()
        Returns:
        the project it belongs to
      • setProject

        public void setProject​(Project project)
        Parameters:
        project - the project it belongs to
      • getProjectId

        public Long getProjectId()
        get the project id. To be sent to client
        Returns:
        id of the project or null
      • setProjectId

        public void setProjectId​(Long id)
        set the project id. For serialization only
        Parameters:
        id - the id of the project
      • mergeToUpdate

        public void mergeToUpdate​(ColabEntity other)
                           throws ColabMergeException
        Description copied from interface: ColabEntity
        Update this object according to values provided by other.

        This is used when an object is prepared to be updated in database.

        Specified by:
        mergeToUpdate in interface ColabEntity
        Parameters:
        other - object to take new values from
        Throws:
        ColabMergeException - if merging is not possible
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object