Class GoalImpl
java.lang.Object
pw.chew.clickup4j.internal.entities.GoalImpl
- All Implemented Interfaces:
Goal
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NotNull ClickUp4j
Returns thisClickUp4j
instance.@NotNull Color
getColor()
Returns the color of this Goal, as used in the client as a background color.@NotNull String
The ID of the creator of this goal.@NotNull OffsetDateTime
Returns the date this goal was created.@NotNull OffsetDateTime
Returns when this goal was last updated.@NotNull String
Returns the description of this goal.@Nullable OffsetDateTime
Returns the due date of this goal.@NotNull String
Returns the token used to edit this goal.@NotNull List<TimelineEntry>
Returns the history for this goal.@NotNull UUID
getId()
The unique identifier for this goal.@NotNull String
getName()
The name of this goal.Returns a potentially empty-list of "owners" of this goal.float
Returns the current progress of this goal.@NotNull String
Returns the "pretty" ID of this goal.@NotNull String
Returns the pretty URL of this goal.@Nullable OffsetDateTime
Returns the start date of this goal.int
Returns the target count.Returns all the targets in this goal.@NotNull String
The ID of the workspace this goal is in.boolean
Whether this goal is archived, meaning it is no longer visible to users.boolean
Whether this goal can have multiple owners.boolean
Whether this goal is private, meaning users must be invited to view it.
-
Constructor Details
-
GoalImpl
-
-
Method Details
-
getId
Description copied from interface:Goal
The unique identifier for this goal. -
getPrettyId
Description copied from interface:Goal
Returns the "pretty" ID of this goal.
This is the ID displayed in the client, and appears to be incremental.- Specified by:
getPrettyId
in interfaceGoal
- Returns:
- never-null String of the "pretty" ID of this goal.
-
getName
Description copied from interface:Goal
The name of this goal. -
getWorkspaceId
Description copied from interface:Goal
The ID of the workspace this goal is in.- Specified by:
getWorkspaceId
in interfaceGoal
- Returns:
- never-null ID of the workspace this goal is in.
-
getCreatorId
Description copied from interface:Goal
The ID of the creator of this goal.- Specified by:
getCreatorId
in interfaceGoal
- Returns:
- never-null ID of the creator of this goal.
-
getColor
Description copied from interface:Goal
Returns the color of this Goal, as used in the client as a background color. -
getDateCreated
Description copied from interface:Goal
Returns the date this goal was created.- Specified by:
getDateCreated
in interfaceGoal
- Returns:
- never-null OffsetDateTime of the date this goal was created.
-
getStartDate
Description copied from interface:Goal
Returns the start date of this goal. It may be null if a goal does not have a start date.- Specified by:
getStartDate
in interfaceGoal
- Returns:
- nullable OffsetDateTime of the start date of this goal.
-
getDueDate
Description copied from interface:Goal
Returns the due date of this goal. It may be null if a goal does not have a due date.- Specified by:
getDueDate
in interfaceGoal
- Returns:
- nullable OffsetDateTime of the due date of this goal.
-
getDescription
Description copied from interface:Goal
Returns the description of this goal.- Specified by:
getDescription
in interfaceGoal
- Returns:
- never-null String of the description of this goal.
-
isPrivate
public boolean isPrivate()Description copied from interface:Goal
Whether this goal is private, meaning users must be invited to view it. -
isArchived
public boolean isArchived()Description copied from interface:Goal
Whether this goal is archived, meaning it is no longer visible to users.- Specified by:
isArchived
in interfaceGoal
- Returns:
- true if this goal is archived, false otherwise.
-
isMultipleOwners
public boolean isMultipleOwners()Description copied from interface:Goal
Whether this goal can have multiple owners.- Specified by:
isMultipleOwners
in interfaceGoal
- Returns:
- true if this goal can have multiple owners, false otherwise.
-
getEditorToken
Description copied from interface:Goal
Returns the token used to edit this goal.- Specified by:
getEditorToken
in interfaceGoal
- Returns:
- never-null String of the token used to edit this goal.
-
getDateUpdated
Description copied from interface:Goal
Returns when this goal was last updated.- Specified by:
getDateUpdated
in interfaceGoal
- Returns:
- never-null OffsetDateTime of when this goal was last updated.
-
getOwners
Description copied from interface:Goal
Returns 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:Goal
Returns all the targets in this goal.
This might be an empty list.- Specified by:
getTargets
in interfaceGoal
- Returns:
- never-null List of the targets in this goal.
-
getTargetCount
public int getTargetCount()Description copied from interface:Goal
Returns the target count.
In theory, this is equal to targets.size(), but it is not guaranteed to be.- Specified by:
getTargetCount
in interfaceGoal
- Returns:
- int of the target count.
-
getPercentCompleted
public float getPercentCompleted()Description copied from interface:Goal
Returns the current progress of this goal.- Specified by:
getPercentCompleted
in interfaceGoal
- Returns:
- never-null Progress of this goal.
-
getHistory
Description copied from interface:Goal
Returns the history for this goal.
This contains created or changedtargets
.- Specified by:
getHistory
in interfaceGoal
- Returns:
- never-null List of the history for this goal.
-
getPrettyUrl
Description copied from interface:Goal
Returns the pretty URL of this goal.
This is equal to"https://app.clickup.com/
workspaceId
/goals/
prettyId
.- Specified by:
getPrettyUrl
in interfaceGoal
- Returns:
- never-null String of the pretty URL of this goal.
-
getClickUp4j
Description copied from interface:Goal
Returns thisClickUp4j
instance.- Specified by:
getClickUp4j
in interfaceGoal
- Returns:
- never-null ClickUp4j instance.
-