Package lumis.portal.analytics.journey
Class Journey
- java.lang.Object
-
- lumis.portal.analytics.journey.Journey
-
- All Implemented Interfaces:
Cloneable
,ITimeoutAwareJourneyElement
,ICacheEntry
,ICloneableCacheEntry
public class Journey extends Object implements ICloneableCacheEntry, ITimeoutAwareJourneyElement
Represents a user journey.- Since:
- 12.2.0
- Version:
- $Revision: 23535 $ $Date: 2020-01-14 13:18:39 -0300 (Tue, 14 Jan 2020) $
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JourneyStage
addStage(String name, int position, boolean isJourneyStart, boolean journeyEnd, boolean createUserSegmentation, TimeUnit timeoutUnit, int timeoutAmount)
Adds a stage in this journey.Object
clone()
String
getId()
Returns the id.String
getName()
Returns the name.String
getServiceInstanceId()
Returns the serviceInstanceId.Collection<JourneyStage>
getStages()
Returns the stages.int
getTimeoutAmount()
Returns the timeoutAmount.TimeUnit
getTimeoutUnit()
Returns the timeoutUnit.void
setName(String name)
Sets the name.void
setTimeoutAmount(int timeoutAmount)
Sets the timeoutAmount.void
setTimeoutUnit(TimeUnit timeoutUnit)
Sets the timeoutUnit.-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface lumis.portal.analytics.journey.ITimeoutAwareJourneyElement
getTimeoutMillis
-
-
-
-
Method Detail
-
getServiceInstanceId
public String getServiceInstanceId()
Returns the serviceInstanceId.- Returns:
- the serviceInstanceId
- Since:
- 12.2.0
-
getName
public String getName()
Returns the name.- Returns:
- the name
- Since:
- 12.2.0
-
setName
public void setName(String name)
Sets the name.- Parameters:
name
- the name value to set.- Since:
- 12.2.0
-
getId
public String getId()
Returns the id.- Returns:
- the id
- Since:
- 12.2.0
-
getTimeoutUnit
public TimeUnit getTimeoutUnit()
Description copied from interface:ITimeoutAwareJourneyElement
Returns the timeoutUnit.- Specified by:
getTimeoutUnit
in interfaceITimeoutAwareJourneyElement
- Returns:
- the timeoutUnit
-
setTimeoutUnit
public void setTimeoutUnit(TimeUnit timeoutUnit)
Description copied from interface:ITimeoutAwareJourneyElement
Sets the timeoutUnit.- Specified by:
setTimeoutUnit
in interfaceITimeoutAwareJourneyElement
- Parameters:
timeoutUnit
- the timeoutUnit value to set.
-
getTimeoutAmount
public int getTimeoutAmount()
Description copied from interface:ITimeoutAwareJourneyElement
Returns the timeoutAmount.- Specified by:
getTimeoutAmount
in interfaceITimeoutAwareJourneyElement
- Returns:
- the timeoutAmount
-
setTimeoutAmount
public void setTimeoutAmount(int timeoutAmount)
Description copied from interface:ITimeoutAwareJourneyElement
Sets the timeoutAmount.- Specified by:
setTimeoutAmount
in interfaceITimeoutAwareJourneyElement
- Parameters:
timeoutAmount
- the timeoutAmount value to set.
-
addStage
public JourneyStage addStage(String name, int position, boolean isJourneyStart, boolean journeyEnd, boolean createUserSegmentation, TimeUnit timeoutUnit, int timeoutAmount) throws PortalException
Adds a stage in this journey.- Parameters:
name
- the stage name.position
- the stage position.isJourneyStart
- indicates whether the stage is a journey start.journeyEnd
- indicates whether the stage is a journey end.createUserSegmentation
- indicates whether a user segmentation should be created for this stage.timeoutUnit
- the timeout unittimeoutAmount
- the timeout amount- Returns:
- the created stage.
- Throws:
PortalException
- Since:
- 12.2.0
-
getStages
public Collection<JourneyStage> getStages() throws PortalException
Returns the stages.- Returns:
- the stages
- Throws:
PortalException
- Since:
- 12.2.0
-
clone
public Object clone() throws CloneNotSupportedException
- Specified by:
clone
in interfaceICloneableCacheEntry
- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
-
-