org.ovirt.engine.sdk4.internal.containers.UserContainer Maven / Gradle / Ivy
/*
Copyright (c) 2015 Red Hat, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package org.ovirt.engine.sdk4.internal.containers;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import org.ovirt.engine.sdk4.types.Domain;
import org.ovirt.engine.sdk4.types.Group;
import org.ovirt.engine.sdk4.types.Permission;
import org.ovirt.engine.sdk4.types.Role;
import org.ovirt.engine.sdk4.types.SshPublicKey;
import org.ovirt.engine.sdk4.types.Tag;
import org.ovirt.engine.sdk4.types.User;
public class UserContainer extends IdentifiedContainer implements User {
private String department;
private String domainEntryId;
private String email;
private String lastName;
private Boolean loggedIn;
private String namespace;
private String password;
private String principal;
private String userName;
private Domain domain;
private List groups;
private List permissions;
private List roles;
private List sshPublicKeys;
private List tags;
public String department() {
return department;
}
public void department(String newDepartment) {
department = newDepartment;
}
public boolean departmentPresent() {
return department != null;
}
public String domainEntryId() {
return domainEntryId;
}
public void domainEntryId(String newDomainEntryId) {
domainEntryId = newDomainEntryId;
}
public boolean domainEntryIdPresent() {
return domainEntryId != null;
}
public String email() {
return email;
}
public void email(String newEmail) {
email = newEmail;
}
public boolean emailPresent() {
return email != null;
}
public String lastName() {
return lastName;
}
public void lastName(String newLastName) {
lastName = newLastName;
}
public boolean lastNamePresent() {
return lastName != null;
}
public boolean loggedIn() {
return loggedIn;
}
public void loggedIn(boolean newLoggedIn) {
loggedIn = Boolean.valueOf(newLoggedIn);
}
public void loggedIn(Boolean newLoggedIn) {
loggedIn = newLoggedIn;
}
public boolean loggedInPresent() {
return loggedIn != null;
}
public String namespace() {
return namespace;
}
public void namespace(String newNamespace) {
namespace = newNamespace;
}
public boolean namespacePresent() {
return namespace != null;
}
public String password() {
return password;
}
public void password(String newPassword) {
password = newPassword;
}
public boolean passwordPresent() {
return password != null;
}
public String principal() {
return principal;
}
public void principal(String newPrincipal) {
principal = newPrincipal;
}
public boolean principalPresent() {
return principal != null;
}
public String userName() {
return userName;
}
public void userName(String newUserName) {
userName = newUserName;
}
public boolean userNamePresent() {
return userName != null;
}
public Domain domain() {
return domain;
}
public void domain(Domain newDomain) {
domain = newDomain;
}
public boolean domainPresent() {
return domain != null;
}
public List groups() {
return makeUnmodifiableList(groups);
}
public void groups(List newGroups) {
groups = makeArrayList(newGroups);
}
public boolean groupsPresent() {
return groups != null && !groups.isEmpty();
}
public List permissions() {
return makeUnmodifiableList(permissions);
}
public void permissions(List newPermissions) {
permissions = makeArrayList(newPermissions);
}
public boolean permissionsPresent() {
return permissions != null && !permissions.isEmpty();
}
public List roles() {
return makeUnmodifiableList(roles);
}
public void roles(List newRoles) {
roles = makeArrayList(newRoles);
}
public boolean rolesPresent() {
return roles != null && !roles.isEmpty();
}
public List sshPublicKeys() {
return makeUnmodifiableList(sshPublicKeys);
}
public void sshPublicKeys(List newSshPublicKeys) {
sshPublicKeys = makeArrayList(newSshPublicKeys);
}
public boolean sshPublicKeysPresent() {
return sshPublicKeys != null && !sshPublicKeys.isEmpty();
}
public List tags() {
return makeUnmodifiableList(tags);
}
public void tags(List newTags) {
tags = makeArrayList(newTags);
}
public boolean tagsPresent() {
return tags != null && !tags.isEmpty();
}
}