New module http://dev.libresource.org/home/community/forum/New_module RE : New module http://dev.libresource.org/home/community/forum/New_module/RE_New_module_59 Sebastien Jourdain 2008-03-12T12:36:25+01:00 Don't forget to add the build.xml and properties, so I can check the change you made.

Regards,]]> RE : New module http://dev.libresource.org/home/community/forum/New_module/RE_New_module_58 reya 2008-03-12T12:33:36+01:00 If you want I mail you an archive with only the module and youcan look if it's good]]> RE : New module http://dev.libresource.org/home/community/forum/New_module/RE_New_module_57 Sebastien Jourdain 2008-03-12T12:02:39+01:00 If you want us to integrate your work as a contribution to libresource we will be pleased to open you an access as developper.

Regards,

Seb]]> RE : New module http://dev.libresource.org/home/community/forum/New_module/RE_New_module_56 reya 2008-03-12T11:52:26+01:00 Good luck for the furture of LibreSource

Bye

Reya]]> RE : New module http://dev.libresource.org/home/community/forum/New_module/RE_New_module_55 Sebastien Jourdain 2008-03-12T01:15:24+01:00 A graph, or a directory structure ?]]> RE : New module http://dev.libresource.org/home/community/forum/New_module/RE_New_module_54 reya 2008-03-11T10:22:25+01:00 Now I have to write an article about the project.

Do you have a schema for the organisation of the module?

My teacher want to see it!]]> RE : New module http://dev.libresource.org/home/community/forum/New_module/RE_New_module_53 Sebastien Jourdain 2008-03-03T07:06:16+01:00

  • deep clean (ant clean-all)
  • drop your adress book table (before that, make sure that no adressbook is in the naming tree) OR alter the table to add the new fields
  • ]]>
    RE : New module http://dev.libresource.org/home/community/forum/New_module/RE_New_module_52 reya 2008-03-03T01:44:24+01:00
    contactResourceValues[i] = new ContactResourceValue(contactResourceValue);
    it doesn't work;
    contactResourceValues[i] = contactResourceValue;
    it works!!

    Now I have to had firstname, lastname,adress, phone number,… Question: I have to only to had getFirstName, setFirstName, … in the file ContactResourceBean.java and modify the jsp pages?]]> RE : New module http://dev.libresource.org/home/community/forum/New_module/RE_New_module_51 Sebastien Jourdain 2008-03-02T20:26:00+01:00

    public PageResourceValue getPage(URI uri) throws LibresourceWikiException, LibresourceSecurityException, URINotExistException {
            try {
                KernelService kernelService = (KernelService) Libresource.getService(KernelConstants.SERVICE);
                LibresourceResourceIdentifier resourceIdentifier = kernelService.lookup(uri);
                PageResourceLocal pageResourceLocal = (PageResourceLocal) Libresource.findResource(resourceIdentifier, PageResourceLocal.class);
                PageResourceValue resourceValue = pageResourceLocal.getPageResourceValue();
                resourceValue.setUri(kernelService.normalizeURI(uri));

    return resourceValue; } catch (LibresourceSecurityException se) { throw se; } catch (URINotExistException se) { throw se; } catch (Exception e) { throw new LibresourceWikiException("Error in getPage : " + e.getMessage(), e); } }

    ]]>
    RE : New module http://dev.libresource.org/home/community/forum/New_module/RE_New_module_50 reya 2008-03-02T17:50:14+01:00
    public ContactResourceValue[] listContactsAt2(URI uri)
            throws LibresourceAdressBookException, LibresourceSecurityException, URINotExistException {
            try {
                KernelService kernelService = (KernelService) Libresource.getService("Kernel");
                LibresourceResourceValue[] pages = kernelService.listResourcesAt(uri, ContactResourceLocal.LIBRESOURCE_RESOURCE_SERVICE,
                        ContactResourceLocal.LIBRESOURCE_RESOURCE_TYPE);
                ContactResourceValue[] contactResourceValues = new ContactResourceValue"resourceLink" href="/home/community/forum/New_module/RE_New_module_50/pages.length">"error">! pages.length !;

    for (int i = 0; i < contactResourceValues.length; i++) { LibresourceResourceIdentifier resourceIdentifier = pages[i].getLibresourceResourceIdentifier(); ContactResourceValue contactResourceValue = ((ContactResourceLocal) Libresource.findResource(resourceIdentifier)).getContactResourceValue();

    contactResourceValue.setUri(kernelService.normalizeURI(pages[i].getUri()));

    contactResourceValues[i] = new ContactResourceValue(contactResourceValue); }

    return contactResourceValues; } catch (LibresourceSecurityException se) { throw se; } catch (URINotExistException se) { throw se; } catch (Exception e) { throw new LibresourceAdressBookException("Error in listContactsAt : " + e.getMessage(), e); } }

    ]]>