Class ResourceEnhancer
- java.lang.Object
-
- fr.paris.lutece.portal.business.resourceenhancer.ResourceEnhancer
-
public final class ResourceEnhancer extends java.lang.ObjectResourceEnhancer : handlesIResourceDisplayManagerandIResourceManager
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidbuildPageAddOn(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 templatestatic voiddoCreateResourceAddOn(javax.servlet.http.HttpServletRequest request, java.lang.String strResourceType, int nResourceId)Perform actions associated to the document creationstatic voiddoDeleteResourceAddOn(javax.servlet.http.HttpServletRequest request, java.lang.String strResourceType, int nResourceId)Perform actions associated to the document deletionstatic voiddoDownloadResourceAddOn(javax.servlet.http.HttpServletRequest request, java.lang.String strResourceType, int nResourceId)Perform actions associated to the document downloadstatic voiddoModifyResourceAddOn(javax.servlet.http.HttpServletRequest request, java.lang.String strResourceType, int nResourceId)Perform actions associated to the document modificationstatic voidgetCreateResourceModelAddOn(java.util.Map<java.lang.String,java.lang.Object> model)Add datas to the create document model use in the templatestatic voidgetModifyResourceModelAddOn(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 templatestatic voidgetXmlAddOn(java.lang.StringBuffer strXml, java.lang.String strResourceType, int nResourceId)Add to the the XML String additional datas
-
-
-
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 stylesheetstrResourceType- the resource typenResourceId- 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 templatestrResourceType- the ressource TypenIdResource- The resource idstrPortletId- The portlet IDrequest- 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 requeststrResourceType- the resource typenResourceId- 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 templatestrResourceType- the resource typenResourceId- 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 requeststrResourceType- the resource typenResourceId- 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 requeststrResourceType- the resource typenResourceId- 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 requeststrResourceType- the resource typenResourceId- the resource id
-
-