示例#1
0
 @Override
 public Component getComponent(AbstractResource item) {
   if (KEY_ROLE_RESOURCE.equals(item.getId())) {
     return new RolePage((Resource) item);
   } else if (KEY_USER_RESOURCE.equals(item.getId())) {
     return new UserPage((Resource) item);
   } else if (KEY_ELEMENT_RESOURCE.equals(item.getId())) {
     return new ElementManager((Resource) item);
   } else if (KEY_DATA_SCOPE_RESOURCE.equals(item.getId())) {
     return new DatascopeMainPage((Resource) item);
   }
   return null;
 }
示例#2
0
 @Override
 public Component getComponent(AbstractResource item) {
   if (KEY_ORG_RESOURCE.equals(item.getId())) {
     return new OrganizationPage();
   }
   return null;
 }