Interface User
- All Superinterfaces:
org.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>,org.opendaylight.yangtools.yang.binding.BindingObject,org.opendaylight.yangtools.yang.binding.DataContainer,org.opendaylight.yangtools.yang.binding.DataObject
- All Known Subinterfaces:
Users
@Generated("mdsal-binding-generator")
public interface User
extends org.opendaylight.yangtools.yang.binding.DataObject
This class represents the following YANG schema fragment defined in module aaa
grouping user {
leaf userid {
type string;
}
leaf name {
type string;
}
leaf description {
type string;
default "";
}
leaf enabled {
type boolean;
default true;
}
leaf email {
type string;
default "";
}
leaf password {
type string;
}
leaf salt {
type string;
}
leaf domainid {
type string;
}
}
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final @NonNull org.opendaylight.yangtools.yang.common.QNameYANG identifier of the statement represented by this class. -
Method Summary
Modifier and TypeMethodDescriptionReturn description, ornullif it is not present.Return domainid, ornullif it is not present.getEmail()Return email, ornullif it is not present.Return enabled, ornullif it is not present.getName()Return name, ornullif it is not present.Return password, ornullif it is not present.getSalt()Return salt, ornullif it is not present.Return userid, ornullif it is not present.default @NonNull StringReturn description, guaranteed to be non-null.default @NonNull StringReturn domainid, guaranteed to be non-null.default @NonNull StringReturn email, guaranteed to be non-null.default @NonNull BooleanReturn enabled, guaranteed to be non-null.default @NonNull StringReturn name, guaranteed to be non-null.default @NonNull StringReturn password, guaranteed to be non-null.default @NonNull StringReturn salt, guaranteed to be non-null.default @NonNull StringReturn userid, guaranteed to be non-null.
-
Field Details
-
QNAME
static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAMEYANG identifier of the statement represented by this class.
-
-
Method Details
-
implementedInterface
- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.DataObject
-
getUserid
String getUserid()Return userid, ornullif it is not present.An internal wiring detail in the form 'name@domain'.- Returns:
Stringuserid, ornullif it is not present.
-
requireUserid
Return userid, guaranteed to be non-null.An internal wiring detail in the form 'name@domain'.- Returns:
Stringuserid, guaranteed to be non-null.- Throws:
NoSuchElementException- if userid is not present
-
getName
String getName()Return name, ornullif it is not present.The name of the user.- Returns:
Stringname, ornullif it is not present.
-
requireName
Return name, guaranteed to be non-null.The name of the user.- Returns:
Stringname, guaranteed to be non-null.- Throws:
NoSuchElementException- if name is not present
-
getDescription
String getDescription()Return description, ornullif it is not present.A description for the user; defaults to the empty string.- Returns:
Stringdescription, ornullif it is not present.
-
requireDescription
Return description, guaranteed to be non-null.A description for the user; defaults to the empty string.- Returns:
Stringdescription, guaranteed to be non-null.- Throws:
NoSuchElementException- if description is not present
-
getEnabled
Boolean getEnabled()Return enabled, ornullif it is not present.Whether or not the user is enabled; defaults to true.- Returns:
Booleanenabled, ornullif it is not present.
-
requireEnabled
Return enabled, guaranteed to be non-null.Whether or not the user is enabled; defaults to true.- Returns:
Booleanenabled, guaranteed to be non-null.- Throws:
NoSuchElementException- if enabled is not present
-
getEmail
String getEmail()Return email, ornullif it is not present.An email address for the user; defaults to the empty string.- Returns:
Stringemail, ornullif it is not present.
-
requireEmail
Return email, guaranteed to be non-null.An email address for the user; defaults to the empty string.- Returns:
Stringemail, guaranteed to be non-null.- Throws:
NoSuchElementException- if email is not present
-
getPassword
String getPassword()Return password, ornullif it is not present.A one-way hashed and salted version of the users password.- Returns:
Stringpassword, ornullif it is not present.
-
requirePassword
Return password, guaranteed to be non-null.A one-way hashed and salted version of the users password.- Returns:
Stringpassword, guaranteed to be non-null.- Throws:
NoSuchElementException- if password is not present
-
getSalt
String getSalt()Return salt, ornullif it is not present.A user-specific salt used for password hashing.- Returns:
Stringsalt, ornullif it is not present.
-
requireSalt
Return salt, guaranteed to be non-null.A user-specific salt used for password hashing.- Returns:
Stringsalt, guaranteed to be non-null.- Throws:
NoSuchElementException- if salt is not present
-
getDomainid
String getDomainid()Return domainid, ornullif it is not present.The domain to which the user belongs.- Returns:
Stringdomainid, ornullif it is not present.
-
requireDomainid
Return domainid, guaranteed to be non-null.The domain to which the user belongs.- Returns:
Stringdomainid, guaranteed to be non-null.- Throws:
NoSuchElementException- if domainid is not present
-