Class CopyParam
java.lang.Object
ch.colabproject.colab.api.model.project.CopyParam
- All Implemented Interfaces:
ColabEntity,WithDeletionStatus,WithPermission,WithTrackingData,WithWebsocketChannels,WithId,WithJsonDiscriminator,Serializable
Parameters to copy a project.
- Author:
- sandra
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CopyParambuildDefault(Project project) booleanGet the channels this entity shall be sent through.Get the deletion status :getId()get the project id.Get the condition required to read this entityGet the tracking dataGet the condition required to update this entityinthashCode()booleanbooleanbooleanvoidmergeToUpdate(ColabEntity other) Update this object according to values provided by other.voidsetDeletionStatus(DeletionStatus status) Set the deletion status :voidvoidsetProject(Project project) voidsetProjectId(Long id) set the project id.voidsetTrackingData(Tracking trackingData) Set the tracking datavoidsetWithDeliverables(boolean withDeliverables) voidsetWithResources(boolean withResources) voidsetWithRoles(boolean withRoles) toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface ch.colabproject.colab.api.model.ColabEntity
mergeToDuplicateMethods inherited from interface ch.colabproject.colab.generator.model.interfaces.WithJsonDiscriminator
getJsonDiscriminatorMethods inherited from interface ch.colabproject.colab.api.model.WithPermission
getCreateCondition, getDeleteConditionMethods inherited from interface ch.colabproject.colab.api.model.WithTrackingData
clearErasureTrackingData, setErasureTrackingData, touchMethods inherited from interface ch.colabproject.colab.api.model.WithWebsocketChannels
getIndexEntryPayload
-
Field Details
-
PARAM_SEQUENCE_NAME
parameters sequence name- See Also:
-
-
Constructor Details
-
CopyParam
public CopyParam()
-
-
Method Details
-
buildDefault
- Parameters:
project- the related project- Returns:
- Default instance for a copy param
-
getId
-
setId
- Parameters:
id- the copy parameter ID
-
getTrackingData
Description copied from interface:WithTrackingDataGet the tracking data- Specified by:
getTrackingDatain interfaceWithTrackingData- Returns:
- tracking data
-
setTrackingData
Description copied from interface:WithTrackingDataSet the tracking data- Specified by:
setTrackingDatain interfaceWithTrackingData- Parameters:
trackingData- new tracking data
-
getDeletionStatus
Description copied from interface:WithDeletionStatusGet the deletion status :Is it in a bin or ready to be definitely deleted.
Null means active.
- Specified by:
getDeletionStatusin interfaceWithDeletionStatus- Returns:
- null or a deletion status
-
setDeletionStatus
Description copied from interface:WithDeletionStatusSet the deletion status :Is it in a bin or ready to be definitely deleted.
Null means active.
- Specified by:
setDeletionStatusin interfaceWithDeletionStatus- 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
- Returns:
- the project it belongs to
-
setProject
- Parameters:
project- the project it belongs to
-
getProjectId
get the project id. To be sent to client- Returns:
- id of the project or null
-
setProjectId
set the project id. For serialization only- Parameters:
id- the id of the project
-
mergeToUpdate
Description copied from interface:ColabEntityUpdate this object according to values provided by other.This is used when an object is prepared to be updated in database.
- Specified by:
mergeToUpdatein interfaceColabEntity- Parameters:
other- object to take new values from- Throws:
ColabMergeException- if merging is not possible
-
getChannelsBuilder
Description copied from interface:WithWebsocketChannelsGet the channels this entity shall be sent through.- Specified by:
getChannelsBuilderin interfaceWithWebsocketChannels- Returns:
- list of channels
-
getReadCondition
Description copied from interface:WithPermissionGet the condition required to read this entity- Specified by:
getReadConditionin interfaceWithPermission- Returns:
- the condition
-
getUpdateCondition
Description copied from interface:WithPermissionGet the condition required to update this entity- Specified by:
getUpdateConditionin interfaceWithPermission- Returns:
- the condition
-
hashCode
public int hashCode() -
equals
-
toString
-