@Name("dashboardNavigationHelper") @Scope(ScopeType.STATELESS) @Install(precedence = Install.FRAMEWORK) public class DefaultDashboardNavigationHelper implements DashboardNavigationHelper { public static final String HOME_TAB = "MAIN_TABS:home"; public static final String DASHBOARD_VIEW = "view_home"; @In(create = true) protected transient WebActions webActions; @Override public String navigateToDashboard() { webActions.setCurrentTabIds(HOME_TAB); return DASHBOARD_VIEW; } }
@Name("spanTitle") public class SpanTitle { @Unwrap public String unwrap() { return "A Span title"; } }
@Unwrap public javax.jms.TopicConnection getTopicConnection() { return topicConnection; }
@Observer(Identity.EVENT_POST_AUTHENTICATE) public void postAuthenticate(Identity identity) { //org.jboss.security.saml.SSOManager.processManualLoginNotification( //ServletContexts.instance().getRequest(), identity.getPrincipal().getName()); }
@Destroy public void destroy() { facesContextFactory = null; lifecycle = null; }
@Begin public void search(Object target) { this.target = target; }
public boolean isNewTransactionRequired(boolean transactionActive) { return propType != null && propType.isNewTransactionRequired(transactionActive); } }
@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(); } }
@Unwrap public javax.jms.QueueConnection getQueueConnection() { return queueConnection; }
@Unwrap public org.drools.RuleBase getRuleBase() { return ruleBase; }
@Unwrap public QueueSender getQueueSender() { return queueSender; }
@Unwrap public TopicPublisher getTopicPublisher() { return topicPublisher; }
@Unwrap public javax.jms.QueueSession getQueueSession() { return queueSession; }
@Unwrap public javax.jms.TopicSession getTopicSession() { return topicSession; }
@Unwrap public javax.persistence.EntityManagerFactory getEntityManagerFactory() { return entityManagerFactory; }
@Unwrap public String unwrap() { return "A Span title"; }