private void cleanup() { Contexts.getEventContext().remove(AbstractDispatcher.EXECUTING_ASYNCHRONOUS_CALL); if (createContexts) Lifecycle.endCall(); } }
public static HotDeploymentStrategy instance() { if (Contexts.getEventContext().isSet(NAME)) { return (HotDeploymentStrategy) Contexts.getEventContext().get(NAME); } return null; }
private boolean isAnyVersioned() { for ( PassivatedEntity passivatedEntity: getPassivatedEntities() ) { if ( passivatedEntity!=null && passivatedEntity.isVersioned() ) return true; } return false; }
protected void resetSubTabs() { subTabsCategory = null; subTabsActionsList = null; // make sure event context is cleared so that factory is called again Contexts.getEventContext().remove("subTabsActionsList"); Contexts.getEventContext().remove("currentSubTabAction"); }
/** * Get the most recently rendered message sent using the MockTransport. */ public static void clearMailMessage() { Contexts.getApplicationContext().remove(VAR_NAME); }
public void resetParameters() { setupConfigGenerator = null; parameters = null; advancedParameters = null; Contexts.getPageContext().remove("setupConfigGenerator"); }
@Override public void sendMessage(Message message, Address[] recipients) throws MessagingException { Contexts.getApplicationContext().set(VAR_NAME, message); }
/** * Get the most recently rendered message sent using the MockTransport. */ public static MimeMessage getMailMessage() { return (MimeMessage) Contexts.getApplicationContext().get(VAR_NAME); }
public void setSearchFilter(String searchFilter) { Context pageContext = Contexts.getPageContext(); if (pageContext != null) { pageContext.set("searchFilter", searchFilter); } this.searchFilter = searchFilter; }
private boolean isExceptionHandlerRedirect() { return Contexts.getConversationContext().isSet("org.jboss.seam.handledException"); }
public final boolean passivate() { if ( PassivatedEntity.isTransactionRolledBackOrMarkedRollback() ) { clearPassivatedEntities(); } else { passivateAll(); } return true; }
public void setSelectedAuditCategory(String category) { selectedAuditCategory = category; currentAuditPage = 1; Contexts.getEventContext().remove("userLoginEvents"); }
public static StandardDeploymentStrategy instance() { if (Contexts.getEventContext().isSet(NAME)) { return (StandardDeploymentStrategy) Contexts.getEventContext().get(NAME); } return null; }
public void resetParameters() { setupConfigGenerator = null; parameters = null; advancedParameters = null; Contexts.getPageContext().remove("setupConfigGenerator"); }
protected void resetEventContext() { Context evtCtx = Contexts.getEventContext(); if (evtCtx != null) { evtCtx.remove("currentDocumentIncomingRelations"); evtCtx.remove("currentDocumentOutgoingRelations"); } }
/** * @since 5.9.3 */ protected void resetCache() { Contexts.getEventContext().remove("availablePublicationTrees"); Contexts.getEventContext().remove("publishedDocuments"); }
public boolean isBinaryManagerStatusAvailable() { if (binaryManagerStatusInvalidation) { // invalidate Seam value in context Contexts.getEventContext().remove("binaryManagerStatus"); binaryManagerStatusInvalidation = false; } return binaryManagerStatus != null; }
public void prevAuditPage() { currentAuditPage -= 1; if (currentAuditPage <= 0) { currentAuditPage = 1; } Contexts.getEventContext().remove("userLoginEvents"); }
public void prevAuditPage() { currentAuditPage -= 1; if (currentAuditPage <= 0) { currentAuditPage = 1; } Contexts.getEventContext().remove("userLoginEvents"); }
public boolean isBinaryManagerStatusAvailable() { if (binaryManagerStatusInvalidation) { // invalidate Seam value in context Contexts.getEventContext().remove("binaryManagerStatus"); binaryManagerStatusInvalidation = false; } return binaryManagerStatus != null; }