org.bimserver.models.store.impl.UserImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pluginbase Show documentation
Show all versions of pluginbase Show documentation
Base project for BIMserver plugin development. Some plugins mights also need the Shared library
The newest version!
/**
* Copyright (C) 2009-2014 BIMserver.org
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see .
*/
package org.bimserver.models.store.impl;
import java.util.Date;
import org.bimserver.emf.IdEObjectImpl;
import org.bimserver.models.log.UserRelated;
import org.bimserver.models.store.ExtendedData;
import org.bimserver.models.store.ExtendedDataSchema;
import org.bimserver.models.store.ObjectState;
import org.bimserver.models.store.Project;
import org.bimserver.models.store.Revision;
import org.bimserver.models.store.Service;
import org.bimserver.models.store.StorePackage;
import org.bimserver.models.store.User;
import org.bimserver.models.store.UserSettings;
import org.bimserver.models.store.UserType;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
/**
*
* An implementation of the model object 'User'.
*
*
* The following features are implemented:
*
*
* - {@link org.bimserver.models.store.impl.UserImpl#getName Name}
* - {@link org.bimserver.models.store.impl.UserImpl#getPasswordHash Password Hash}
* - {@link org.bimserver.models.store.impl.UserImpl#getPasswordSalt Password Salt}
* - {@link org.bimserver.models.store.impl.UserImpl#getHasRightsOn Has Rights On}
* - {@link org.bimserver.models.store.impl.UserImpl#getRevisions Revisions}
* - {@link org.bimserver.models.store.impl.UserImpl#getState State}
* - {@link org.bimserver.models.store.impl.UserImpl#getCreatedOn Created On}
* - {@link org.bimserver.models.store.impl.UserImpl#getCreatedBy Created By}
* - {@link org.bimserver.models.store.impl.UserImpl#getUserType User Type}
* - {@link org.bimserver.models.store.impl.UserImpl#getUsername Username}
* - {@link org.bimserver.models.store.impl.UserImpl#getLastSeen Last Seen}
* - {@link org.bimserver.models.store.impl.UserImpl#getToken Token}
* - {@link org.bimserver.models.store.impl.UserImpl#getValidationToken Validation Token}
* - {@link org.bimserver.models.store.impl.UserImpl#getValidationTokenCreated Validation Token Created}
* - {@link org.bimserver.models.store.impl.UserImpl#getUserSettings User Settings}
* - {@link org.bimserver.models.store.impl.UserImpl#getSchemas Schemas}
* - {@link org.bimserver.models.store.impl.UserImpl#getExtendedData Extended Data}
* - {@link org.bimserver.models.store.impl.UserImpl#getServices Services}
* - {@link org.bimserver.models.store.impl.UserImpl#getLogs Logs}
*
*
* @generated
*/
public class UserImpl extends IdEObjectImpl implements User {
/**
*
*
* @generated
*/
protected UserImpl() {
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass() {
return StorePackage.Literals.USER;
}
/**
*
*
* @generated
*/
@Override
protected int eStaticFeatureCount() {
return 0;
}
/**
*
*
* @generated
*/
public String getName() {
return (String) eGet(StorePackage.Literals.USER__NAME, true);
}
/**
*
*
* @generated
*/
public void setName(String newName) {
eSet(StorePackage.Literals.USER__NAME, newName);
}
/**
*
*
* @generated
*/
public byte[] getPasswordHash() {
return (byte[]) eGet(StorePackage.Literals.USER__PASSWORD_HASH, true);
}
/**
*
*
* @generated
*/
public void setPasswordHash(byte[] newPasswordHash) {
eSet(StorePackage.Literals.USER__PASSWORD_HASH, newPasswordHash);
}
/**
*
*
* @generated
*/
public byte[] getPasswordSalt() {
return (byte[]) eGet(StorePackage.Literals.USER__PASSWORD_SALT, true);
}
/**
*
*
* @generated
*/
public void setPasswordSalt(byte[] newPasswordSalt) {
eSet(StorePackage.Literals.USER__PASSWORD_SALT, newPasswordSalt);
}
/**
*
*
* @generated
*/
@SuppressWarnings("unchecked")
public EList getHasRightsOn() {
return (EList) eGet(StorePackage.Literals.USER__HAS_RIGHTS_ON, true);
}
/**
*
*
* @generated
*/
@SuppressWarnings("unchecked")
public EList getRevisions() {
return (EList) eGet(StorePackage.Literals.USER__REVISIONS, true);
}
/**
*
*
* @generated
*/
public ObjectState getState() {
return (ObjectState) eGet(StorePackage.Literals.USER__STATE, true);
}
/**
*
*
* @generated
*/
public void setState(ObjectState newState) {
eSet(StorePackage.Literals.USER__STATE, newState);
}
/**
*
*
* @generated
*/
public Date getCreatedOn() {
return (Date) eGet(StorePackage.Literals.USER__CREATED_ON, true);
}
/**
*
*
* @generated
*/
public void setCreatedOn(Date newCreatedOn) {
eSet(StorePackage.Literals.USER__CREATED_ON, newCreatedOn);
}
/**
*
*
* @generated
*/
public User getCreatedBy() {
return (User) eGet(StorePackage.Literals.USER__CREATED_BY, true);
}
/**
*
*
* @generated
*/
public void setCreatedBy(User newCreatedBy) {
eSet(StorePackage.Literals.USER__CREATED_BY, newCreatedBy);
}
/**
*
*
* @generated
*/
public UserType getUserType() {
return (UserType) eGet(StorePackage.Literals.USER__USER_TYPE, true);
}
/**
*
*
* @generated
*/
public void setUserType(UserType newUserType) {
eSet(StorePackage.Literals.USER__USER_TYPE, newUserType);
}
/**
*
*
* @generated
*/
public String getUsername() {
return (String) eGet(StorePackage.Literals.USER__USERNAME, true);
}
/**
*
*
* @generated
*/
public void setUsername(String newUsername) {
eSet(StorePackage.Literals.USER__USERNAME, newUsername);
}
/**
*
*
* @generated
*/
public Date getLastSeen() {
return (Date) eGet(StorePackage.Literals.USER__LAST_SEEN, true);
}
/**
*
*
* @generated
*/
public void setLastSeen(Date newLastSeen) {
eSet(StorePackage.Literals.USER__LAST_SEEN, newLastSeen);
}
/**
*
*
* @generated
*/
public String getToken() {
return (String) eGet(StorePackage.Literals.USER__TOKEN, true);
}
/**
*
*
* @generated
*/
public void setToken(String newToken) {
eSet(StorePackage.Literals.USER__TOKEN, newToken);
}
/**
*
*
* @generated
*/
public byte[] getValidationToken() {
return (byte[]) eGet(StorePackage.Literals.USER__VALIDATION_TOKEN, true);
}
/**
*
*
* @generated
*/
public void setValidationToken(byte[] newValidationToken) {
eSet(StorePackage.Literals.USER__VALIDATION_TOKEN, newValidationToken);
}
/**
*
*
* @generated
*/
public Date getValidationTokenCreated() {
return (Date) eGet(StorePackage.Literals.USER__VALIDATION_TOKEN_CREATED, true);
}
/**
*
*
* @generated
*/
public void setValidationTokenCreated(Date newValidationTokenCreated) {
eSet(StorePackage.Literals.USER__VALIDATION_TOKEN_CREATED, newValidationTokenCreated);
}
/**
*
*
* @generated
*/
public UserSettings getUserSettings() {
return (UserSettings) eGet(StorePackage.Literals.USER__USER_SETTINGS, true);
}
/**
*
*
* @generated
*/
public void setUserSettings(UserSettings newUserSettings) {
eSet(StorePackage.Literals.USER__USER_SETTINGS, newUserSettings);
}
/**
*
*
* @generated
*/
@SuppressWarnings("unchecked")
public EList getSchemas() {
return (EList) eGet(StorePackage.Literals.USER__SCHEMAS, true);
}
/**
*
*
* @generated
*/
@SuppressWarnings("unchecked")
public EList getExtendedData() {
return (EList) eGet(StorePackage.Literals.USER__EXTENDED_DATA, true);
}
/**
*
*
* @generated
*/
@SuppressWarnings("unchecked")
public EList getServices() {
return (EList) eGet(StorePackage.Literals.USER__SERVICES, true);
}
/**
*
*
* @generated
*/
@SuppressWarnings("unchecked")
public EList getLogs() {
return (EList) eGet(StorePackage.Literals.USER__LOGS, true);
}
} //UserImpl
© 2015 - 2025 Weber Informatics LLC | Privacy Policy