Class TimedIdcContext
java.lang.Object
oracle.stellent.ridc.convenience.usersecurity.impl.TimedIdcContext
Holds user-specific valid IdcContext and checks for its validity based on UCM session.
If the IdcContext has timed out then facilitates with creating a new one.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTimedIdcContext(IdcContext idcContext, IdcClient<?, ?, ?> idcClient) Constructor to initialize TimedIdcContext. -
Method Summary
Modifier and TypeMethodDescriptionGet the user-specific IdcContext.Whether the IdcContext has expired based on UCM session.Whether time interval lapsed to check for the IdcContext validity.voidrefresh()Refresh the IdcContext.voidsetLastUsedTime(long currentTime) Set the last used time with current.
-
Field Details
-
m_log
Logger
-
-
Constructor Details
-
TimedIdcContext
Constructor to initialize TimedIdcContext.- Parameters:
idcContext- IdcContextidcClient- IdcClient
-
-
Method Details
-
getIdcContext
Get the user-specific IdcContext.- Returns:
- IdcContext
-
isTimeToCheck
Whether time interval lapsed to check for the IdcContext validity.- Returns:
- IdcContext validity check should be performed
-
hasContextExpired
Whether the IdcContext has expired based on UCM session.- Returns:
- IdcContext validity has expired or not
-
refresh
public void refresh()Refresh the IdcContext. -
setLastUsedTime
public void setLastUsedTime(long currentTime) Set the last used time with current.- Parameters:
currentTime- current time
-