package com.l7tech.identity;

import com.l7tech.objectmodel.Goid;
import com.l7tech.objectmodel.migration.Migration;
import com.l7tech.objectmodel.migration.MigrationMappingSelection;
import com.l7tech.objectmodel.migration.PropertyResolver.Type;
import java.io.Serializable;

public class UserBean implements User, Serializable {
   private static final long serialVersionUID = -2689153614711342567L;
   protected Goid providerId = IdentityProviderConfig.DEFAULT_GOID;
   protected String uniqueId;
   protected String name;
   protected String login;
   protected String hashedPassword;
   protected String httpDigest;
   protected String firstName;
   protected String lastName;
   protected String email;
   protected String department;
   protected String subjectDn;
   protected int version;
   protected boolean changePassword;
   private long passwordExpiry;

   public UserBean() {
   }

   public UserBean(Goid var1, String var2) {
      this.providerId = var1;
      this.name = var2;
      this.login = var2;
   }

   public UserBean(String var1) {
      this(IdentityProviderConfig.DEFAULT_GOID, var1);
   }

   public String getId() {
      return this.uniqueId;
   }

   public void setUniqueIdentifier(String var1) {
      this.uniqueId = var1;
   }

   public void setLogin(String var1) {
      this.login = var1;
   }

   @Override
   public String getLogin() {
      return this.login;
   }

   public String getHashedPassword() {
      return this.hashedPassword;
   }

   public String getHttpDigest() {
      return this.httpDigest;
   }

   @Override
   public String getFirstName() {
      return this.firstName;
   }

   @Override
   public String getLastName() {
      return this.lastName;
   }

   @Override
   public String getEmail() {
      return this.email;
   }

   @Override
   public String getDepartment() {
      return this.department;
   }

   @Migration(mapName = MigrationMappingSelection.NONE, mapValue = MigrationMappingSelection.NONE, export = false, resolver = Type.ID_PROVIDER_CONFIG)
   @Override
   public Goid getProviderId() {
      return this.providerId;
   }

   @Override
   public boolean isEquivalentId(Object param1) {
      // $VF: Couldn't be decompiled
      // Please report this to the Vineflower issue tracker, at https://github.com/Vineflower/vineflower/issues with a copy of the class file (if you have the rights to distribute it!)
      // java.lang.RuntimeException: parsing failure!
      //   at org.jetbrains.java.decompiler.modules.decompiler.decompose.DomHelper.parseGraph(DomHelper.java:211)
      //   at org.jetbrains.java.decompiler.main.rels.MethodProcessor.codeToJava(MethodProcessor.java:174)
      //
      // Bytecode:
      // 00: aload 0
      // 01: getfield com/l7tech/identity/UserBean.uniqueId Ljava/lang/String;
      // 04: ifnull 1b
      // 07: aload 0
      // 08: getfield com/l7tech/identity/UserBean.uniqueId Ljava/lang/String;
      // 0b: aload 1
      // 0c: invokevirtual java/lang/String.equals (Ljava/lang/Object;)Z
      // 0f: ifeq 1b
      // 12: goto 16
      // 15: athrow
      // 16: bipush 1
      // 17: goto 1c
      // 1a: athrow
      // 1b: bipush 0
      // 1c: ireturn
      // try (0 -> 8): 9 java/lang/IllegalStateException
      // try (3 -> 12): 12 java/lang/IllegalStateException
   }

   public void setProviderId(Goid var1) {
      this.providerId = var1;
   }

   public void setHashedPassword(String var1) throws IllegalStateException {
      this.hashedPassword = var1;
   }

   public void setHttpDigest(String var1) {
      this.httpDigest = var1;
   }

   public void setFirstName(String var1) {
      this.firstName = var1;
   }

   public void setLastName(String var1) {
      this.lastName = var1;
   }

   public void setEmail(String var1) {
      this.email = var1;
   }

   public void setDepartment(String var1) {
      this.department = var1;
   }

   @Override
   public String getName() {
      return this.name;
   }

   public void setName(String var1) {
      this.name = var1;
   }

   @Override
   public String getSubjectDn() {
      return this.subjectDn;
   }

   public void setSubjectDn(String var1) {
      this.subjectDn = var1;
   }

   public int getVersion() {
      return this.version;
   }

   public void setVersion(int var1) {
      this.version = var1;
   }

   public boolean isChangePassword() {
      return this.changePassword;
   }

   public void setChangePassword(boolean var1) {
      this.changePassword = var1;
   }

   public long getPasswordExpiry() {
      return this.passwordExpiry;
   }

   public void setPasswordExpiry(long var1) {
      this.passwordExpiry = var1;
   }

   @Override
   public boolean equals(Object param1) {
      // $VF: Couldn't be decompiled
      // Please report this to the Vineflower issue tracker, at https://github.com/Vineflower/vineflower/issues with a copy of the class file (if you have the rights to distribute it!)
      // java.lang.RuntimeException: parsing failure!
      //   at org.jetbrains.java.decompiler.modules.decompiler.decompose.DomHelper.parseGraph(DomHelper.java:211)
      //   at org.jetbrains.java.decompiler.main.rels.MethodProcessor.codeToJava(MethodProcessor.java:174)
      //
      // Bytecode:
      // 000: aload 0
      // 001: aload 1
      // 002: if_acmpne 008
      // 005: bipush 1
      // 006: ireturn
      // 007: athrow
      // 008: aload 1
      // 009: ifnull 01b
      // 00c: aload 0
      // 00d: invokevirtual java/lang/Object.getClass ()Ljava/lang/Class;
      // 010: aload 1
      // 011: invokevirtual java/lang/Object.getClass ()Ljava/lang/Class;
      // 014: if_acmpeq 01e
      // 017: goto 01b
      // 01a: athrow
      // 01b: bipush 0
      // 01c: ireturn
      // 01d: athrow
      // 01e: aload 1
      // 01f: checkcast com/l7tech/identity/UserBean
      // 022: astore 2
      // 023: aload 0
      // 024: getfield com/l7tech/identity/UserBean.providerId Lcom/l7tech/objectmodel/Goid;
      // 027: ifnull 040
      // 02a: aload 0
      // 02b: getfield com/l7tech/identity/UserBean.providerId Lcom/l7tech/objectmodel/Goid;
      // 02e: aload 2
      // 02f: getfield com/l7tech/identity/UserBean.providerId Lcom/l7tech/objectmodel/Goid;
      // 032: invokevirtual com/l7tech/objectmodel/Goid.equals (Ljava/lang/Object;)Z
      // 035: ifne 04a
      // 038: goto 03c
      // 03b: athrow
      // 03c: goto 047
      // 03f: athrow
      // 040: aload 2
      // 041: getfield com/l7tech/identity/UserBean.providerId Lcom/l7tech/objectmodel/Goid;
      // 044: ifnull 04a
      // 047: bipush 0
      // 048: ireturn
      // 049: athrow
      // 04a: aload 0
      // 04b: getfield com/l7tech/identity/UserBean.department Ljava/lang/String;
      // 04e: ifnull 067
      // 051: aload 0
      // 052: getfield com/l7tech/identity/UserBean.department Ljava/lang/String;
      // 055: aload 2
      // 056: getfield com/l7tech/identity/UserBean.department Ljava/lang/String;
      // 059: invokevirtual java/lang/String.equals (Ljava/lang/Object;)Z
      // 05c: ifne 071
      // 05f: goto 063
      // 062: athrow
      // 063: goto 06e
      // 066: athrow
      // 067: aload 2
      // 068: getfield com/l7tech/identity/UserBean.department Ljava/lang/String;
      // 06b: ifnull 071
      // 06e: bipush 0
      // 06f: ireturn
      // 070: athrow
      // 071: aload 0
      // 072: getfield com/l7tech/identity/UserBean.email Ljava/lang/String;
      // 075: ifnull 08e
      // 078: aload 0
      // 079: getfield com/l7tech/identity/UserBean.email Ljava/lang/String;
      // 07c: aload 2
      // 07d: getfield com/l7tech/identity/UserBean.email Ljava/lang/String;
      // 080: invokevirtual java/lang/String.equals (Ljava/lang/Object;)Z
      // 083: ifne 098
      // 086: goto 08a
      // 089: athrow
      // 08a: goto 095
      // 08d: athrow
      // 08e: aload 2
      // 08f: getfield com/l7tech/identity/UserBean.email Ljava/lang/String;
      // 092: ifnull 098
      // 095: bipush 0
      // 096: ireturn
      // 097: athrow
      // 098: aload 0
      // 099: getfield com/l7tech/identity/UserBean.firstName Ljava/lang/String;
      // 09c: ifnull 0b5
      // 09f: aload 0
      // 0a0: getfield com/l7tech/identity/UserBean.firstName Ljava/lang/String;
      // 0a3: aload 2
      // 0a4: getfield com/l7tech/identity/UserBean.firstName Ljava/lang/String;
      // 0a7: invokevirtual java/lang/String.equals (Ljava/lang/Object;)Z
      // 0aa: ifne 0bf
      // 0ad: goto 0b1
      // 0b0: athrow
      // 0b1: goto 0bc
      // 0b4: athrow
      // 0b5: aload 2
      // 0b6: getfield com/l7tech/identity/UserBean.firstName Ljava/lang/String;
      // 0b9: ifnull 0bf
      // 0bc: bipush 0
      // 0bd: ireturn
      // 0be: athrow
      // 0bf: aload 0
      // 0c0: getfield com/l7tech/identity/UserBean.lastName Ljava/lang/String;
      // 0c3: ifnull 0dc
      // 0c6: aload 0
      // 0c7: getfield com/l7tech/identity/UserBean.lastName Ljava/lang/String;
      // 0ca: aload 2
      // 0cb: getfield com/l7tech/identity/UserBean.lastName Ljava/lang/String;
      // 0ce: invokevirtual java/lang/String.equals (Ljava/lang/Object;)Z
      // 0d1: ifne 0e6
      // 0d4: goto 0d8
      // 0d7: athrow
      // 0d8: goto 0e3
      // 0db: athrow
      // 0dc: aload 2
      // 0dd: getfield com/l7tech/identity/UserBean.lastName Ljava/lang/String;
      // 0e0: ifnull 0e6
      // 0e3: bipush 0
      // 0e4: ireturn
      // 0e5: athrow
      // 0e6: aload 0
      // 0e7: getfield com/l7tech/identity/UserBean.login Ljava/lang/String;
      // 0ea: ifnull 103
      // 0ed: aload 0
      // 0ee: getfield com/l7tech/identity/UserBean.login Ljava/lang/String;
      // 0f1: aload 2
      // 0f2: getfield com/l7tech/identity/UserBean.login Ljava/lang/String;
      // 0f5: invokevirtual java/lang/String.equals (Ljava/lang/Object;)Z
      // 0f8: ifne 10d
      // 0fb: goto 0ff
      // 0fe: athrow
      // 0ff: goto 10a
      // 102: athrow
      // 103: aload 2
      // 104: getfield com/l7tech/identity/UserBean.login Ljava/lang/String;
      // 107: ifnull 10d
      // 10a: bipush 0
      // 10b: ireturn
      // 10c: athrow
      // 10d: aload 0
      // 10e: getfield com/l7tech/identity/UserBean.name Ljava/lang/String;
      // 111: ifnull 12a
      // 114: aload 0
      // 115: getfield com/l7tech/identity/UserBean.name Ljava/lang/String;
      // 118: aload 2
      // 119: getfield com/l7tech/identity/UserBean.name Ljava/lang/String;
      // 11c: invokevirtual java/lang/String.equals (Ljava/lang/Object;)Z
      // 11f: ifne 134
      // 122: goto 126
      // 125: athrow
      // 126: goto 131
      // 129: athrow
      // 12a: aload 2
      // 12b: getfield com/l7tech/identity/UserBean.name Ljava/lang/String;
      // 12e: ifnull 134
      // 131: bipush 0
      // 132: ireturn
      // 133: athrow
      // 134: aload 0
      // 135: getfield com/l7tech/identity/UserBean.changePassword Z
      // 138: aload 2
      // 139: getfield com/l7tech/identity/UserBean.changePassword Z
      // 13c: if_icmpeq 142
      // 13f: bipush 0
      // 140: ireturn
      // 141: athrow
      // 142: aload 0
      // 143: getfield com/l7tech/identity/UserBean.passwordExpiry J
      // 146: aload 2
      // 147: getfield com/l7tech/identity/UserBean.passwordExpiry J
      // 14a: lcmp
      // 14b: ifeq 151
      // 14e: bipush 0
      // 14f: ireturn
      // 150: athrow
      // 151: bipush 1
      // 152: ireturn
      // try (0 -> 5): 5 java/lang/IllegalStateException
      // try (6 -> 13): 14 java/lang/IllegalStateException
      // try (8 -> 17): 17 java/lang/IllegalStateException
      // try (21 -> 30): 31 java/lang/IllegalStateException
      // try (24 -> 33): 33 java/lang/IllegalStateException
      // try (34 -> 39): 39 java/lang/IllegalStateException
      // try (40 -> 49): 50 java/lang/IllegalStateException
      // try (43 -> 52): 52 java/lang/IllegalStateException
      // try (53 -> 58): 58 java/lang/IllegalStateException
      // try (59 -> 68): 69 java/lang/IllegalStateException
      // try (62 -> 71): 71 java/lang/IllegalStateException
      // try (72 -> 77): 77 java/lang/IllegalStateException
      // try (78 -> 87): 88 java/lang/IllegalStateException
      // try (81 -> 90): 90 java/lang/IllegalStateException
      // try (91 -> 96): 96 java/lang/IllegalStateException
      // try (97 -> 106): 107 java/lang/IllegalStateException
      // try (100 -> 109): 109 java/lang/IllegalStateException
      // try (110 -> 115): 115 java/lang/IllegalStateException
      // try (116 -> 125): 126 java/lang/IllegalStateException
      // try (119 -> 128): 128 java/lang/IllegalStateException
      // try (129 -> 134): 134 java/lang/IllegalStateException
      // try (135 -> 144): 145 java/lang/IllegalStateException
      // try (138 -> 147): 147 java/lang/IllegalStateException
      // try (148 -> 153): 153 java/lang/IllegalStateException
      // try (154 -> 161): 161 java/lang/IllegalStateException
      // try (162 -> 170): 170 java/lang/IllegalStateException
   }

   @Override
   public int hashCode() {
      int var1 = this.providerId.hashCode();

      int var10000;
      int var10001;
      label87: {
         try {
            var10000 = 31 * var1;
            if (this.name != null) {
               var10001 = this.name.hashCode();
               break label87;
            }
         } catch (IllegalStateException var7) {
            throw var7;
         }

         var10001 = 0;
      }

      var1 = var10000 + var10001;

      label79: {
         try {
            var10000 = 31 * var1;
            if (this.login != null) {
               var10001 = this.login.hashCode();
               break label79;
            }
         } catch (IllegalStateException var6) {
            throw var6;
         }

         var10001 = 0;
      }

      var1 = var10000 + var10001;

      label71: {
         try {
            var10000 = 31 * var1;
            if (this.firstName != null) {
               var10001 = this.firstName.hashCode();
               break label71;
            }
         } catch (IllegalStateException var5) {
            throw var5;
         }

         var10001 = 0;
      }

      var1 = var10000 + var10001;

      label63: {
         try {
            var10000 = 31 * var1;
            if (this.lastName != null) {
               var10001 = this.lastName.hashCode();
               break label63;
            }
         } catch (IllegalStateException var4) {
            throw var4;
         }

         var10001 = 0;
      }

      var1 = var10000 + var10001;

      label55: {
         try {
            var10000 = 31 * var1;
            if (this.email != null) {
               var10001 = this.email.hashCode();
               break label55;
            }
         } catch (IllegalStateException var3) {
            throw var3;
         }

         var10001 = 0;
      }

      var1 = var10000 + var10001;

      label47: {
         try {
            var10000 = 31 * var1;
            if (this.department != null) {
               var10001 = this.department.hashCode();
               break label47;
            }
         } catch (IllegalStateException var2) {
            throw var2;
         }

         var10001 = 0;
      }

      var1 = var10000 + var10001;
      var1 = 31 * var1 + Boolean.valueOf(this.changePassword).hashCode();
      return 31 * var1 + (int)(this.passwordExpiry ^ this.passwordExpiry >>> 32);
   }
}
