Class GoalImpl
java.lang.Object
pw.chew.clickup4j.internal.entities.GoalImpl
- All Implemented Interfaces:
 Goal
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescription@NotNull ClickUp4jReturns thisClickUp4jinstance.@NotNull ColorgetColor()Returns the color of this Goal, as used in the client as a background color.@NotNull StringThe ID of the creator of this goal.@NotNull OffsetDateTimeReturns the date this goal was created.@NotNull OffsetDateTimeReturns when this goal was last updated.@NotNull StringReturns the description of this goal.@Nullable OffsetDateTimeReturns the due date of this goal.@NotNull StringReturns the token used to edit this goal.@NotNull List<TimelineEntry>Returns the history for this goal.@NotNull UUIDgetId()The unique identifier for this goal.@NotNull StringgetName()The name of this goal.Returns a potentially empty-list of "owners" of this goal.floatReturns the current progress of this goal.@NotNull StringReturns the "pretty" ID of this goal.@NotNull StringReturns the pretty URL of this goal.@Nullable OffsetDateTimeReturns the start date of this goal.intReturns the target count.Returns all the targets in this goal.@NotNull StringThe ID of the workspace this goal is in.booleanWhether this goal is archived, meaning it is no longer visible to users.booleanWhether this goal can have multiple owners.booleanWhether this goal is private, meaning users must be invited to view it. 
- 
Constructor Details
- 
GoalImpl
 
 - 
 - 
Method Details
- 
getId
Description copied from interface:GoalThe unique identifier for this goal. - 
getPrettyId
Description copied from interface:GoalReturns the "pretty" ID of this goal.
This is the ID displayed in the client, and appears to be incremental.- Specified by:
 getPrettyIdin interfaceGoal- Returns:
 - never-null String of the "pretty" ID of this goal.
 
 - 
getName
Description copied from interface:GoalThe name of this goal. - 
getWorkspaceId
Description copied from interface:GoalThe ID of the workspace this goal is in.- Specified by:
 getWorkspaceIdin interfaceGoal- Returns:
 - never-null ID of the workspace this goal is in.
 
 - 
getCreatorId
Description copied from interface:GoalThe ID of the creator of this goal.- Specified by:
 getCreatorIdin interfaceGoal- Returns:
 - never-null ID of the creator of this goal.
 
 - 
getColor
Description copied from interface:GoalReturns the color of this Goal, as used in the client as a background color. - 
getDateCreated
Description copied from interface:GoalReturns the date this goal was created.- Specified by:
 getDateCreatedin interfaceGoal- Returns:
 - never-null OffsetDateTime of the date this goal was created.
 
 - 
getStartDate
Description copied from interface:GoalReturns the start date of this goal. It may be null if a goal does not have a start date.- Specified by:
 getStartDatein interfaceGoal- Returns:
 - nullable OffsetDateTime of the start date of this goal.
 
 - 
getDueDate
Description copied from interface:GoalReturns the due date of this goal. It may be null if a goal does not have a due date.- Specified by:
 getDueDatein interfaceGoal- Returns:
 - nullable OffsetDateTime of the due date of this goal.
 
 - 
getDescription
Description copied from interface:GoalReturns the description of this goal.- Specified by:
 getDescriptionin interfaceGoal- Returns:
 - never-null String of the description of this goal.
 
 - 
isPrivate
public boolean isPrivate()Description copied from interface:GoalWhether this goal is private, meaning users must be invited to view it. - 
isArchived
public boolean isArchived()Description copied from interface:GoalWhether this goal is archived, meaning it is no longer visible to users.- Specified by:
 isArchivedin interfaceGoal- Returns:
 - true if this goal is archived, false otherwise.
 
 - 
isMultipleOwners
public boolean isMultipleOwners()Description copied from interface:GoalWhether this goal can have multiple owners.- Specified by:
 isMultipleOwnersin interfaceGoal- Returns:
 - true if this goal can have multiple owners, false otherwise.
 
 - 
getEditorToken
Description copied from interface:GoalReturns the token used to edit this goal.- Specified by:
 getEditorTokenin interfaceGoal- Returns:
 - never-null String of the token used to edit this goal.
 
 - 
getDateUpdated
Description copied from interface:GoalReturns when this goal was last updated.- Specified by:
 getDateUpdatedin interfaceGoal- Returns:
 - never-null OffsetDateTime of when this goal was last updated.
 
 - 
getOwners
Description copied from interface:GoalReturns a potentially empty-list of "owners" of this goal.
IfGoal.isMultipleOwners()is false, this will be a list of at most one element. - 
getTargets
Description copied from interface:GoalReturns all the targets in this goal.
This might be an empty list.- Specified by:
 getTargetsin interfaceGoal- Returns:
 - never-null List of the targets in this goal.
 
 - 
getTargetCount
public int getTargetCount()Description copied from interface:GoalReturns the target count.
In theory, this is equal to targets.size(), but it is not guaranteed to be.- Specified by:
 getTargetCountin interfaceGoal- Returns:
 - int of the target count.
 
 - 
getPercentCompleted
public float getPercentCompleted()Description copied from interface:GoalReturns the current progress of this goal.- Specified by:
 getPercentCompletedin interfaceGoal- Returns:
 - never-null Progress of this goal.
 
 - 
getHistory
Description copied from interface:GoalReturns the history for this goal.
This contains created or changedtargets.- Specified by:
 getHistoryin interfaceGoal- Returns:
 - never-null List of the history for this goal.
 
 - 
getPrettyUrl
Description copied from interface:GoalReturns the pretty URL of this goal.
This is equal to"https://app.clickup.com/workspaceId/goals/prettyId.- Specified by:
 getPrettyUrlin interfaceGoal- Returns:
 - never-null String of the pretty URL of this goal.
 
 - 
getClickUp4j
Description copied from interface:GoalReturns thisClickUp4jinstance.- Specified by:
 getClickUp4jin interfaceGoal- Returns:
 - never-null ClickUp4j instance.
 
 
 -