AnsweredAssumed Answered

PermissionService

Question asked by srojas on Nov 30, 2007
Latest reply on Dec 12, 2007 by srojas
Hi, i have a matter with the PermissionService. I can´t instantiate it. i do the next:

1.To declare PermissionService attribute in my javaBean, with its correspondign setmethod

PermissionService permissionService;
public void setPermissionService(PermissionService permissionService) {
      this.permissionService = permissionService;
   }

2.To declare my javaBean in "faces-config-custom.xml" file with the permissionService attribute

<managed-bean>
      <description>
         The bean that backs up the Edit Content Properties Dialog
      </description>
      <managed-bean-name>EditExpedientePropertiesDialog</managed-bean-name>
      <managed-bean-class>com.soluziona.alfresco.EditExpedientePropertiesDialog</managed-bean-class>
      <managed-bean-scope>session</managed-bean-scope>
      <managed-property>
         <property-name>nodeService</property-name>
         <value>#{NodeService}</value>
      [color=red]</managed-property>
     <managed-property>
         <property-name>permissionService</property-name>
         <value>#{PermissionService}</value>
      </managed-property>[/color]    
      <managed-property>
         <property-name>fileFolderService</property-name>
         <value>#{FileFolderService}</value>
      </managed-property>
      <managed-property>
         <property-name>dictionaryService</property-name>
         <value>#{DictionaryService}</value>
      </managed-property>
      <managed-property>
         <property-name>browseBean</property-name>
         <value>#{BrowseBean}</value>
      </managed-property>
   </managed-bean>

When i´m going to use the PermissionService methods into my javaBean,  thows a NullPointerException:
09:48:46,242 ERROR [org.alfresco.web.ui.common.Utils] Ocurrió un error del sistema durante la operación: null
java.lang.NullPointerException
   at com.soluziona.alfresco.EditExpedientePropertiesDialog.finishImpl(EditExpedientePropertiesDialog.java:33)


When i uses other services like contentService, i have not any matter.

Somebody can help me?

Thanks

Outcomes