Class Project
java.lang.Object
org.onehippo.cms7.services.project.Project
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()
long
Deprecated.Returns the last modified timestamp of the project.getName()
Deprecated.UsegetStartRunningFrom()
insteadReturns the timestamp at which the project can start running.Returns the timestamp (unix epoch milliseconds) after which the project will no longer run.Deprecated.UsegetStopRunningAfter()
insteadboolean
isRunnableAt
(long timestampEpochMillis) Returnstrue
if this project can be used for rendering the project's items in a website at the given instant in time, returnsfalse
otherwise.void
setBusinessKey
(String businessKey) void
setDescription
(String description) void
setExternalId
(String externalId) void
void
setJsonReintegrationResult
(String jsonReintegrationResult) void
setJsonUpdateResult
(String jsonUpdateResult) void
setLastModificationDate
(long lastModificationDate) Deprecated.UsegetLastModifiedAt()
insteadvoid
setLastModifiedAt
(Calendar lastModifiedAt) Sets the last modified timestamp of the project.void
setLastModifiedBy
(String lastModifiedBy) void
setLocalizedState
(String localizedState) void
void
setProjectState
(ProjectState projectState) void
setStartRunningAt
(Long startRunningAt) Deprecated.UsesetStartRunningFrom(Calendar)
insteadvoid
setStartRunningFrom
(Calendar startRunningFrom) Sets the timestamp at which the project can start running.void
setStopRunningAfter
(Calendar stopRunningAfter) Sets the timestamp after which the project will no longer run.void
setStopRunningAt
(Long stopRunningAt) Deprecated.UsesetStopRunningAfter(Calendar)
()} insteadtoString()
-
Constructor Details
-
Project
public Project()
-
-
Method Details
-
getId
-
setId
-
getName
-
setName
-
getProjectState
-
setProjectState
-
getLocalizedState
-
setLocalizedState
-
getDescription
-
setDescription
-
getExternalId
-
setExternalId
-
getLastModifiedBy
-
setLastModifiedBy
-
setLastModificationDate
Deprecated.UsegetLastModifiedAt()
insteadSets the last modified timestamp (unix epoch milliseconds) of the project.- Parameters:
lastModificationDate
- unix epoch milliseconds of last project modification
-
getLastModificationDate
Deprecated.UsegetLastModifiedAt()
insteadReturns the last modified timestamp (unix epoch milliseconds) of the project.- Returns:
- the last modified timestamp (as unix epoch millis)
-
getLastModifiedAt
Returns the last modified timestamp of the project.- Returns:
- the last modified timestamp
-
setLastModifiedAt
Sets the last modified timestamp of the project.- Parameters:
lastModifiedAt
- timestamp of last project modification
-
getBusinessKey
-
setBusinessKey
-
getJsonReintegrationResult
-
setJsonReintegrationResult
-
getJsonUpdateResult
-
setJsonUpdateResult
-
getStartRunningAt
Deprecated.UsegetStartRunningFrom()
insteadReturns the timestamp (unix epoch milliseconds) at which the project can start running.- Returns:
- when the project can start running
-
getStartRunningFrom
Returns the timestamp at which the project can start running.- Returns:
- when the project can start running
-
setStartRunningAt
Deprecated.UsesetStartRunningFrom(Calendar)
insteadSets the timestamp (unix epoch milliseconds) at which the project can start running.- Parameters:
startRunningAt
- when the project can start running
-
setStartRunningFrom
Sets the timestamp at which the project can start running.- Parameters:
startRunningFrom
- when the project can start running
-
getStopRunningAt
Deprecated.UsegetStopRunningAfter()
insteadReturns the timestamp (unix epoch milliseconds) after which the project will no longer run.- Returns:
- when the project will no longer run
-
getStopRunningAfter
Returns the timestamp (unix epoch milliseconds) after which the project will no longer run.- Returns:
- when the project will no longer run
-
setStopRunningAt
Deprecated.UsesetStopRunningAfter(Calendar)
()} insteadSets the timestamp (unix epoch milliseconds) after which the project will no longer run.- Parameters:
stopRunningAt
- when the project will no longer run
-
setStopRunningAfter
Sets the timestamp after which the project will no longer run.- Parameters:
stopRunningAfter
- when the project will no longer run
-
isRunnableAt
public boolean isRunnableAt(long timestampEpochMillis) Returnstrue
if this project can be used for rendering the project's items in a website at the given instant in time, returnsfalse
otherwise. When a project starts running it's state transitions from APPROVED to START_RUNNING and then to RUNNING. This method does however NOT take the project state into account, so it should NOT be used for testing RUNNING eligibility. This is on purpose! The method can be used to test if a project is runnable at a certain point in time (either now, the future or the past). If you want to know if it is running NOW, then you should test the state.- Parameters:
timestampEpochMillis
- an instant in time- Returns:
- if the project is runnable.
-
toString
-
getLastModifiedAt()
instead