Example #1
0
  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;
  }
Example #2
0
 public boolean useSchemas() {
   if (profile == null) return false;
   return profile.useSchemas();
 }
Example #3
0
 public boolean useTransformations() {
   if (profile == null) return false;
   return profile.useTransformations();
 }
Example #4
0
 public boolean isAdministrator() {
   if (profile == null) return false;
   return profile.isAdministrator();
 }
Example #5
0
 public boolean isReadonly() {
   if (profile == null) return true;
   return profile.isReadonly();
 }