|
| 1 | +// This file was generated by Mendix Studio Pro. |
| 2 | +// |
| 3 | +// WARNING: Code you write here will be lost the next time you deploy the project. |
| 4 | + |
| 5 | +package administration.proxies; |
| 6 | + |
| 7 | +public class Account extends system.proxies.User |
| 8 | +{ |
| 9 | + /** |
| 10 | + * Internal name of this entity |
| 11 | + */ |
| 12 | + public static final java.lang.String entityName = "Administration.Account"; |
| 13 | + |
| 14 | + /** |
| 15 | + * Enum describing members of this entity |
| 16 | + */ |
| 17 | + public enum MemberNames |
| 18 | + { |
| 19 | + FullName("FullName"), |
| 20 | + Email("Email"), |
| 21 | + IsLocalUser("IsLocalUser"), |
| 22 | + Name("Name"), |
| 23 | + Password("Password"), |
| 24 | + LastLogin("LastLogin"), |
| 25 | + Blocked("Blocked"), |
| 26 | + Active("Active"), |
| 27 | + FailedLogins("FailedLogins"), |
| 28 | + WebServiceUser("WebServiceUser"), |
| 29 | + IsAnonymous("IsAnonymous"), |
| 30 | + UserRoles("System.UserRoles"), |
| 31 | + User_Language("System.User_Language"), |
| 32 | + User_TimeZone("System.User_TimeZone"); |
| 33 | + |
| 34 | + private java.lang.String metaName; |
| 35 | + |
| 36 | + MemberNames(java.lang.String s) |
| 37 | + { |
| 38 | + metaName = s; |
| 39 | + } |
| 40 | + |
| 41 | + @java.lang.Override |
| 42 | + public java.lang.String toString() |
| 43 | + { |
| 44 | + return metaName; |
| 45 | + } |
| 46 | + } |
| 47 | + |
| 48 | + public Account(com.mendix.systemwideinterfaces.core.IContext context) |
| 49 | + { |
| 50 | + this(context, com.mendix.core.Core.instantiate(context, "Administration.Account")); |
| 51 | + } |
| 52 | + |
| 53 | + protected Account(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject accountMendixObject) |
| 54 | + { |
| 55 | + super(context, accountMendixObject); |
| 56 | + if (!com.mendix.core.Core.isSubClassOf("Administration.Account", accountMendixObject.getType())) |
| 57 | + throw new java.lang.IllegalArgumentException("The given object is not a Administration.Account"); |
| 58 | + } |
| 59 | + |
| 60 | + /** |
| 61 | + * @deprecated Use 'Account.load(IContext, IMendixIdentifier)' instead. |
| 62 | + */ |
| 63 | + @java.lang.Deprecated |
| 64 | + public static administration.proxies.Account initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixIdentifier mendixIdentifier) throws com.mendix.core.CoreException |
| 65 | + { |
| 66 | + return administration.proxies.Account.load(context, mendixIdentifier); |
| 67 | + } |
| 68 | + |
| 69 | + /** |
| 70 | + * Initialize a proxy using context (recommended). This context will be used for security checking when the get- and set-methods without context parameters are called. |
| 71 | + * The get- and set-methods with context parameter should be used when for instance sudo access is necessary (IContext.createSudoClone() can be used to obtain sudo access). |
| 72 | + */ |
| 73 | + public static administration.proxies.Account initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject mendixObject) |
| 74 | + { |
| 75 | + return new administration.proxies.Account(context, mendixObject); |
| 76 | + } |
| 77 | + |
| 78 | + public static administration.proxies.Account load(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixIdentifier mendixIdentifier) throws com.mendix.core.CoreException |
| 79 | + { |
| 80 | + com.mendix.systemwideinterfaces.core.IMendixObject mendixObject = com.mendix.core.Core.retrieveId(context, mendixIdentifier); |
| 81 | + return administration.proxies.Account.initialize(context, mendixObject); |
| 82 | + } |
| 83 | + |
| 84 | + public static java.util.List<administration.proxies.Account> load(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String xpathConstraint) throws com.mendix.core.CoreException |
| 85 | + { |
| 86 | + java.util.List<administration.proxies.Account> result = new java.util.ArrayList<administration.proxies.Account>(); |
| 87 | + for (com.mendix.systemwideinterfaces.core.IMendixObject obj : com.mendix.core.Core.retrieveXPathQuery(context, "//Administration.Account" + xpathConstraint)) |
| 88 | + result.add(administration.proxies.Account.initialize(context, obj)); |
| 89 | + return result; |
| 90 | + } |
| 91 | + |
| 92 | + /** |
| 93 | + * @return value of FullName |
| 94 | + */ |
| 95 | + public final java.lang.String getFullName() |
| 96 | + { |
| 97 | + return getFullName(getContext()); |
| 98 | + } |
| 99 | + |
| 100 | + /** |
| 101 | + * @param context |
| 102 | + * @return value of FullName |
| 103 | + */ |
| 104 | + public final java.lang.String getFullName(com.mendix.systemwideinterfaces.core.IContext context) |
| 105 | + { |
| 106 | + return (java.lang.String) getMendixObject().getValue(context, MemberNames.FullName.toString()); |
| 107 | + } |
| 108 | + |
| 109 | + /** |
| 110 | + * Set value of FullName |
| 111 | + * @param fullname |
| 112 | + */ |
| 113 | + public final void setFullName(java.lang.String fullname) |
| 114 | + { |
| 115 | + setFullName(getContext(), fullname); |
| 116 | + } |
| 117 | + |
| 118 | + /** |
| 119 | + * Set value of FullName |
| 120 | + * @param context |
| 121 | + * @param fullname |
| 122 | + */ |
| 123 | + public final void setFullName(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String fullname) |
| 124 | + { |
| 125 | + getMendixObject().setValue(context, MemberNames.FullName.toString(), fullname); |
| 126 | + } |
| 127 | + |
| 128 | + /** |
| 129 | + * @return value of Email |
| 130 | + */ |
| 131 | + public final java.lang.String getEmail() |
| 132 | + { |
| 133 | + return getEmail(getContext()); |
| 134 | + } |
| 135 | + |
| 136 | + /** |
| 137 | + * @param context |
| 138 | + * @return value of Email |
| 139 | + */ |
| 140 | + public final java.lang.String getEmail(com.mendix.systemwideinterfaces.core.IContext context) |
| 141 | + { |
| 142 | + return (java.lang.String) getMendixObject().getValue(context, MemberNames.Email.toString()); |
| 143 | + } |
| 144 | + |
| 145 | + /** |
| 146 | + * Set value of Email |
| 147 | + * @param email |
| 148 | + */ |
| 149 | + public final void setEmail(java.lang.String email) |
| 150 | + { |
| 151 | + setEmail(getContext(), email); |
| 152 | + } |
| 153 | + |
| 154 | + /** |
| 155 | + * Set value of Email |
| 156 | + * @param context |
| 157 | + * @param email |
| 158 | + */ |
| 159 | + public final void setEmail(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String email) |
| 160 | + { |
| 161 | + getMendixObject().setValue(context, MemberNames.Email.toString(), email); |
| 162 | + } |
| 163 | + |
| 164 | + /** |
| 165 | + * @return value of IsLocalUser |
| 166 | + */ |
| 167 | + public final java.lang.Boolean getIsLocalUser() |
| 168 | + { |
| 169 | + return getIsLocalUser(getContext()); |
| 170 | + } |
| 171 | + |
| 172 | + /** |
| 173 | + * @param context |
| 174 | + * @return value of IsLocalUser |
| 175 | + */ |
| 176 | + public final java.lang.Boolean getIsLocalUser(com.mendix.systemwideinterfaces.core.IContext context) |
| 177 | + { |
| 178 | + return (java.lang.Boolean) getMendixObject().getValue(context, MemberNames.IsLocalUser.toString()); |
| 179 | + } |
| 180 | + |
| 181 | + /** |
| 182 | + * Set value of IsLocalUser |
| 183 | + * @param islocaluser |
| 184 | + */ |
| 185 | + public final void setIsLocalUser(java.lang.Boolean islocaluser) |
| 186 | + { |
| 187 | + setIsLocalUser(getContext(), islocaluser); |
| 188 | + } |
| 189 | + |
| 190 | + /** |
| 191 | + * Set value of IsLocalUser |
| 192 | + * @param context |
| 193 | + * @param islocaluser |
| 194 | + */ |
| 195 | + public final void setIsLocalUser(com.mendix.systemwideinterfaces.core.IContext context, java.lang.Boolean islocaluser) |
| 196 | + { |
| 197 | + getMendixObject().setValue(context, MemberNames.IsLocalUser.toString(), islocaluser); |
| 198 | + } |
| 199 | + |
| 200 | + @java.lang.Override |
| 201 | + public boolean equals(Object obj) |
| 202 | + { |
| 203 | + if (obj == this) |
| 204 | + return true; |
| 205 | + |
| 206 | + if (obj != null && getClass().equals(obj.getClass())) |
| 207 | + { |
| 208 | + final administration.proxies.Account that = (administration.proxies.Account) obj; |
| 209 | + return getMendixObject().equals(that.getMendixObject()); |
| 210 | + } |
| 211 | + return false; |
| 212 | + } |
| 213 | + |
| 214 | + @java.lang.Override |
| 215 | + public int hashCode() |
| 216 | + { |
| 217 | + return getMendixObject().hashCode(); |
| 218 | + } |
| 219 | + |
| 220 | + /** |
| 221 | + * @return String name of this class |
| 222 | + */ |
| 223 | + public static java.lang.String getType() |
| 224 | + { |
| 225 | + return "Administration.Account"; |
| 226 | + } |
| 227 | + |
| 228 | + /** |
| 229 | + * @return String GUID from this object, format: ID_0000000000 |
| 230 | + * @deprecated Use getMendixObject().getId().toLong() to get a unique identifier for this object. |
| 231 | + */ |
| 232 | + @java.lang.Override |
| 233 | + @java.lang.Deprecated |
| 234 | + public java.lang.String getGUID() |
| 235 | + { |
| 236 | + return "ID_" + getMendixObject().getId().toLong(); |
| 237 | + } |
| 238 | +} |
0 commit comments