public RowMetaAndData fillTableRow() { RowMetaAndData r = new RowMetaAndData(); r.addValue(new ValueMeta("ID_USER", ValueMetaInterface.TYPE_INTEGER), new Long(getID())); r.addValue(new ValueMeta("LOGIN", ValueMetaInterface.TYPE_STRING), login); r.addValue( new ValueMeta("PASSWORD", ValueMetaInterface.TYPE_STRING), Encr.encryptPassword(password)); r.addValue(new ValueMeta("NAME", ValueMetaInterface.TYPE_STRING), name); r.addValue(new ValueMeta("DESCRIPTION", ValueMetaInterface.TYPE_STRING), description); r.addValue(new ValueMeta("ENABLED", ValueMetaInterface.TYPE_BOOLEAN), Boolean.valueOf(enabled)); r.addValue( new ValueMeta("ID_PROFILE", ValueMetaInterface.TYPE_INTEGER), Long.valueOf(profile.getID())); return r; }
public boolean useSchemas() { if (profile == null) return false; return profile.useSchemas(); }
public boolean useTransformations() { if (profile == null) return false; return profile.useTransformations(); }
public boolean isAdministrator() { if (profile == null) return false; return profile.isAdministrator(); }
public boolean isReadonly() { if (profile == null) return true; return profile.isReadonly(); }