Examples of UserConfiguration


Examples of com.openshift.client.configuration.UserConfiguration

    public IOpenShiftConnection getOpenShiftConnection() throws IOException {
        if (service == null) {
            try {

                UserConfiguration userConfiguration = new UserConfiguration(
                        new SystemConfiguration(new DefaultConfiguration()));
                if (username == null)
                    username = userConfiguration.getRhlogin();

                authKey = getBrokerAuthKey();
                authIV = getBrokerAuthIV();

                String url = null;
                if (brokerHost == null) {
                    brokerHost = userConfiguration.getLibraServer();
                    url = "https://" + brokerHost.trim();

                    LOGGER.info("Initiating Java Client Service - Configured for default OpenShift Server "
                            + url);
                } else {
View Full Code Here

Examples of de.berndsteindorff.junittca.model.UserConfiguration

    Class<?> class1 = DummyTest.class;
    Class<?> class2 = DummyTest.class;

    assertEquals(class1, class2);

    List<ClassFile> done = fcl.findClassesInClassPath(new UserConfiguration());
    Collections.sort(done);

    assertEquals(expTestClasses.size(), done.size());
    assertEquals(expTestClasses, done);
  }
View Full Code Here

Examples of jonkoshare.util.UserConfiguration

   */
 
  /*@Override*/
  public void saveData() {
    boolean flag=false;
    UserConfiguration uc=UserConfiguration.getInstance();
    try {
      this.midiOutIndex=midiOutBox.getSelectedIndex();
      uc.putProperty(MIDI_OUT_DEVICE, midiOutIndex);
      MidiDevice.Info outInfo=(MidiDevice.Info)midiOutBox.getSelectedItem();
     
      this.metronomeIndex=metronomeOutBox.getSelectedIndex();
      uc.putProperty(MIDI_METRONOME_DEVICE, metronomeIndex);
      MidiDevice.Info metronomeInfo=null;
      if (metronomeIndex>0) {
        metronomeInfo=(MidiDevice.Info)metronomeOutBox.getSelectedItem();
      }
      this.keyInIndex=keyboardInBox.getSelectedIndex();
      uc.putProperty(KEYBOARD_IN_DEVICE, keyInIndex);
      MidiDevice.Info keyInfo=(MidiDevice.Info)keyboardInBox.getSelectedItem();
      MidiDevice metroDev=null;
      if (metronomeInfo!=null) {
        metroDev=MidiSystem.getMidiDevice(metronomeInfo);
        if (metroDev.getMaxReceivers()==0) {
View Full Code Here

Examples of jpianotrain.util.UserConfiguration

public class ApplicationContext {
  private static final Logger log=Logger.getLogger(ApplicationContext.class);
 
  private ApplicationContext() {
    contextListener=new ArrayList<ApplicationContextListener>();
    UserConfiguration uc=UserConfiguration.getInstance();
    keyHintColor=uc.getColorProperty(COLOR_HINTS, Constants.COLOR_HINTS);
    keyWrongColor=uc.getColorProperty(COLOR_WRONG_KEY, Constants.COLOR_WRONG_KEY);
    showWrongKey=uc.getBooleanProperty(SHOW_WRONG_KEY, true);
    showHints=uc.getBooleanProperty(SHOW_HINTS, true);
  }
View Full Code Here

Examples of jrackattack.util.UserConfiguration

  private void chooseButtonActionPerformed(ActionEvent evt) {

    ResourceBundle bdl = ResourceBundle.getBundle("jrackattack.gui");
    boolean flag = false;
    UserConfiguration uc = UserConfiguration.getInstance();
    this.midiOutIndex = midiOutBox.getSelectedIndex();
    uc.putProperty(UserConfiguration.MIDI_OUT_DEVICE, midiOutIndex);
    MidiDevice.Info outInfo = midiOutBoxModel.getSelectedItem();
    this.midiInIndex = midiInBox.getSelectedIndex();
    uc.putProperty(UserConfiguration.MIDI_IN_DEVICE, midiInIndex);
    MidiDevice.Info inInfo = midiInBoxModel.getSelectedItem();
    MidiDevice.Info keyInfo = null;
    this.keyInIndex = keyboardInBox.getSelectedIndex();
    uc.putProperty(UserConfiguration.KEYBOARD_IN_DEVICE, keyInIndex);
    if (keyInIndex > 0) {
      keyInfo = keyboardInBoxModel.getSelectedItem();
    }
    try {
      MidiDevice inDev;
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.security.user.UserConfiguration

    }

    @Nonnull
    @Override
    public PrincipalProvider getPrincipalProvider(Root root, NamePathMapper namePathMapper) {
        UserConfiguration uc = getSecurityProvider().getConfiguration(UserConfiguration.class);
        return new PrincipalProviderImpl(root, uc, namePathMapper);
    }
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.security.user.UserConfiguration

     */
    @Nonnull
    @Override
    public TokenProvider getTokenProvider(Root root) {
        ConfigurationParameters tokenOptions = getParameters().getConfigValue(PARAM_TOKEN_OPTIONS, ConfigurationParameters.EMPTY);
        UserConfiguration uc = getSecurityProvider().getConfiguration(UserConfiguration.class);
        return new TokenProviderImpl(root, tokenOptions, uc);
    }
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.security.user.UserConfiguration

        return acCtx;
    }

    Context getUserContext() {
        if (userCtx == null) {
            UserConfiguration uc = securityProvider.getConfiguration(UserConfiguration.class);
            userCtx = uc.getContext();
        }
        return userCtx;
    }
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.security.user.UserConfiguration

        NodeState base = builder.getNodeState();
        MemoryNodeStore store = new MemoryNodeStore(base);

        Root root = new SystemRoot(store, commitHook, workspaceName, securityProvider, indexProvider);

        UserConfiguration userConfiguration = securityProvider.getConfiguration(UserConfiguration.class);
        UserManager userManager = userConfiguration.getUserManager(root, NamePathMapper.DEFAULT);

        String errorMsg = "Failed to initialize user content.";
        try {
            NodeUtil rootTree = checkNotNull(new NodeUtil(root.getTree("/")));
            NodeUtil index = rootTree.getOrAddChild(IndexConstants.INDEX_DEFINITIONS_NAME, JcrConstants.NT_UNSTRUCTURED);

            if (!index.hasChild("authorizableId")) {
                IndexUtils.createIndexDefinition(index, "authorizableId", true, new String[]{REP_AUTHORIZABLE_ID}, null);
            }
            if (!index.hasChild("principalName")) {
                IndexUtils.createIndexDefinition(index, "principalName", true,
                        new String[]{REP_PRINCIPAL_NAME},
                        new String[]{NT_REP_AUTHORIZABLE});
            }
            if (!index.hasChild("members")) {
                IndexUtils.createIndexDefinition(index, "members", false,
                        new String[]{UserConstants.REP_MEMBERS},
                        new String[]{NT_REP_MEMBER_REFERENCES});
            }

            ConfigurationParameters params = userConfiguration.getParameters();
            String adminId = params.getConfigValue(PARAM_ADMIN_ID, DEFAULT_ADMIN_ID);
            if (userManager.getAuthorizable(adminId) == null) {
                boolean omitPw = params.getConfigValue(PARAM_OMIT_ADMIN_PW, false);
                userManager.createUser(adminId, (omitPw) ? null : adminId);
            }
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.security.user.UserConfiguration

    protected UserManager getUserManager() {
        UserManager userManager = null;
        SecurityProvider sp = getSecurityProvider();
        Root r = getRoot();
        if (r != null && sp != null) {
            UserConfiguration uc = securityProvider.getConfiguration(UserConfiguration.class);
            userManager = uc.getUserManager(r, NamePathMapper.DEFAULT);
        }

        if (userManager == null && callbackHandler != null) {
            try {
                UserManagerCallback userCallBack = new UserManagerCallback();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.