Class SystemUser
- All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newdev.metaschema.oscal.lib.model.SystemUserinstance with no metadata.SystemUser(dev.metaschema.core.model.IMetaschemaData data) Constructs a newdev.metaschema.oscal.lib.model.SystemUserinstance with the specified metadata. -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd a newAuthorizedPrivilegeitem to the underlying collection.booleanAdd a newLinkitem to the underlying collection.booleanAdd a newPropertyitem to the underlying collection.booleanAdd a newStringitem to the underlying collection.Get the "Privilege".dev.metaschema.core.datatype.markup.MarkupMultilineGet the "User Description".getLinks()Get the "Link".dev.metaschema.core.model.IMetaschemaDatagetProps()Get the "Property".dev.metaschema.core.datatype.markup.MarkupMultilineGet the "Remarks".Get the "Role Identifier Reference".Get the "User Short Name".dev.metaschema.core.datatype.markup.MarkupLinegetTitle()Get the "User Title".getUuid()Get the "User Universally Unique Identifier".booleanRemove the first matchingAuthorizedPrivilegeitem from the underlying collection.booleanremoveLink(Link item) Remove the first matchingLinkitem from the underlying collection.booleanremoveProp(Property item) Remove the first matchingPropertyitem from the underlying collection.booleanremoveRoleId(String item) Remove the first matchingStringitem from the underlying collection.voidSet the "Privilege".voidsetDescription(dev.metaschema.core.datatype.markup.MarkupMultiline value) Set the "User Description".voidSet the "Link".voidSet the "Property".voidsetRemarks(dev.metaschema.core.datatype.markup.MarkupMultiline value) Set the "Remarks".voidsetRoleIds(List<String> value) Set the "Role Identifier Reference".voidsetShortName(String value) Set the "User Short Name".voidsetTitle(dev.metaschema.core.datatype.markup.MarkupLine value) Set the "User Title".voidSet the "User Universally Unique Identifier".toString()
-
Constructor Details
-
SystemUser
public SystemUser()Constructs a newdev.metaschema.oscal.lib.model.SystemUserinstance with no metadata. -
SystemUser
Constructs a newdev.metaschema.oscal.lib.model.SystemUserinstance with the specified metadata.- Parameters:
data- the metaschema data, ornullif none
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacedev.metaschema.core.model.IBoundObject
-
getUuid
Get the "User Universally Unique Identifier".A machine-oriented, globally unique identifier with cross-instance scope that can be used to reference this user class elsewhere in this or other OSCAL instances. The locally defined UUID of the
system usercan be used to reference the data item locally or globally (e.g., in an imported OSCAL instance). This UUID should be assigned per-subject, which means it should be consistently used to identify the same subject across revisions of the document.- Returns:
- the uuid value
-
setUuid
Set the "User Universally Unique Identifier".A machine-oriented, globally unique identifier with cross-instance scope that can be used to reference this user class elsewhere in this or other OSCAL instances. The locally defined UUID of the
system usercan be used to reference the data item locally or globally (e.g., in an imported OSCAL instance). This UUID should be assigned per-subject, which means it should be consistently used to identify the same subject across revisions of the document.- Parameters:
value- the uuid value to set
-
getTitle
Get the "User Title".A name given to the user, which may be used by a tool for display and navigation.
- Returns:
- the title value, or
nullif not set
-
setTitle
Set the "User Title".A name given to the user, which may be used by a tool for display and navigation.
- Parameters:
value- the title value to set, ornullto clear
-
getShortName
Get the "User Short Name".A short common name, abbreviation, or acronym for the user.
- Returns:
- the short-name value, or
nullif not set
-
setShortName
Set the "User Short Name".A short common name, abbreviation, or acronym for the user.
- Parameters:
value- the short-name value to set, ornullto clear
-
getDescription
Get the "User Description".A summary of the user's purpose within the system.
- Returns:
- the description value, or
nullif not set
-
setDescription
Set the "User Description".A summary of the user's purpose within the system.
- Parameters:
value- the description value to set, ornullto clear
-
getProps
Get the "Property".An attribute, characteristic, or quality of the containing object expressed as a namespace qualified name/value pair.
- Returns:
- the prop value
-
setProps
Set the "Property".An attribute, characteristic, or quality of the containing object expressed as a namespace qualified name/value pair.
- Parameters:
value- the prop value to set
-
addProp
Add a newPropertyitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeProp
Remove the first matchingPropertyitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getLinks
Get the "Link".A reference to a local or remote resource, that has a specific relation to the containing object.
- Returns:
- the link value
-
setLinks
Set the "Link".A reference to a local or remote resource, that has a specific relation to the containing object.
- Parameters:
value- the link value to set
-
addLink
Add a newLinkitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeLink
Remove the first matchingLinkitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getRoleIds
Get the "Role Identifier Reference".Reference to a role by UUID.
- Returns:
- the role-id value
-
setRoleIds
Set the "Role Identifier Reference".Reference to a role by UUID.
- Parameters:
value- the role-id value to set
-
addRoleId
Add a newStringitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeRoleId
Remove the first matchingStringitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getAuthorizedPrivileges
Get the "Privilege".Identifies a specific system privilege held by the user, along with an associated description and/or rationale for the privilege.
- Returns:
- the authorized-privilege value
-
setAuthorizedPrivileges
Set the "Privilege".Identifies a specific system privilege held by the user, along with an associated description and/or rationale for the privilege.
- Parameters:
value- the authorized-privilege value to set
-
addAuthorizedPrivilege
Add a newAuthorizedPrivilegeitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeAuthorizedPrivilege
Remove the first matchingAuthorizedPrivilegeitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getRemarks
Get the "Remarks".Additional commentary about the containing object.
- Returns:
- the remarks value, or
nullif not set
-
setRemarks
Set the "Remarks".Additional commentary about the containing object.
- Parameters:
value- the remarks value to set, ornullto clear
-
toString
-