Package dev.metaschema.oscal.lib.model
Class AuthorizedPrivilege
java.lang.Object
dev.metaschema.oscal.lib.model.AuthorizedPrivilege
- All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject
@MetaschemaAssembly(formalName="Privilege",
description="Identifies a specific system privilege held by the user, along with an associated description and/or rationale for the privilege.",
name="authorized-privilege",
moduleClass=OscalImplementationCommonModule.class)
public class AuthorizedPrivilege
extends Object
implements dev.metaschema.core.model.IBoundObject
Identifies a specific system privilege held by the user, along with an associated description and/or rationale for the privilege.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newdev.metaschema.oscal.lib.model.AuthorizedPrivilegeinstance with no metadata.AuthorizedPrivilege(dev.metaschema.core.model.IMetaschemaData data) Constructs a newdev.metaschema.oscal.lib.model.AuthorizedPrivilegeinstance with the specified metadata. -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddFunctionPerformed(String item) Add a newStringitem to the underlying collection.dev.metaschema.core.datatype.markup.MarkupMultilineGet the "Privilege Description".Get the "Functions Performed".dev.metaschema.core.model.IMetaschemaDatadev.metaschema.core.datatype.markup.MarkupLinegetTitle()Get the "Privilege Title".booleanRemove the first matchingStringitem from the underlying collection.voidsetDescription(dev.metaschema.core.datatype.markup.MarkupMultiline value) Set the "Privilege Description".voidsetFunctionsPerformed(List<String> value) Set the "Functions Performed".voidsetTitle(dev.metaschema.core.datatype.markup.MarkupLine value) Set the "Privilege Title".toString()
-
Constructor Details
-
AuthorizedPrivilege
public AuthorizedPrivilege()Constructs a newdev.metaschema.oscal.lib.model.AuthorizedPrivilegeinstance with no metadata. -
AuthorizedPrivilege
Constructs a newdev.metaschema.oscal.lib.model.AuthorizedPrivilegeinstance with the specified metadata.- Parameters:
data- the metaschema data, ornullif none
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacedev.metaschema.core.model.IBoundObject
-
getTitle
Get the "Privilege Title".A human readable name for the privilege.
- Returns:
- the title value
-
setTitle
Set the "Privilege Title".A human readable name for the privilege.
- Parameters:
value- the title value to set
-
getDescription
Get the "Privilege Description".A summary of the privilege's purpose within the system.
- Returns:
- the description value, or
nullif not set
-
setDescription
Set the "Privilege Description".A summary of the privilege's purpose within the system.
- Parameters:
value- the description value to set, ornullto clear
-
getFunctionsPerformed
Get the "Functions Performed".Describes a function performed for a given authorized privilege by this user class.
- Returns:
- the function-performed value
-
setFunctionsPerformed
Set the "Functions Performed".Describes a function performed for a given authorized privilege by this user class.
- Parameters:
value- the function-performed value to set
-
addFunctionPerformed
Add a newStringitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeFunctionPerformed
Remove the first matchingStringitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
toString
-