All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edu.internet2.middleware.grouper.grouperUi.beans.ui.EntityDataFieldsContainer Maven / Gradle / Ivy

There is a newer version: 5.13.5
Show newest version
package edu.internet2.middleware.grouper.grouperUi.beans.ui;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

import edu.internet2.middleware.grouper.dataField.GrouperDataField;
import edu.internet2.middleware.grouper.dataField.GrouperDataFieldConfiguration;
import edu.internet2.middleware.grouper.dataField.GrouperDataProvider;
import edu.internet2.middleware.grouper.dataField.GrouperDataProviderConfiguration;
import edu.internet2.middleware.grouper.dataField.GrouperDataProviderQueryConfiguration;
import edu.internet2.middleware.grouper.dataField.GrouperDataProviderChangeLogQueryConfiguration;
import edu.internet2.middleware.grouper.dataField.GrouperDataRow;
import edu.internet2.middleware.grouper.dataField.GrouperDataRowConfiguration;
import edu.internet2.middleware.grouper.dataField.GrouperPrivacyRealmConfiguration;
import edu.internet2.middleware.grouper.privs.PrivilegeHelper;
import edu.internet2.middleware.grouper.ui.GrouperUiFilter;
import edu.internet2.middleware.subject.Subject;

public class EntityDataFieldsContainer {
  
  private int privacyRealmNumberOfConfigs;
  
  private int dataFieldsNumberOfConfigs;
  
  private int dataRowsNumberOfConfigs;
  
  private int dataProvidersNumberOfConfigs;
  
  private int dataProviderQueriesNumberOfConfigs;

  private int dataProviderChangeLogQueriesNumberOfConfigs;

  private List grouperDataFields;

  private List grouperDataRows;
  
  private List grouperDataProviders;
  
//  private List grouperDataProviderQueries;
  
  private GuiDataFieldConfiguration guiDataFieldConfiguration;
  
  private GuiPrivacyRealmConfiguration guiPrivacyRealmConfiguration;

  private GuiDataProviderConfiguration guiDataProviderConfiguration;

  private GuiDataProviderQueryConfiguration guiDataProviderQueryConfiguration;

  private GuiDataProviderChangeLogQueryConfiguration guiDataProviderChangeLogQueryConfiguration;

  private GuiDataRowConfiguration guiDataRowConfiguration;
  
  private List guiPrivacyRealmConfigurations = new ArrayList<>();

  private List guiDataProviderConfigurations = new ArrayList<>();

  private List guiDataProviderQueryConfigurations = new ArrayList<>();

  private List guiDataProviderChangeLogQueryConfigurations = new ArrayList<>();
  
  private List guiDataFieldConfigurations = new ArrayList<>();

  private List guiDataRowConfigurations = new ArrayList<>();
  
  private List guiDataFieldRowDictionaryTables = new ArrayList<>();
  
  /**
   * @return true if can operate on entity data fields
   */
  public boolean isCanOperateOnEntityDataFieldConfigs() {
    
    Subject loggedInSubject = GrouperUiFilter.retrieveSubjectLoggedIn();
    if (PrivilegeHelper.isWheelOrRoot(loggedInSubject)) {
      return true;
    }
    return false;
  }
  
  
  public GuiDataProviderQueryConfiguration getGuiDataProviderQueryConfiguration() {
    return guiDataProviderQueryConfiguration;
  }



  
  public void setGuiDataProviderQueryConfiguration(
      GuiDataProviderQueryConfiguration guiDataProviderQueryConfiguration) {
    this.guiDataProviderQueryConfiguration = guiDataProviderQueryConfiguration;
  }



  
  public List getGuiDataProviderQueryConfigurations() {
    return guiDataProviderQueryConfigurations;
  }



  
  public void setGuiDataProviderQueryConfigurations(
      List guiDataProviderQueryConfigurations) {
    this.guiDataProviderQueryConfigurations = guiDataProviderQueryConfigurations;
  }

  public GuiDataProviderChangeLogQueryConfiguration getGuiDataProviderChangeLogQueryConfiguration() {
    return guiDataProviderChangeLogQueryConfiguration;
  }



  
  public void setGuiDataProviderChangeLogQueryConfiguration(
      GuiDataProviderChangeLogQueryConfiguration guiDataProviderChangeLogQueryConfiguration) {
    this.guiDataProviderChangeLogQueryConfiguration = guiDataProviderChangeLogQueryConfiguration;
  }



  
  public List getGuiDataProviderChangeLogQueryConfigurations() {
    return guiDataProviderChangeLogQueryConfigurations;
  }



  
  public void setGuiDataProviderChangeLogQueryConfigurations(
      List guiDataProviderChangeLogQueryConfigurations) {
    this.guiDataProviderChangeLogQueryConfigurations = guiDataProviderChangeLogQueryConfigurations;
  }


  public GuiDataProviderConfiguration getGuiDataProviderConfiguration() {
    return guiDataProviderConfiguration;
  }


  
  public void setGuiDataProviderConfiguration(
      GuiDataProviderConfiguration guiDataProviderConfiguration) {
    this.guiDataProviderConfiguration = guiDataProviderConfiguration;
  }


  
  public List getGuiDataProviderConfigurations() {
    return guiDataProviderConfigurations;
  }


  
  public void setGuiDataProviderConfigurations(
      List guiDataProviderConfigurations) {
    this.guiDataProviderConfigurations = guiDataProviderConfigurations;
  }


  public GuiDataRowConfiguration getGuiDataRowConfiguration() {
    return guiDataRowConfiguration;
  }

  
  public void setGuiDataRowConfiguration(GuiDataRowConfiguration guiDataRowConfiguration) {
    this.guiDataRowConfiguration = guiDataRowConfiguration;
  }


  
  public List getGuiDataRowConfigurations() {
    return guiDataRowConfigurations;
  }


  
  public void setGuiDataRowConfigurations(
      List guiDataRowConfigurations) {
    this.guiDataRowConfigurations = guiDataRowConfigurations;
  }


  public List getGuiDataFieldConfigurations() {
    return guiDataFieldConfigurations;
  }

  
  public void setGuiDataFieldConfigurations(List guiDataFieldConfigurations) {
    this.guiDataFieldConfigurations = guiDataFieldConfigurations;
  }



  public List getGuiPrivacyRealmConfigurations() {
    return guiPrivacyRealmConfigurations;
  }


  
  public void setGuiPrivacyRealmConfigurations(
      List guiPrivacyRealmConfigurations) {
    this.guiPrivacyRealmConfigurations = guiPrivacyRealmConfigurations;
  }


  public GuiPrivacyRealmConfiguration getGuiPrivacyRealmConfiguration() {
    return guiPrivacyRealmConfiguration;
  }

  
  public void setGuiPrivacyRealmConfiguration(
      GuiPrivacyRealmConfiguration guiPrivacyRealmConfiguration) {
    this.guiPrivacyRealmConfiguration = guiPrivacyRealmConfiguration;
  }

  public int getPrivacyRealmNumberOfConfigs() {
    return privacyRealmNumberOfConfigs;
  }

  public void setPrivacyRealmNumberOfConfigs(int privacyRealmNumberOfConfigs) {
    this.privacyRealmNumberOfConfigs = privacyRealmNumberOfConfigs;
  }


  public GuiDataFieldConfiguration getGuiDataFieldConfiguration() {
    return guiDataFieldConfiguration;
  }

  
  public void setGuiDataFieldConfiguration(
      GuiDataFieldConfiguration guiDataFieldConfiguration) {
    this.guiDataFieldConfiguration = guiDataFieldConfiguration;
  }

  public int getDataProvidersNumberOfConfigs() {
    return dataProvidersNumberOfConfigs;
  }

  public void setDataProvidersNumberOfConfigs(int dataProvidersNumberOfConfigs) {
    this.dataProvidersNumberOfConfigs = dataProvidersNumberOfConfigs;
  }
  
  public int getDataProviderQueriesNumberOfConfigs() {
    return dataProviderQueriesNumberOfConfigs;
  }
  
  public int getDataProviderChangeLogQueriesNumberOfConfigs() {
    return dataProviderChangeLogQueriesNumberOfConfigs;
  }
  
  public void setDataProviderQueriesNumberOfConfigs(
      int dataProviderQueriesNumberOfConfigs) {
    this.dataProviderQueriesNumberOfConfigs = dataProviderQueriesNumberOfConfigs;
  }
  
  public void setDataProviderChangeLogQueriesNumberOfConfigs(
      int dataProviderChangeLogQueriesNumberOfConfigs) {
    this.dataProviderChangeLogQueriesNumberOfConfigs = dataProviderChangeLogQueriesNumberOfConfigs;
  }

  public int getDataRowsNumberOfConfigs() {
    return dataRowsNumberOfConfigs;
  }

  public void setDataRowsNumberOfConfigs(int dataRowsNumberOfConfigs) {
    this.dataRowsNumberOfConfigs = dataRowsNumberOfConfigs;
  }

  public int getDataFieldsNumberOfConfigs() {
    return dataFieldsNumberOfConfigs;
  }
  
  public void setDataFieldsNumberOfConfigs(int dataFieldsNumberOfConfigs) {
    this.dataFieldsNumberOfConfigs = dataFieldsNumberOfConfigs;
  }

  
  public List getGrouperDataFields() {
    return grouperDataFields;
  }

  
  public void setGrouperDataFields(List grouperDataFields) {
    this.grouperDataFields = grouperDataFields;
  }

  
  public List getGrouperDataRows() {
    return grouperDataRows;
  }

  
  public void setGrouperDataRows(List grouperDataRows) {
    this.grouperDataRows = grouperDataRows;
  }

  
  public List getGrouperDataProviders() {
    return grouperDataProviders;
  }

  
  public void setGrouperDataProviders(List grouperDataProviders) {
    this.grouperDataProviders = grouperDataProviders;
  }

  
//  public List getGrouperDataProviderQueries() {
//    return grouperDataProviderQueries;
//  }
//
//  
//  public void setGrouperDataProviderQueries(List grouperDataProviderQueries) {
//    this.grouperDataProviderQueries = grouperDataProviderQueries;
//  }
  
  public List getAllDataFieldTypes() {
    return Arrays.asList(new GrouperDataFieldConfiguration());
  }

  public List getAllDataRowTypes() {
    return Arrays.asList(new GrouperDataRowConfiguration());
  }
  
  public List getAllDataProviderTypes() {
    return Arrays.asList(new GrouperDataProviderConfiguration());
  }

  public List getAllDataProviderQueryTypes() {
    return Arrays.asList(new GrouperDataProviderQueryConfiguration());
  }
  
  public List getAllDataProviderChangeLogQueryTypes() {
    return Arrays.asList(new GrouperDataProviderChangeLogQueryConfiguration());
  }
  
  public List getAllPrivacyRealmTypes() {
    return Arrays.asList(new GrouperPrivacyRealmConfiguration());
  }


  
  public List getGuiDataFieldRowDictionaryTables() {
    return guiDataFieldRowDictionaryTables;
  }

  public void setGuiDataFieldRowDictionaryTables(
      List guiDataFieldRowDictionaryTables) {
    this.guiDataFieldRowDictionaryTables = guiDataFieldRowDictionaryTables;
  }
  
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy