@Factory(value="org.jboss.seam.core.applicationContext", autoCreate=true) public Context getApplicationContext() { return org.jboss.seam.contexts.Contexts.getApplicationContext(); }
@Factory(value="org.jboss.seam.security.configuration", autoCreate=true, scope=APPLICATION) public javax.security.auth.login.Configuration getConfiguration() { return createConfiguration(); }
/** * Create the Map and cache it in the EVENT scope. No need to cache it in * the SESSION scope, since it is inexpensive to create. * * @return a Map that interpolates messages in the Seam ResourceBundle */ @Factory(value = "org.jboss.seam.international.messages", autoCreate = true, scope = EVENT) public Map<String, String> getMessages() { return createMap(); }
/** * Create a Map in the event scope. When the theme is changed, ThemeSelector * is responsible for removing the Map from the event context. * */ @Factory(value = "org.jboss.seam.theme.theme", autoCreate = true, scope = EVENT) public java.util.Map getTheme() { return createMap(); }
@Override @Factory(value = "isCurrentWorkListEmpty", scope = EVENT) public boolean factoryForIsCurrentWorkListEmpty() { return isWorkListEmpty(); }
@Factory(value="org.jboss.seam.core.methodContext", autoCreate=true) public Context getMethodContext() { return org.jboss.seam.contexts.Contexts.getMethodContext(); }
@Factory(value="org.jboss.seam.core.pageContext", autoCreate=true) public Context getPageContext() { return org.jboss.seam.contexts.Contexts.getPageContext(); }
@Factory(value="org.jboss.seam.core.businessProcessContext", autoCreate=true) public Context getBusinessProcessContext() { return org.jboss.seam.contexts.Contexts.getBusinessProcessContext(); }
@Override @Factory(value = "selectedTemplateId") public ContextStringWrapper FactoryForSelectedTemplateId() { return new ContextStringWrapper("none"); }
@Override @Factory(value = "selectedSecurityModel") public ContextStringWrapper FactoryForSelectSecurityModel() { return new ContextStringWrapper("inherit"); }
@Override @Factory(value = "currentSuperSpace", scope = EVENT) public DocumentModel factoryCurrentSuperSpace() { return getCurrentSuperSpace(); }
/** * @deprecated this information is now held by content views */ @Deprecated @Factory(value = "currentAvailableListingLayoutNames", scope = EVENT) public List<String> getAvailableLayoutsForCurrentDocument() { if (currentAvailableListingLayoutNames == null) { DocumentModel currentDocument = navigationContext.getCurrentDocument(); currentAvailableListingLayoutNames = getAvailableLayoutsForDocument(currentDocument); } return currentAvailableListingLayoutNames; }
/** * @deprecated this information is now held by content views */ @Deprecated @Factory(value = "currentListingLayoutName", scope = EVENT) public String getLayoutForCurrentDocument() { if (currentListingLayoutName == null) { DocumentModel currentDocument = navigationContext.getCurrentDocument(); currentListingLayoutName = getLayoutForDocument(currentDocument); } return currentListingLayoutName; }
/** * Returns true if configuration property to remove optimizations around actions (for compatibility) has been * enabled. * * @since 8.2 */ @Factory(value = "removeActionOptims", scope = ScopeType.SESSION) public boolean removeActionOptims() { ConfigurationService cs = Framework.getService(ConfigurationService.class); return cs.isBooleanPropertyTrue("nuxeo.jsf.actions.removeActionOptims"); }
@Factory(value = "dataCollector", scope = ScopeType.PAGE) public DocumentModel getCollector() { if (metadataCollector == null) { metadataCollector = new SimpleDocumentModel(getSchemas()); } return metadataCollector; }
@Override @Factory(value = "currentDocumentCanBeUnlocked", scope = ScopeType.EVENT) public Boolean getCanUnlockCurrentDoc() { DocumentModel currentDocument = navigationContext.getCurrentDocument(); return getCanUnlockDoc(currentDocument); }
@Override @Begin(pageflow = "createWorkspace", nested = true) @Factory(value = "tmpWorkspace") public DocumentModel getTmpWorkspace() { if (tmpWorkspace == null) { tmpWorkspace = documentManager.createDocumentModel("Workspace"); } return tmpWorkspace; }
@Override @Factory(value = "subTabsActionsList", scope = EVENT) public List<Action> getSubTabsList() { if (subTabsActionsList == null) { String currentTabId = getCurrentTabId(); if (currentTabId != null) { subTabsCategory = TabActionsSelection.getSubTabCategory(currentTabId); subTabsActionsList = getActionsList(subTabsCategory); } } return subTabsActionsList; }
@Factory(value = "typesMap", scope = EVENT) public Map<String, List<List<Type>>> getTypesList() { // XXX : should cache per currentDocument type if (typesMap == null || (seamReload.isDevModeSet() && seamReload.shouldResetCache(typeManager, typesMapTimestamp))) { // cache the list of allowed subtypes populateTypesList(); } selectedType = null; return typesMap; }
@Override @Factory(value = "currentSubTabAction", scope = EVENT) public Action getCurrentSubTabAction() { Action action = getCurrentTabAction(); if (action != null) { return getCurrentTabAction(TabActionsSelection.getSubTabCategory(action.getId())); } return null; }