Class ResourceEnhancer
java.lang.Object
fr.paris.lutece.portal.business.resourceenhancer.ResourceEnhancer
ResourceEnhancer : handles
IResourceDisplayManager and IResourceManager-
Method Summary
Modifier and TypeMethodDescriptionstatic voidbuildPageAddOn(Map<String, Object> model, String strResourceType, int nIdResource, String strPortletId, javax.servlet.http.HttpServletRequest request) Add datas to the model use by document templatestatic voiddoCreateResourceAddOn(javax.servlet.http.HttpServletRequest request, String strResourceType, int nResourceId) Perform actions associated to the document creationstatic voiddoDeleteResourceAddOn(javax.servlet.http.HttpServletRequest request, String strResourceType, int nResourceId) Perform actions associated to the document deletionstatic voiddoDownloadResourceAddOn(javax.servlet.http.HttpServletRequest request, String strResourceType, int nResourceId) Perform actions associated to the document downloadstatic voiddoModifyResourceAddOn(javax.servlet.http.HttpServletRequest request, String strResourceType, int nResourceId) Perform actions associated to the document modificationstatic voidgetCreateResourceModelAddOn(Map<String, Object> model) Add datas to the create document model use in the templatestatic voidgetModifyResourceModelAddOn(Map<String, Object> model, String strResourceType, int nResourceId) Add datas to the modify document model use in the templatestatic voidgetXmlAddOn(StringBuffer strXml, String strResourceType, int nResourceId) Add to the the XML String additional datas
-
Method Details
-
getXmlAddOn
Add to the the XML String additional datas- Parameters:
strXml- The xml string use by stylesheetstrResourceType- the resource typenResourceId- 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 templatestrResourceType- the ressource TypenIdResource- The resource idstrPortletId- The portlet IDrequest- The HTTP Request
-
getCreateResourceModelAddOn
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 requeststrResourceType- the resource typenResourceId- 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 templatestrResourceType- the resource typenResourceId- 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 requeststrResourceType- the resource typenResourceId- 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 requeststrResourceType- the resource typenResourceId- 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 requeststrResourceType- the resource typenResourceId- the resource id
-