Tabnine Logo
DbUser.setNamespace
Code IndexAdd Tabnine to your IDE (free)

How to use
setNamespace
method
in
org.ovirt.engine.core.common.businessentities.aaa.DbUser

Best Java code snippets using org.ovirt.engine.core.common.businessentities.aaa.DbUser.setNamespace (Showing top 4 results out of 315)

origin: oVirt/ovirt-engine

protected void addGroupsToModel(QueryReturnValue returnValue, Set<String> excludeUsers) {
  for (Queryable item : (Collection<Queryable>) returnValue.getReturnValue()) {
    DirectoryGroup a = (DirectoryGroup) item;
    if (!excludeUsers.contains(a.getId())) {
      // TODO: This is a hack, we should either use DbGroup or reimplement user/group representation in GWT
      DbUser group = new DbUser();
      group.setExternalId(a.getId());
      group.setFirstName(a.getName());
      group.setLastName(""); //$NON-NLS-1$
      // TODO: Due to group -> DbUser mapping hack we have to use note to represent display name of group
      group.setNote(a.getDisplayName());
      group.setDomain(a.getDirectoryName());
      group.setNamespace(a.getNamespace());
      EntityModel<DbUser> groupEntity = new EntityModel<>();
      groupEntity.setEntity(group);
      getgroups().add(groupEntity);
    }
  }
}
protected Set<String> getExcludeUsers() {
origin: oVirt/ovirt-engine

currentUser.setLastName(USER);
currentUser.setDomain(DOMAIN);
currentUser.setNamespace(NAMESPACE);
currentUser.setId(GUIDS[0]);
origin: oVirt/ovirt-engine

@BeforeEach
@Override
public void setUp() throws Exception {
  super.setUp();
  vm = FixturesTool.VM_RHEL5_POOL_50;
  existingUser = dao
      .get(new Guid("9bf7c640-b620-456f-a550-0348f366544a"));
  deletableUser = dao.get(new Guid("9bf7c640-b620-456f-a550-0348f366544b"));
  newUser = new DbUser();
  newUser.setExternalId("0");
  newUser.setId(Guid.newGuid());
  newUser.setFirstName("Bob");
  newUser.setLastName("Milqtoste");
  newUser.setLoginName("newuser");
  newUser.setEmail("newuser@redhat.com");
  newUser.setDomain("domain");
  newUser.setGroupNames(new LinkedList<>(Collections.singletonList("groups")));
  newUser.setNamespace("*");
}
origin: oVirt/ovirt-engine

@Mapping(from = User.class, to = DbUser.class)
public static DbUser map(User model, DbUser template) {
  DbUser entity = template != null? template: new DbUser();
  if (model.isSetPrincipal()) {
    entity.setLoginName(model.getPrincipal());
  } else if (model.isSetName()) {
    entity.setLoginName(model.getName());
  }
  if (model.isSetId()) {
    String id = model.getId();
    entity.setId(GuidUtils.asGuid(id));
  }
  if (model.isSetDomain()) {
    Domain domain = model.getDomain();
    if (domain.isSetName()) {
      entity.setDomain(domain.getName());
    }
  }
  if (model.isSetDomainEntryId()) {
    entity.setExternalId(DirectoryEntryIdUtils.decode(model.getDomainEntryId()));
  }
  if (model.isSetNamespace()) {
    entity.setNamespace(model.getNamespace());
  }
  return entity;
}
org.ovirt.engine.core.common.businessentities.aaaDbUsersetNamespace

Popular methods of DbUser

  • getDomain
  • getId
  • getLoginName
  • <init>
  • setDomain
  • setId
  • isAdmin
  • getExternalId
  • getFirstName
  • getLastName
  • setLoginName
  • getEmail
  • setLoginName,
  • getEmail,
  • getNamespace,
  • setExternalId,
  • setFirstName,
  • setLastName,
  • getDepartment,
  • getNote,
  • getGroupNames

Popular in Java

  • Start an intent from android
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • scheduleAtFixedRate (Timer)
  • getContentResolver (Context)
  • String (java.lang)
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • JComboBox (javax.swing)
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now