@ViewScoped @Named("PrivateUrlPage") public class PrivateUrlPage implements Serializable { @EJB PrivateUrlServiceBean privateUrlService; @Inject DataverseSession session;
@Named @ViewScoped public class CarsView implements Serializable { private static final long serialVersionUID = 1L; @Inject private CarRepository carRepository; private List<Car> cars; @PostConstruct public void init() { cars = carRepository.findAll(); } public List<Car> getCars() { return cars; } }
@Named @ViewScoped public class ViewController implements Serializable { private static Logger logger = Logger.getLogger(ViewController.class.getName()); @EJB DocumentService documentService;
/** * * @author matthew */ @ViewScoped @Named public class PackagePopupFragmentBean implements java.io.Serializable { FileMetadata fm; public void setFileMetadata(FileMetadata fileMetadata) { fm = fileMetadata; } public FileMetadata getFileMetadata() { return fm; } }
@ViewScoped public class DatasetVersionUI implements Serializable { @EJB DataverseServiceBean dataverseService; @PersistenceContext(unitName = "VDCNet-ejbPU")
/** * This helps the web socket channel manager to hold view scoped web socket channel identifiers registered by * <code><f:websocket></code>. * @author Bauke Scholtz * @see WebsocketChannelManager * @since 2.3 */ @ViewScoped public static class ViewScope implements Serializable { private static final long serialVersionUID = 1L; private ConcurrentMap<String, String> viewScope = new ConcurrentHashMap<>(ESTIMATED_CHANNELS_PER_VIEW); /** * When current view scope is about to be destroyed, deregister all view scope channels and explicitly close * any open web sockets associated with it to avoid stale websockets. */ @PreDestroy protected void deregisterViewScope() { WebsocketSessionManager.getInstance().deregister(viewScope.values()); } }
@ViewScoped @Named public class NavigationWrapper implements java.io.Serializable { @Inject DataverseSession session;
@ViewScoped @Named public class SettingsWrapper implements java.io.Serializable { @EJB SettingsServiceBean settingService; @EJB DataverseServiceBean dataverseService; @EJB SystemConfig systemConfig;
@ViewScoped @Named public class WidgetWrapper implements java.io.Serializable {
/** * This helps the web socket channel manager to hold view scoped web socket channel identifiers registered by * <code><f:websocket></code>. * @author Bauke Scholtz * @see WebsocketChannelManager * @since 2.3 */ @ViewScoped public static class ViewScope implements Serializable { private static final long serialVersionUID = 1L; private ConcurrentMap<String, String> viewScope = new ConcurrentHashMap<>(ESTIMATED_CHANNELS_PER_VIEW); /** * When current view scope is about to be destroyed, deregister all view scope channels and explicitly close * any open web sockets associated with it to avoid stale websockets. */ @PreDestroy protected void deregisterViewScope() { WebsocketSessionManager.getInstance().deregister(viewScope.values()); } }
@ViewScoped @Named("RolePermissionHelperPage") public class RolePermissionHelperPage implements java.io.Serializable { @Inject DataverseSession session; @EJB DataverseRoleServiceBean dataverseRoleService; @EJB RoleAssigneeServiceBean roleAssigneeService;
/** * This helps the web socket channel manager to hold view scoped web socket channel identifiers registered by * <code><f:websocket></code>. * @author Bauke Scholtz * @see WebsocketChannelManager * @since 2.3 */ @ViewScoped public static class ViewScope implements Serializable { private static final long serialVersionUID = 1L; private ConcurrentMap<String, String> viewScope = new ConcurrentHashMap<>(ESTIMATED_CHANNELS_PER_VIEW); /** * When current view scope is about to be destroyed, deregister all view scope channels and explicitly close * any open web sockets associated with it to avoid stale websockets. */ @PreDestroy protected void deregisterViewScope() { WebsocketSessionManager.getInstance().deregister(viewScope.values()); } }
@ViewScoped @Named("ApiTokenPage") public class ApiTokenPage implements java.io.Serializable { @Inject DataverseSession session; @EJB AuthenticationServiceBean authSvc;
/** * This helps the web socket channel manager to hold view scoped web socket channel identifiers registered by * <code><o:socket></code>. * @author Bauke Scholtz * @see SocketChannelManager * @since 2.3 */ @ViewScoped protected static class ViewScope implements Serializable { private static final long serialVersionUID = 1L; private ConcurrentHashMap<String, String> channels = new ConcurrentHashMap<>(ESTIMATED_CHANNELS_PER_VIEW); /** * Returns the view scoped channels. * @return The view scoped channels. */ protected Map<String, String> getChannels() { return channels; } /** * When current view scope is about to be destroyed, deregister all view scoped channels and explicitly close * any open web sockets associated with it to avoid stale websockets. */ @PreDestroy protected void deregisterViewScope() { SocketSessionManager.getInstance().deregister(channels.values()); } }
@ViewScoped @Named public class ConfigureFragmentBean implements java.io.Serializable{ private ExternalToolHandler toolHandler = null; @EJB DataFileServiceBean datafileService; @Inject DataverseSession session; @EJB AuthenticationServiceBean authService;
/** * This helps the web socket channel manager to hold view scoped web socket channel identifiers registered by * <code><o:socket></code>. * @author Bauke Scholtz * @see SocketChannelManager * @since 2.3 */ @ViewScoped protected static class ViewScope implements Serializable { private static final long serialVersionUID = 1L; private ConcurrentHashMap<String, String> channels = new ConcurrentHashMap<>(ESTIMATED_CHANNELS_PER_VIEW); /** * Returns the view scoped channels. * @return The view scoped channels. */ protected Map<String, String> getChannels() { return channels; } /** * When current view scope is about to be destroyed, deregister all view scoped channels and explicitly close * any open web sockets associated with it to avoid stale websockets. */ @PreDestroy protected void deregisterViewScope() { SocketSessionManager.getInstance().deregister(channels.values()); } }
@ViewScoped @Named("ConfirmEmailPage") public class ConfirmEmailPage implements java.io.Serializable { @EJB ConfirmEmailServiceBean confirmEmailService; @Inject DataverseSession session; @EJB ActionLogServiceBean actionLogSvc;
/** * Welcome Page. * @author Marcelo Fernandes */ @Setter @Getter @Component @ViewScoped public class WelcomeMBean implements Serializable { private static final long serialVersionUID = 1L; private String text = ""; }
@ViewScoped @Named("DatasetWidgetsPage") public class DatasetWidgetsPage implements java.io.Serializable { @EJB DatasetServiceBean datasetService; @EJB EjbDataverseEngine commandEngine; @Inject DataverseRequestServiceBean dvRequestService; private UpdateDatasetThumbnailCommand updateDatasetThumbnailCommand; @Inject PermissionsWrapper permissionsWrapper; private final boolean considerDatasetLogoAsCandidate = false;