Class ResourceEnhancer

    • Method Detail

      • getXmlAddOn

        public static void getXmlAddOn​(StringBuffer strXml,
                                       String strResourceType,
                                       int nResourceId)
        Add to the the XML String additional datas
        Parameters:
        strXml - The xml string use by stylesheet
        strResourceType - the resource type
        nResourceId - The resource Id
      • buildPageAddOn

        public static void buildPageAddOn​(Map<String,​Object> model,
                                          String strResourceType,
                                          int nIdResource,
                                          String strPortletId,
                                          javax.servlet.http.HttpServletRequest request)
        Add datas to the model use by document template
        Parameters:
        model - The model use by document template
        strResourceType - the ressource Type
        nIdResource - The resource id
        strPortletId - The portlet ID
        request - The HTTP Request
      • getCreateResourceModelAddOn

        public static void getCreateResourceModelAddOn​(Map<String,​Object> model)
        Add datas to the create document model use in the template
        Parameters:
        model - the map use in the template
      • doCreateResourceAddOn

        public static void doCreateResourceAddOn​(javax.servlet.http.HttpServletRequest request,
                                                 String strResourceType,
                                                 int nResourceId)
        Perform actions associated to the document creation
        Parameters:
        request - The HTTP request
        strResourceType - the resource type
        nResourceId - the resource id
      • getModifyResourceModelAddOn

        public static void getModifyResourceModelAddOn​(Map<String,​Object> model,
                                                       String strResourceType,
                                                       int nResourceId)
        Add datas to the modify document model use in the template
        Parameters:
        model - the map use in the template
        strResourceType - the resource type
        nResourceId - the resource id
      • doModifyResourceAddOn

        public static void doModifyResourceAddOn​(javax.servlet.http.HttpServletRequest request,
                                                 String strResourceType,
                                                 int nResourceId)
        Perform actions associated to the document modification
        Parameters:
        request - The HTTP request
        strResourceType - the resource type
        nResourceId - the resource id
      • doDeleteResourceAddOn

        public static void doDeleteResourceAddOn​(javax.servlet.http.HttpServletRequest request,
                                                 String strResourceType,
                                                 int nResourceId)
        Perform actions associated to the document deletion
        Parameters:
        request - The HTTP request
        strResourceType - the resource type
        nResourceId - the resource id
      • doDownloadResourceAddOn

        public static void doDownloadResourceAddOn​(javax.servlet.http.HttpServletRequest request,
                                                   String strResourceType,
                                                   int nResourceId)
        Perform actions associated to the document download
        Parameters:
        request - The HTTP request
        strResourceType - the resource type
        nResourceId - the resource id