Refine search
/** * A component for direct rendering of * templates. Especially useful with * Seam Mail. * */ @Name("org.jboss.seam.faces.renderer") @Install(false) public abstract class Renderer { public abstract String render(String viewId); public static Renderer instance() { return (Renderer) Component.getInstance(Renderer.class); } }
/** * Dummy component that lets us install the * EjbSynchronizations via the tag * transaction:ejb-transaction * * @see EjbSynchronizations * @author Gavin King * */ @Name("org.jboss.seam.transaction.ejbTransaction") @Scope(ScopeType.STATELESS) @Install(precedence=BUILT_IN, value=false) @BypassInterceptors public class EjbTransaction {}
@Name("org.jboss.seam.core.ConversationIdGenerator") @Scope(ScopeType.APPLICATION) @Install(precedence=Install.BUILT_IN) public class ConversationIdGenerator { private static AtomicInteger uniqueId = new AtomicInteger(0); public String getNextId() { //TODO: this is not cluster safe!!!!! return Integer.toString(uniqueId.incrementAndGet()); } public static ConversationIdGenerator instance() { ConversationIdGenerator instance = (ConversationIdGenerator) Component.getInstance("org.jboss.seam.core.ConversationIdGenerator"); return (instance!=null) ? instance : new ConversationIdGenerator(); } }
@Name("currentDocumentCollection") @Scope(ScopeType.PAGE) @BypassInterceptors public class CurrentDocumentCollectionBean implements Serializable {
@Name("org.jboss.seam.debug.jsf.debugRedirect") @BypassInterceptors @Install(debug = true, precedence = BUILT_IN, classDependencies = "javax.faces.context.FacesContext") public class DebugRedirect { private String viewId; public String getViewId() { return viewId; } public void setViewId(String viewId) { this.viewId = viewId; } public void execute() { FacesManager.instance().redirect(viewId, null, false); } }
@Name("ageConverter") @BypassInterceptors @Converter public class AgeConverter implements javax.faces.convert.Converter { public Object getAsObject(FacesContext context, UIComponent component, String value) throws ConverterException { Integer i = new Integer(value); return i.intValue(); } public String getAsString(FacesContext context, UIComponent component, Object value) throws ConverterException { return value + ""; } }
@Scope(ScopeType.STATELESS) @Name("org.jboss.seam.async.asynchronousExceptionHandler") @Install(precedence=BUILT_IN) @BypassInterceptors public class AsynchronousExceptionHandler { private LogProvider log = Logging.getLogProvider(AsynchronousExceptionHandler.class); public void handleException(Exception throwable) { log.error("Exception thrown whilst executing asynchronous call", throwable); } public static AsynchronousExceptionHandler instance() { return (AsynchronousExceptionHandler) Component.getInstance(AsynchronousExceptionHandler.class); } }
/** * @author David Chevrier. * */ @Name("webActions") @Scope(ScopeType.CONVERSATION) @Install(precedence = ExtendedSeamPrecedence.ADD_ON) public class ToutaticeCTWebActionsBean extends ToutaticeWebActionsBean { private static final long serialVersionUID = -6124671913159928250L; @Override public boolean isInPortalViewContext() { WidgetsAdapterService widgetsAdapterService = Framework.getLocalService(WidgetsAdapterService.class); widgetsAdapterService.addPortalViewsIds("send_notification_email", "document_notif_email", "confirm_mail_sending", "mail_sending"); return widgetsAdapterService.isInPortalViewContext(); } }
@Name("oauthServerKeyActions") @Scope(ScopeType.EVENT) public class ServerKeyActionBean { public String getPublicCertificate() { OAuthServerKeyManager skm = Framework.getService(OAuthServerKeyManager.class); return skm.getPublicKeyCertificate(); } public String getKeyName() { OAuthServerKeyManager skm = Framework.getService(OAuthServerKeyManager.class); return skm.getKeyName(); } }
/** * @author Marcel Kolsteren * @since Jan 30, 2010 */ @Name("org.picketlink.identity.seam.federation.openIdConsumerManager") @Scope(ScopeType.APPLICATION) @BypassInterceptors @Startup public class OpenIdConsumerManagerFactory { private ConsumerManager consumerManager; @Unwrap public ConsumerManager getConsumerManager() { return consumerManager; } @Create public void startup(Component component) throws Exception { consumerManager = new ConsumerManager(); } }
@Name("org.jboss.seam.faces.validation") @BypassInterceptors @Install(precedence=BUILT_IN, classDependencies="javax.faces.context.FacesContext") public class Validation
@Name("filmConverter") @Converter(forClass = Film.class) @BypassInterceptors public class FilmConverter implements javax.faces.convert.Converter
/** * Support for injecting the JSF FacesContext object * * @author Gavin King */ @Scope(ScopeType.APPLICATION) @BypassInterceptors @Name("org.jboss.seam.faces.facesContext") @Install(precedence=BUILT_IN, classDependencies="javax.faces.context.FacesContext") public class FacesContext { @Unwrap public javax.faces.context.FacesContext getContext() { return javax.faces.context.FacesContext.getCurrentInstance(); } }
/** * Externalize serverLocation Factory to avoid NavigationContext reentrant calls * * @author Thierry Delprat */ @Name("serverLocator") @Scope(CONVERSATION) @Install(precedence = FRAMEWORK) public class ServerContextBean implements Serializable { private static final long serialVersionUID = 1L; private RepositoryLocation currentServerLocation; @Factory(value = "currentServerLocation", scope = EVENT) public RepositoryLocation getCurrentServerLocation() { return currentServerLocation; } public void setRepositoryLocation(RepositoryLocation serverLocation) { this.currentServerLocation = serverLocation; } }
@Name("oauthServiceProvidersActions") @Scope(ScopeType.CONVERSATION) public class OAuthServiceProvidersActionBean extends DirectoryBasedEditor { private static final long serialVersionUID = 1L; protected static final String DIRECTORY = OAuthServiceProviderRegistryImpl.DIRECTORY_NAME; protected static final String SCHEMA = NuxeoOAuthServiceProvider.SCHEMA; @Override protected String getDirectoryName() { return DIRECTORY; } @Override protected String getSchemaName() { return SCHEMA; } }
@Name("nxHotReloadResourceBundleControl") @BypassInterceptors @Scope(ScopeType.SESSION) @AutoCreate public class HotReloadResourceBundleControl extends ResourceBundle.Control implements Serializable {
/** * Manager component for the current locale that is * aware of the selected locale * * @author Gavin King */ @Scope(ScopeType.STATELESS) @Name("org.jboss.seam.core.locale") @Install(precedence=FRAMEWORK, dependencies="org.jboss.seam.international.localeSelector") @BypassInterceptors public class Locale extends org.jboss.seam.core.Locale { @Unwrap @Override public java.util.Locale getLocale() { return Contexts.isSessionContextActive() ? LocaleSelector.instance().getLocale() : super.getLocale(); } }
@Name("oauthConsumersActions") @Scope(ScopeType.CONVERSATION) public class OAuthConsumersActionBean extends DirectoryBasedEditor { private static final long serialVersionUID = 1L; protected static final String DIRECTORY = OAuthConsumerRegistryImpl.DIRECTORY_NAME; protected static final String SCHEMA = NuxeoOAuthConsumer.SCHEMA; @Override protected String getDirectoryName() { return DIRECTORY; } @Override protected String getSchemaName() { return SCHEMA; } }