Package ru.tehkode.permissions

Examples of ru.tehkode.permissions.PermissionsUserData


      @Override
      public void run() {
        List<String> names = splitIdentifiers.next();
        try {
          for (Profile profile : repo.findProfilesByNames(names.toArray(new String[names.size()]))) {
            PermissionsUserData data = backend.getUserData(profile.getName());
            data.setIdentifier(profile.getId().replaceFirst("(\\w{8})(\\w{4})(\\w{4})(\\w{4})(\\w{12})", "$1-$2-$3-$4-$5"));
            data.setOption("name", profile.getName(), null);
          }
        } catch (Exception e) {
          ErrorReport.handleError("While converting batch " + batchNum.get() + " to UUID", e);
          backend.setPersistent(true);
          return;
View Full Code Here


  public void revertUUID() {
    this.setPersistent(false);
    try {
      for (String ident : getUserIdentifiers()) {
        PermissionsUserData data = getUserData(ident);
        String name = data.getOption("name", null);
        if (name != null) {
          data.setIdentifier(name);
          data.setOption("name", null, null);
        }
      }
    } finally {
      this.setPersistent(true);
    }
View Full Code Here

TOP

Related Classes of ru.tehkode.permissions.PermissionsUserData

Copyright © 2018 www.massapicom. 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.