| /** |
| * |
| * Copyright (c) 2011, 2016 - Loetz GmbH&Co.KG (69115 Heidelberg, Germany) |
| * |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * Christophe Loetz (Loetz GmbH&Co.KG) - initial implementation |
| * |
| */ |
| package org.eclipse.osbp.authentication.account.entities { |
| import org.eclipse.osbp.authentication.account.datatypes.*; |
| |
| entity UserAccount { |
| persistenceUnit "authentication"; |
| uuid String id; |
| var String email; |
| var String userName; |
| var String password; |
| var String [regex("[0-9]*")] extraPassword; |
| var boolean passwordReset; |
| var String position properties (key="organization" value=""); |
| var String defaultPerpective properties (key="perspective" value=""); |
| var boolean enabled; |
| var boolean locked; |
| var boolean superuser; |
| var boolean supervisor; |
| var boolean forcePwdChange; |
| var boolean notRegistered; |
| var int failedAttempt; |
| var int successfulAttempt; |
| var int cookieHashCode; |
| var String localeTag; |
| var BlobImage profileimage; |
| var String layoutingStrategy; |
| var String focusingStrategy; |
| var String theme; |
| var String printService; |
| ref UserAccountFilter [*] userAccountFilter opposite userAccount; |
| } |
| |
| entity UserAccountFilter { |
| persistenceUnit "authentication"; |
| uuid String id; |
| var String filter; |
| var boolean invers; |
| ref UserAccount userAccount opposite userAccountFilter; |
| } |
| } |