Class DesignerModelFactory


  • public final class DesignerModelFactory
    extends Object
    Utility methods for creating the various models used by the designer frame. Also includes methods for creating the initial models based on the HTTP request data.
    Since:
    7.0.0
    Author:
    XIMA MEDIA GmbH
    • Method Detail

      • createBaseDesignerModel

        public static BaseDesignerModel createBaseDesignerModel​(javax.faces.context.FacesContext context,
                                                                Mandant client,
                                                                ProjectPageBean projectHolder,
                                                                IEntityContext ec,
                                                                IUser user)
                                                         throws AccessDeniedException,
                                                                javassist.NotFoundException,
                                                                Exception
        The base designer model with basic data about the client, project etc.
        Parameters:
        context - Current faces context instance.
        client - Current client.
        projectHolder - Requested project.
        ec - Entity context for DB transactions.
        user - Currently logged in user.
        Returns:
        The base designer model.
        Throws:
        AccessDeniedException - When the user does not have access to the designer.
        javassist.NotFoundException - When the project could not be found.
        Exception - When something else went wrong, such as DB errors.
      • createFrameDesignerModel

        public static FrameDesignerModel createFrameDesignerModel​(javax.faces.context.FacesContext facesContext,
                                                                  Mandant client,
                                                                  ProjectPageBean projectHolder,
                                                                  IEntityContext ec,
                                                                  Locale locale,
                                                                  IUser user,
                                                                  String conversationId)
                                                           throws AccessDeniedException,
                                                                  javassist.NotFoundException,
                                                                  Exception
        Creates a new frame designer model from the data of the given faces request.
        Parameters:
        facesContext - Faces context of the currently active faces request.
        client - Current client.
        projectHolder - Requested project.
        ec - Entity context to use for database transactions.
        locale - Requested locale.
        user - User who requested the designer.
        conversationId - ID of the current designer conversation, see DesignerConversationBean.
        Returns:
        A new form designer model
        Throws:
        AccessDeniedException - When the user does not have access to the requested designer instance.
        javassist.NotFoundException - When the requested project, workflow version or form version could not be found.
        Exception - When the model could not be created for any other reason, such as database failures etc.
      • createProvideModel

        public static ProvideModel createProvideModel​(javax.faces.context.FacesContext facesContext,
                                                      Projekt project)