Package overit.geocall.rs
Class MicroSession
java.lang.Object
overit.geocall.rs.MicroSession
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected longprotected Stringprotected Identityprotected static RootCaller -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()static MicroSessionRetrieves a MicroSession with the specified ID.static MicroSessionRetrieves a MicroSession with the specified ID.longgetId()longstatic MicroSessionstatic MicroSessionprotected static longnewExpiration(Identity identity) voidrefresh()voidrefresh(long newExpiration)
-
Field Details
-
identity
-
expiration
protected long expiration -
id
-
rc
-
-
Constructor Details
-
MicroSession
-
-
Method Details
-
newExpiration
-
issue
- Throws:
DAExceptionDAValidateException
-
issue
public static MicroSession issue(String id, Identity identity, long expiration) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
get
Retrieves a MicroSession with the specified ID.- Parameters:
id- The ID of the MicroSession to retrieve- Returns:
- The MicroSession object with the specified ID, or null if not found
- Throws:
DAValidateException- If an error occurs during data validationDAException- If an error occurs during the data access phase
-
fetch
Retrieves a MicroSession with the specified ID.- Parameters:
id- The ID of the MicroSession to retrieve- Returns:
- The MicroSession object with the specified ID
- Throws:
DAValidateException- If an error occurs during data validation or the session has not been foundDAException- If an error occurs during the data access phase
-
getIdentity
-
getExpiration
public long getExpiration() -
getRefreshAfter
public long getRefreshAfter() -
getId
-
refresh
- Throws:
DAValidateExceptionDAException
-
refresh
- Throws:
DAValidateExceptionDAException
-
delete
- Throws:
DAValidateExceptionDAException
-