远程访问Liferay内容授予异常权限检查器未初始化

时间:2014-02-10 07:03:06

标签: java web-services java-ee liferay

我正在使用DLAppServiceUtil访问来自rest服务的内容,但它正在给我PermissionChecker未初始化

long repositoryId = Long.parseLong(temp);
         String Foldername="";
         long groupId=Long.parseLong(temp);
         long parentFolderId = DLFolderConstants.DEFAULT_PARENT_FOLDER_ID;
        java.util.List<Folder> lFolder;
        try {
                lFolder = DLAppServiceUtil.getFolders(repositoryId, parentFolderId);
                for (Folder folder : lFolder)
                {

                      Foldername=folder.getName();
                      if(Foldername.equals(project_name))
                      {
                          folder_ID = folder.getFolderId();
                          break;    
                      }   
                }


        }