Package de.xima.fc.gui.bean.designer
Class DesignerPresenceBean
- java.lang.Object
-
- de.xima.fc.gui.bean.designer.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 Summary
Constructors Constructor Description DesignerPresenceBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetCurrentFormId()List<String>getOtherUsers()TrackingIdgetTrackingId()voidheartbeat()Keeps the current registration alive.voidloadInitialMessagesAndUser()voidregister()voidunregister()Schedules removal of the Designer registration when the JSF view is destroyed.voidupdateMessagesAndUser()
-
-
-
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()
-
-