public static BasePanel getPanel()

in openmeetings-web/src/main/java/org/apache/openmeetings/web/util/OmUrlFragment.java [257:317]


	public static BasePanel getPanel(AreaKeys area, String type) {
		BasePanel basePanel = null;
		switch(area) {
			case ADMIN:
				if (TYPE_USER.equals(type)) {
					basePanel = new UsersPanel(CHILD_ID);
				} else if (TYPE_CONNECTION.equals(type)) {
					basePanel = new ConnectionsPanel(CHILD_ID);
				} else if (TYPE_GROUP.equals(type)) {
					basePanel = new GroupsPanel(CHILD_ID);
				} else if (TYPE_ROOM.equals(type)) {
					basePanel = new RoomsPanel(CHILD_ID);
				} else if (TYPE_CONFIG.equals(type)) {
					basePanel = new ConfigsPanel(CHILD_ID);
				} else if (TYPE_LANG.equals(type)) {
					basePanel = new LangPanel(CHILD_ID);
				} else if (TYPE_LDAP.equals(type)) {
					basePanel = new LdapsPanel(CHILD_ID);
				} else if (TYPE_BACKUP.equals(type)) {
					basePanel = new BackupPanel(CHILD_ID);
				} else if (TYPE_OAUTH2.equals(type)) {
					basePanel = new OAuthPanel(CHILD_ID);
				} else if (TYPE_EMAIL.equals(type)) {
					basePanel = new EmailPanel(CHILD_ID);
				} else if (TYPE_EXTRA.equals(type)) {
					basePanel = new ExtraPanel(CHILD_ID);
				}
				break;
			case PROFILE:
				if (TYPE_MESSAGES.equals(type)) {
					basePanel = new MessagesContactsPanel(CHILD_ID);
				} else if (TYPE_EDIT.equals(type)) {
					basePanel = new EditProfilePanel(CHILD_ID);
				} else if (TYPE_SEARCH.equals(type)) {
					basePanel = new UserSearchPanel(CHILD_ID);
				} else if (TYPE_INVITATION.equals(type)) {
					basePanel = new InvitationsPanel(CHILD_ID);
				} else if (TYPE_WIDGET.equals(type)) {
					basePanel = new WidgetsPanel(CHILD_ID);
				}
				break;
			case ROOM:
				basePanel = getRoomPanel(type);
				break;
			case ROOMS:
				basePanel = new RoomsSelectorPanel(CHILD_ID, type);
				break;
			case USER:
				if (TYPE_CALENDAR.equals(type)) {
					basePanel = new CalendarPanel(CHILD_ID);
				} else if (TYPE_RECORDINGS.equals(type)) {
					basePanel = new RecordingsPanel(CHILD_ID);
				} else {
					basePanel = new OmDashboardPanel(CHILD_ID);
				}
				break;
			default:
				break;
		}
		return basePanel;
	}