Class DesignerPresenceBean

  • All Implemented Interfaces:
    Serializable

    @Named
    @ViewScoped
    public class DesignerPresenceBean
    extends Object
    implements Serializable
    View-scoped controller for concurrent editing of the current Designer project, included once from designer.xhtml rather than per Form/Workflow/Files iframe. Manages presence lifecycle, initial/join/leave diffs, and resource-keyed notifications for the local JSF session.
    See Also:
    Serialized Form
    • Constructor Detail

      • DesignerPresenceBean

        public DesignerPresenceBean()
    • Method Detail

      • register

        public void register()
      • loadInitialMessagesAndUser

        public void loadInitialMessagesAndUser()
      • updateMessagesAndUser

        public void updateMessagesAndUser()
      • heartbeat

        public void heartbeat()
        Keeps the current registration alive. If the registration has expired, it is re-registered.
      • getOtherUsers

        public List<String> getOtherUsers()
        Returns:
        Sorted display names of other editors, with counts appended for repeated names.
      • unregister

        @PreDestroy
        public void unregister()
        Schedules removal of the Designer registration when the JSF view is destroyed.
      • getTrackingId

        public TrackingId getTrackingId()
      • getCurrentFormId

        public long getCurrentFormId()