forked from simonmartyr/MxPushNotifications
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Merge pull request #32 from mendix/821257-enable-connector-kit"
- Loading branch information
1 parent
fb0f188
commit fb60277
Showing
62 changed files
with
9,421 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,285 @@ | ||
// This file was generated by Mendix Modeler. | ||
// | ||
// WARNING: Code you write here will be lost the next time you deploy the project. | ||
|
||
package administration.proxies; | ||
|
||
/** | ||
* | ||
*/ | ||
public class Account extends system.proxies.User | ||
{ | ||
/** | ||
* Internal name of this entity | ||
*/ | ||
public static final java.lang.String entityName = "Administration.Account"; | ||
|
||
/** | ||
* Enum describing members of this entity | ||
*/ | ||
public enum MemberNames | ||
{ | ||
FullName("FullName"), | ||
IsLocalUser("IsLocalUser"), | ||
Email("Email"), | ||
Name("Name"), | ||
Password("Password"), | ||
LastLogin("LastLogin"), | ||
Blocked("Blocked"), | ||
Active("Active"), | ||
FailedLogins("FailedLogins"), | ||
WebServiceUser("WebServiceUser"), | ||
IsAnonymous("IsAnonymous"), | ||
Device_Account("PushNotifications.Device_Account"), | ||
UserRoles("System.UserRoles"), | ||
User_Language("System.User_Language"), | ||
User_TimeZone("System.User_TimeZone"); | ||
|
||
private java.lang.String metaName; | ||
|
||
MemberNames(java.lang.String s) | ||
{ | ||
metaName = s; | ||
} | ||
|
||
@Override | ||
public java.lang.String toString() | ||
{ | ||
return metaName; | ||
} | ||
} | ||
|
||
public Account(com.mendix.systemwideinterfaces.core.IContext context) | ||
{ | ||
this(context, com.mendix.core.Core.instantiate(context, "Administration.Account")); | ||
} | ||
|
||
protected Account(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject accountMendixObject) | ||
{ | ||
super(context, accountMendixObject); | ||
if (!com.mendix.core.Core.isSubClassOf("Administration.Account", accountMendixObject.getType())) | ||
throw new java.lang.IllegalArgumentException("The given object is not a Administration.Account"); | ||
} | ||
|
||
/** | ||
* @deprecated Use 'Account.load(IContext, IMendixIdentifier)' instead. | ||
*/ | ||
@Deprecated | ||
public static administration.proxies.Account initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixIdentifier mendixIdentifier) throws com.mendix.core.CoreException | ||
{ | ||
return administration.proxies.Account.load(context, mendixIdentifier); | ||
} | ||
|
||
/** | ||
* 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. | ||
* The get- and set-methods with context parameter should be used when for instance sudo access is necessary (IContext.getSudoContext() can be used to obtain sudo access). | ||
*/ | ||
public static administration.proxies.Account initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject mendixObject) | ||
{ | ||
return new administration.proxies.Account(context, mendixObject); | ||
} | ||
|
||
public static administration.proxies.Account load(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixIdentifier mendixIdentifier) throws com.mendix.core.CoreException | ||
{ | ||
com.mendix.systemwideinterfaces.core.IMendixObject mendixObject = com.mendix.core.Core.retrieveId(context, mendixIdentifier); | ||
return administration.proxies.Account.initialize(context, mendixObject); | ||
} | ||
|
||
public static java.util.List<administration.proxies.Account> load(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String xpathConstraint) throws com.mendix.core.CoreException | ||
{ | ||
java.util.List<administration.proxies.Account> result = new java.util.ArrayList<administration.proxies.Account>(); | ||
for (com.mendix.systemwideinterfaces.core.IMendixObject obj : com.mendix.core.Core.retrieveXPathQuery(context, "//Administration.Account" + xpathConstraint)) | ||
result.add(administration.proxies.Account.initialize(context, obj)); | ||
return result; | ||
} | ||
|
||
/** | ||
* @return value of FullName | ||
*/ | ||
public final String getFullName() | ||
{ | ||
return getFullName(getContext()); | ||
} | ||
|
||
/** | ||
* @param context | ||
* @return value of FullName | ||
*/ | ||
public final String getFullName(com.mendix.systemwideinterfaces.core.IContext context) | ||
{ | ||
return (String) getMendixObject().getValue(context, MemberNames.FullName.toString()); | ||
} | ||
|
||
/** | ||
* Set value of FullName | ||
* @param fullname | ||
*/ | ||
public final void setFullName(String fullname) | ||
{ | ||
setFullName(getContext(), fullname); | ||
} | ||
|
||
/** | ||
* Set value of FullName | ||
* @param context | ||
* @param fullname | ||
*/ | ||
public final void setFullName(com.mendix.systemwideinterfaces.core.IContext context, String fullname) | ||
{ | ||
getMendixObject().setValue(context, MemberNames.FullName.toString(), fullname); | ||
} | ||
|
||
/** | ||
* @return value of IsLocalUser | ||
*/ | ||
public final Boolean getIsLocalUser() | ||
{ | ||
return getIsLocalUser(getContext()); | ||
} | ||
|
||
/** | ||
* @param context | ||
* @return value of IsLocalUser | ||
*/ | ||
public final Boolean getIsLocalUser(com.mendix.systemwideinterfaces.core.IContext context) | ||
{ | ||
return (Boolean) getMendixObject().getValue(context, MemberNames.IsLocalUser.toString()); | ||
} | ||
|
||
/** | ||
* Set value of IsLocalUser | ||
* @param islocaluser | ||
*/ | ||
public final void setIsLocalUser(Boolean islocaluser) | ||
{ | ||
setIsLocalUser(getContext(), islocaluser); | ||
} | ||
|
||
/** | ||
* Set value of IsLocalUser | ||
* @param context | ||
* @param islocaluser | ||
*/ | ||
public final void setIsLocalUser(com.mendix.systemwideinterfaces.core.IContext context, Boolean islocaluser) | ||
{ | ||
getMendixObject().setValue(context, MemberNames.IsLocalUser.toString(), islocaluser); | ||
} | ||
|
||
/** | ||
* @return value of Email | ||
*/ | ||
public final String getEmail() | ||
{ | ||
return getEmail(getContext()); | ||
} | ||
|
||
/** | ||
* @param context | ||
* @return value of Email | ||
*/ | ||
public final String getEmail(com.mendix.systemwideinterfaces.core.IContext context) | ||
{ | ||
return (String) getMendixObject().getValue(context, MemberNames.Email.toString()); | ||
} | ||
|
||
/** | ||
* Set value of Email | ||
* @param email | ||
*/ | ||
public final void setEmail(String email) | ||
{ | ||
setEmail(getContext(), email); | ||
} | ||
|
||
/** | ||
* Set value of Email | ||
* @param context | ||
* @param email | ||
*/ | ||
public final void setEmail(com.mendix.systemwideinterfaces.core.IContext context, String email) | ||
{ | ||
getMendixObject().setValue(context, MemberNames.Email.toString(), email); | ||
} | ||
|
||
/** | ||
* @return value of Device_Account | ||
*/ | ||
public final pushnotifications.proxies.Device getDevice_Account() throws com.mendix.core.CoreException | ||
{ | ||
return getDevice_Account(getContext()); | ||
} | ||
|
||
/** | ||
* @param context | ||
* @return value of Device_Account | ||
*/ | ||
public final pushnotifications.proxies.Device getDevice_Account(com.mendix.systemwideinterfaces.core.IContext context) throws com.mendix.core.CoreException | ||
{ | ||
pushnotifications.proxies.Device result = null; | ||
com.mendix.systemwideinterfaces.core.IMendixIdentifier identifier = getMendixObject().getValue(context, MemberNames.Device_Account.toString()); | ||
if (identifier != null) | ||
result = pushnotifications.proxies.Device.load(context, identifier); | ||
return result; | ||
} | ||
|
||
/** | ||
* Set value of Device_Account | ||
* @param device_account | ||
*/ | ||
public final void setDevice_Account(pushnotifications.proxies.Device device_account) | ||
{ | ||
setDevice_Account(getContext(), device_account); | ||
} | ||
|
||
/** | ||
* Set value of Device_Account | ||
* @param context | ||
* @param device_account | ||
*/ | ||
public final void setDevice_Account(com.mendix.systemwideinterfaces.core.IContext context, pushnotifications.proxies.Device device_account) | ||
{ | ||
if (device_account == null) | ||
getMendixObject().setValue(context, MemberNames.Device_Account.toString(), null); | ||
else | ||
getMendixObject().setValue(context, MemberNames.Device_Account.toString(), device_account.getMendixObject().getId()); | ||
} | ||
|
||
@Override | ||
public boolean equals(Object obj) | ||
{ | ||
if (obj == this) | ||
return true; | ||
|
||
if (obj != null && getClass().equals(obj.getClass())) | ||
{ | ||
final administration.proxies.Account that = (administration.proxies.Account) obj; | ||
return getMendixObject().equals(that.getMendixObject()); | ||
} | ||
return false; | ||
} | ||
|
||
@Override | ||
public int hashCode() | ||
{ | ||
return getMendixObject().hashCode(); | ||
} | ||
|
||
/** | ||
* @return String name of this class | ||
*/ | ||
public static java.lang.String getType() | ||
{ | ||
return "Administration.Account"; | ||
} | ||
|
||
/** | ||
* @return String GUID from this object, format: ID_0000000000 | ||
* @deprecated Use getMendixObject().getId().toLong() to get a unique identifier for this object. | ||
*/ | ||
@Override | ||
@Deprecated | ||
public java.lang.String getGUID() | ||
{ | ||
return "ID_" + getMendixObject().getId().toLong(); | ||
} | ||
} |
Oops, something went wrong.