mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 05:01:07 +00:00
Re-add getInstance and getSession (until qqq consumer apps stop using them)
This commit is contained in:
@ -27,10 +27,12 @@ import com.fasterxml.jackson.annotation.JsonIgnore;
|
|||||||
import com.kingsrook.qqq.backend.core.actions.async.AsyncJobCallback;
|
import com.kingsrook.qqq.backend.core.actions.async.AsyncJobCallback;
|
||||||
import com.kingsrook.qqq.backend.core.actions.async.AsyncJobStatus;
|
import com.kingsrook.qqq.backend.core.actions.async.AsyncJobStatus;
|
||||||
import com.kingsrook.qqq.backend.core.actions.async.NonPersistedAsyncJobCallback;
|
import com.kingsrook.qqq.backend.core.actions.async.NonPersistedAsyncJobCallback;
|
||||||
|
import com.kingsrook.qqq.backend.core.context.QContext;
|
||||||
import com.kingsrook.qqq.backend.core.exceptions.QInstanceValidationException;
|
import com.kingsrook.qqq.backend.core.exceptions.QInstanceValidationException;
|
||||||
import com.kingsrook.qqq.backend.core.instances.QInstanceValidator;
|
import com.kingsrook.qqq.backend.core.instances.QInstanceValidator;
|
||||||
import com.kingsrook.qqq.backend.core.logging.QLogger;
|
import com.kingsrook.qqq.backend.core.logging.QLogger;
|
||||||
import com.kingsrook.qqq.backend.core.model.metadata.QInstance;
|
import com.kingsrook.qqq.backend.core.model.metadata.QInstance;
|
||||||
|
import com.kingsrook.qqq.backend.core.model.session.QSession;
|
||||||
|
|
||||||
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
@ -90,6 +92,34 @@ public class AbstractActionInput
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*******************************************************************************
|
||||||
|
** Getter for instance
|
||||||
|
**
|
||||||
|
** Deprecated. Please use QContext.getInstance() instead
|
||||||
|
*******************************************************************************/
|
||||||
|
@JsonIgnore
|
||||||
|
@Deprecated
|
||||||
|
public QInstance getInstance()
|
||||||
|
{
|
||||||
|
return (QContext.getQInstance());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*******************************************************************************
|
||||||
|
** Getter for session
|
||||||
|
**
|
||||||
|
** Deprecated. Please use QContext.getSession() instead
|
||||||
|
*******************************************************************************/
|
||||||
|
@JsonIgnore
|
||||||
|
@Deprecated
|
||||||
|
public QSession getSession()
|
||||||
|
{
|
||||||
|
return (QContext.getQSession());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
** Getter for asyncJobCallback
|
** Getter for asyncJobCallback
|
||||||
**
|
**
|
||||||
|
Reference in New Issue
Block a user