Class ResourceEnhancer

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void buildPageAddOn​(java.util.Map<java.lang.String,​java.lang.Object> model, java.lang.String strResourceType, int nIdResource, java.lang.String strPortletId, javax.servlet.http.HttpServletRequest request)
      Add datas to the model use by document template
      static void doCreateResourceAddOn​(javax.servlet.http.HttpServletRequest request, java.lang.String strResourceType, int nResourceId)
      Perform actions associated to the document creation
      static void doDeleteResourceAddOn​(javax.servlet.http.HttpServletRequest request, java.lang.String strResourceType, int nResourceId)
      Perform actions associated to the document deletion
      static void doDownloadResourceAddOn​(javax.servlet.http.HttpServletRequest request, java.lang.String strResourceType, int nResourceId)
      Perform actions associated to the document download
      static void doModifyResourceAddOn​(javax.servlet.http.HttpServletRequest request, java.lang.String strResourceType, int nResourceId)
      Perform actions associated to the document modification
      static void getCreateResourceModelAddOn​(java.util.Map<java.lang.String,​java.lang.Object> model)
      Add datas to the create document model use in the template
      static void getModifyResourceModelAddOn​(java.util.Map<java.lang.String,​java.lang.Object> model, java.lang.String strResourceType, int nResourceId)
      Add datas to the modify document model use in the template
      static void getXmlAddOn​(java.lang.StringBuffer strXml, java.lang.String strResourceType, int nResourceId)
      Add to the the XML String additional datas
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getXmlAddOn

        public static void getXmlAddOn​(java.lang.StringBuffer strXml,
                                       java.lang.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​(java.util.Map<java.lang.String,​java.lang.Object> model,
                                          java.lang.String strResourceType,
                                          int nIdResource,
                                          java.lang.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​(java.util.Map<java.lang.String,​java.lang.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,
                                                 java.lang.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​(java.util.Map<java.lang.String,​java.lang.Object> model,
                                                       java.lang.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,
                                                 java.lang.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,
                                                 java.lang.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,
                                                   java.lang.String strResourceType,
                                                   int nResourceId)
        Perform actions associated to the document download
        Parameters:
        request - The HTTP request
        strResourceType - the resource type
        nResourceId - the resource id