org.jboss.pressgang.ccms.wrapper.DBUserWrapper Maven / Gradle / Ivy
package org.jboss.pressgang.ccms.wrapper;
import org.jboss.pressgang.ccms.model.User;
import org.jboss.pressgang.ccms.provider.DBProviderFactory;
import org.jboss.pressgang.ccms.wrapper.base.DBBaseEntityWrapper;
public class DBUserWrapper extends DBBaseEntityWrapper implements UserWrapper {
private final User user;
public DBUserWrapper(final DBProviderFactory providerFactory, final User user, boolean isRevision) {
super(providerFactory, isRevision, User.class);
this.user = user;
}
@Override
protected User getEntity() {
return user;
}
@Override
public String getUsername() {
return getEntity().getUserName();
}
@Override
public void setId(Integer id) {
getEntity().setUserId(id);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy