Ignore:
Timestamp:
08/18/14 09:50:16 (10 years ago)
Author:
olhsha@mpi.nl
Message:

Unit test for getting profiles and components from groups. A little bug is fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ComponentRegistry/trunk/ComponentRegistry/src/main/java/clarin/cmdi/componentregistry/frontend/AdminHomePage.java

    r5549 r5556  
    2929import clarin.cmdi.componentregistry.ComponentRegistryException;
    3030import clarin.cmdi.componentregistry.ComponentRegistryFactory;
     31import clarin.cmdi.componentregistry.ItemNotFoundException;
    3132import clarin.cmdi.componentregistry.MDMarshaller;
    3233import clarin.cmdi.componentregistry.RegistrySpace;
     
    5354    private MDMarshaller marshaller;
    5455
    55     public AdminHomePage(final PageParameters parameters) throws ComponentRegistryException {
     56    public AdminHomePage(final PageParameters parameters) throws ComponentRegistryException, ItemNotFoundException {
    5657        super(parameters);
    5758        adminRegistry.setComponentRegistryFactory(componentRegistryFactory);
     
    181182    }
    182183
    183     private void reloadTreeModel(CMDItemInfo info) throws UserUnauthorizedException {
     184    private void reloadTreeModel(CMDItemInfo info) throws UserUnauthorizedException, ItemNotFoundException {
    184185        try {
    185186            tree.setModelObject(createDBTreeModel());
     
    254255    }
    255256
    256     private TreeModel createDBTreeModel() throws ComponentRegistryException, UserUnauthorizedException {
     257    private TreeModel createDBTreeModel() throws ComponentRegistryException, UserUnauthorizedException, ItemNotFoundException {
    257258        DefaultMutableTreeNode rootNode = new DefaultMutableTreeNode(new DisplayDataNode("ComponentRegistry", false));
    258259        DefaultMutableTreeNode publicNode = new DefaultMutableTreeNode(new DisplayDataNode("Public", false));
     
    270271    }
    271272
    272     private void add(DefaultMutableTreeNode parent, ComponentRegistry registry) throws ComponentRegistryException, UserUnauthorizedException {
     273    private void add(DefaultMutableTreeNode parent, ComponentRegistry registry) throws ComponentRegistryException, UserUnauthorizedException, ItemNotFoundException {
    273274        DefaultMutableTreeNode componentsNode = new DefaultMutableTreeNode(new DisplayDataNode("Components", false));
    274275        parent.add(componentsNode);
Note: See TracChangeset for help on using the changeset viewer.