
org.bimserver.models.store.impl.UserSessionImpl 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
/**
* 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.AccessMethod;
import org.bimserver.models.store.StorePackage;
import org.bimserver.models.store.User;
import org.bimserver.models.store.UserSession;
import org.bimserver.models.store.UserType;
import org.eclipse.emf.ecore.EClass;
/**
*
* An implementation of the model object 'User Session'.
*
*
* The following features are implemented:
*
*
* - {@link org.bimserver.models.store.impl.UserSessionImpl#getUser User}
* - {@link org.bimserver.models.store.impl.UserSessionImpl#getUsername Username}
* - {@link org.bimserver.models.store.impl.UserSessionImpl#getName Name}
* - {@link org.bimserver.models.store.impl.UserSessionImpl#getType Type}
* - {@link org.bimserver.models.store.impl.UserSessionImpl#getRemoteAddress Remote Address}
* - {@link org.bimserver.models.store.impl.UserSessionImpl#getActiveSince Active Since}
* - {@link org.bimserver.models.store.impl.UserSessionImpl#getLastActive Last Active}
* - {@link org.bimserver.models.store.impl.UserSessionImpl#getAccessMethod Access Method}
*
*
* @generated
*/
public class UserSessionImpl extends IdEObjectImpl implements UserSession {
/**
*
*
* @generated
*/
protected UserSessionImpl() {
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass() {
return StorePackage.Literals.USER_SESSION;
}
/**
*
*
* @generated
*/
@Override
protected int eStaticFeatureCount() {
return 0;
}
/**
*
*
* @generated
*/
public User getUser() {
return (User) eGet(StorePackage.Literals.USER_SESSION__USER, true);
}
/**
*
*
* @generated
*/
public void setUser(User newUser) {
eSet(StorePackage.Literals.USER_SESSION__USER, newUser);
}
/**
*
*
* @generated
*/
public String getUsername() {
return (String) eGet(StorePackage.Literals.USER_SESSION__USERNAME, true);
}
/**
*
*
* @generated
*/
public void setUsername(String newUsername) {
eSet(StorePackage.Literals.USER_SESSION__USERNAME, newUsername);
}
/**
*
*
* @generated
*/
public String getName() {
return (String) eGet(StorePackage.Literals.USER_SESSION__NAME, true);
}
/**
*
*
* @generated
*/
public void setName(String newName) {
eSet(StorePackage.Literals.USER_SESSION__NAME, newName);
}
/**
*
*
* @generated
*/
public UserType getType() {
return (UserType) eGet(StorePackage.Literals.USER_SESSION__TYPE, true);
}
/**
*
*
* @generated
*/
public void setType(UserType newType) {
eSet(StorePackage.Literals.USER_SESSION__TYPE, newType);
}
/**
*
*
* @generated
*/
public String getRemoteAddress() {
return (String) eGet(StorePackage.Literals.USER_SESSION__REMOTE_ADDRESS, true);
}
/**
*
*
* @generated
*/
public void setRemoteAddress(String newRemoteAddress) {
eSet(StorePackage.Literals.USER_SESSION__REMOTE_ADDRESS, newRemoteAddress);
}
/**
*
*
* @generated
*/
public Date getActiveSince() {
return (Date) eGet(StorePackage.Literals.USER_SESSION__ACTIVE_SINCE, true);
}
/**
*
*
* @generated
*/
public void setActiveSince(Date newActiveSince) {
eSet(StorePackage.Literals.USER_SESSION__ACTIVE_SINCE, newActiveSince);
}
/**
*
*
* @generated
*/
public Date getLastActive() {
return (Date) eGet(StorePackage.Literals.USER_SESSION__LAST_ACTIVE, true);
}
/**
*
*
* @generated
*/
public void setLastActive(Date newLastActive) {
eSet(StorePackage.Literals.USER_SESSION__LAST_ACTIVE, newLastActive);
}
/**
*
*
* @generated
*/
public AccessMethod getAccessMethod() {
return (AccessMethod) eGet(StorePackage.Literals.USER_SESSION__ACCESS_METHOD, true);
}
/**
*
*
* @generated
*/
public void setAccessMethod(AccessMethod newAccessMethod) {
eSet(StorePackage.Literals.USER_SESSION__ACCESS_METHOD, newAccessMethod);
}
} //UserSessionImpl
© 2015 - 2025 Weber Informatics LLC | Privacy Policy