Project

General

Profile

Definition of the main resources' path

1. Application for managing projects dependencies : Projects

1.a The java file position where the projects' dependencies are created :

fr.cnes.sitools.core/src/fr/cnes/sitools/project/ProjectAdministration.java

1.b How the dependencies are created :

By using org.restlet.routing.Router.Router(Context context) method:

    Router router = new Router(getContext());

    router.attachDefault(ProjectCollectionResource.class);

    // attach dynamic resources
    attachParameterizedResources(router);

    router.attach("/{projectId}", ProjectResource.class);
    router.attach("/{projectId}/start", ActivationProjectResource.class);
    router.attach("/{projectId}/stop", ActivationProjectResource.class);
    router.attach("/{projectId}/startmaintenance", ActivationProjectResource.class);
    router.attach("/{projectId}/stopmaintenance", ActivationProjectResource.class);

    // graph resource
    router.attach("/{projectId}/graph", GraphResource.class);

    // graph resource
    router.attach("/{projectId}/datasets", ProjectDatasetCollectionResource.class);

    // notification des modifications de resources liées au projet
    router.attach("/{projectId}/notify", ProjectNotificationResource.class);
    router.attach("/{projectId}/graph/notify", GraphNotificationResource.class);

2. Application for managing datasets dependencies : Datasets

2.a The java file position where the datasets' dependencies are created :

fr.cnes.sitools.core/src/fr/cnes/sitools/dataset/DataSetAdministration.java

2.b How the dependencies are created :

By using org.restlet.routing.Router.Router(Context context) method:
    Router router = new Router(getContext());

    router.attachDefault(DataSetCollectionResource.class);

    // attach dynamic resources
    attachParameterizedResources(router);

    router.attach("/{datasetId}", DataSetResource.class);

    router.attach("/{datasetId}/start", ActivationDataSetResource.class);
    router.attach("/{datasetId}/getSqlString", ActivationDataSetResource.class);
    router.attach("/{datasetId}/stop", ActivationDataSetResource.class);
    router.attach("/{datasetId}/refresh", RefreshDataSetResource.class);

    router.attach("/{datasetId}/notify", DataSetNotificationResource.class);
    router.attach("/{datasetId}/mappings", DataSetDictionaryMappingCollectionResource.class);
    router.attach("/{datasetId}/mappings/{dictionaryId}", DataSetDictionaryMappingResource.class);