Class TrsServiceControl
- java.lang.Object
-
- com.sodius.oslc.server.trs.services.TrsServiceControl
-
public class TrsServiceControl extends Object
Encapsulates control variables for a Base and ChangeLog computation.- Since:
- 1.10.0
-
-
Constructor Summary
Constructors Constructor Description TrsServiceControl(URI domain)Constructs an instance specifying the underlying TRS domain URI.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChangeEventSeedgetBaseCutoffEvent()Gets the base cut-off event.DategetBaseUpdate()Gets the date of the last base update.DategetChangeLogUpdate()Gets the date of the last change log update.URIgetDomain()Gets the underlying TRS feed domain that this instance controls.longgetLastBaseMemberId()Gets the last base member id.StringgetLastBuilderUser()Gets the last TRS functional user to perform a rebuild.intgetLastEventOrder()Gets the last order of change log's events.booleanisBaseComputed()Determines whether the base has been computed or not.voidsetBaseCutoffEvent(ChangeEventSeed baseCutoffEvent)Sets the base cut-off event.voidsetBaseUpdate(Date baseUpdate)Sets the date of the last base update.voidsetChangeLogUpdate(Date changeLogUpdate)Sets the date of the last change log update.voidsetLastBaseMemberId(long id)Sets the last base member id.voidsetLastBuilderUser(String lastBuilderUser)Sets the last TRS functional user to perform a rebuild.voidsetLastEventOrder(int lastEventOrder)Sets the last order of change log's events.
-
-
-
Constructor Detail
-
TrsServiceControl
public TrsServiceControl(URI domain)
Constructs an instance specifying the underlying TRS domain URI.- Parameters:
domain- underlying TRS domain URI.
-
-
Method Detail
-
isBaseComputed
public boolean isBaseComputed()
Determines whether the base has been computed or not.- Returns:
trueif base has been computed;falseotherwise.
-
getDomain
public URI getDomain()
Gets the underlying TRS feed domain that this instance controls.- Returns:
- underlying TRS feed domain that this instance controls.
-
getBaseUpdate
public Date getBaseUpdate()
Gets the date of the last base update.- Returns:
- the date of the last base update.
-
setBaseUpdate
public void setBaseUpdate(Date baseUpdate)
Sets the date of the last base update.- Parameters:
baseUpdate- the date of the last base update.
-
getBaseCutoffEvent
public ChangeEventSeed getBaseCutoffEvent()
Gets the base cut-off event.- Returns:
- the base cut-off event.
-
setBaseCutoffEvent
public void setBaseCutoffEvent(ChangeEventSeed baseCutoffEvent)
Sets the base cut-off event.- Parameters:
baseCutoffEvent- base cut-off event.
-
getLastBaseMemberId
public long getLastBaseMemberId()
Gets the last base member id.- Returns:
- last base member id.
-
setLastBaseMemberId
public void setLastBaseMemberId(long id)
Sets the last base member id.- Parameters:
id- last base member id.
-
getChangeLogUpdate
public Date getChangeLogUpdate()
Gets the date of the last change log update.- Returns:
- the date of the last change log update.
-
setChangeLogUpdate
public void setChangeLogUpdate(Date changeLogUpdate)
Sets the date of the last change log update.- Parameters:
changeLogUpdate- the date of the last change log update.
-
getLastEventOrder
public int getLastEventOrder()
Gets the last order of change log's events.- Returns:
- the last order of change log's events.
-
setLastEventOrder
public void setLastEventOrder(int lastEventOrder)
Sets the last order of change log's events.- Parameters:
lastEventOrder- the last order of the change log's events.
-
getLastBuilderUser
public String getLastBuilderUser()
Gets the last TRS functional user to perform a rebuild.- Returns:
- the last TRS functional user to perform a rebuild
-
setLastBuilderUser
public void setLastBuilderUser(String lastBuilderUser)
Sets the last TRS functional user to perform a rebuild.- Parameters:
lastBuilderUser- the last TRS functional user to perform a rebuild.
-
-