Package gov.nist.secauto.oscal.lib.model
Class SystemImplementation
- java.lang.Object
-
- gov.nist.secauto.oscal.lib.model.SystemImplementation
-
@MetaschemaAssembly(formalName="System Implementation", description="Provides information as to how the system is implemented.", name="system-implementation", metaschema=OscalSspMetaschema.class) @ValueConstraints(allowedValues=@AllowedValues(level=ERROR,target="(component | inventory-item)/prop[has-oscal-namespace(\'http://csrc.nist.gov/ns/oscal\') and @name=\'allows-authenticated-scan\']/@value",values={@AllowedValue(value="yes",description="The component allows an authenticated scan."),@AllowedValue(value="no",description="The component does not allow an authenticated scan.")}),indexHasKey={@IndexHasKey(level=ERROR,target="component/prop[@name=\'leveraged-authorization-uuid\']",indexName="index-system-implementation-leveraged-authorization-uuid",keyFields=@KeyField(target="@value")),@IndexHasKey(level=ERROR,target="component/link[@rel=\'depends-on\']",indexName="index-system-implementation-component-uuid",keyFields=@KeyField(target="@href")),@IndexHasKey(level=ERROR,target="component/link[@rel=\'validated-by\']",indexName="index-system-implementation-component-uuid-validation",keyFields=@KeyField(target="@href")),@IndexHasKey(level=ERROR,target="component/link[@rel=\'proof-of-compliance\']",indexName="index-system-implementation-component-uuid-validation",keyFields=@KeyField(target="@href")),@IndexHasKey(level=ERROR,target="component/link[@rel=\'uses-service\']",indexName="index-system-implementation-component-uuid-service",keyFields=@KeyField(target="@href")),@IndexHasKey(level=ERROR,target="component[@type=\'service\']/link[@rel=\'provided-by\']",indexName="index-system-implementation-component-uuid-software",keyFields=@KeyField(target="@href"))}) @AssemblyConstraints(index={@Index(level=ERROR,target="leveraged-authorization",name="index-system-implementation-leveraged-authorization-uuid",keyFields=@KeyField(target="@uuid")),@Index(level=ERROR,target="component",name="index-system-implementation-component-uuid",keyFields=@KeyField(target="@uuid")),@Index(level=ERROR,target="component[@type=\'validation\']",name="index-system-implementation-component-uuid-validation",keyFields=@KeyField(target="@uuid")),@Index(level=ERROR,target="component[@type=\'service\']",name="index-system-implementation-component-uuid-service",keyFields=@KeyField(target="@uuid")),@Index(level=ERROR,target="component[@type=\'service\']",name="index-system-implementation-component-uuid-software",keyFields=@KeyField(target="@uuid"))},isUnique=@IsUnique(id="unique-ssp-system-implementation-user",level=ERROR,target="user",keyFields=@KeyField(target="@uuid"),remarks="A given `uuid` must be assigned only once to a user.")) public class SystemImplementation extends Object
Provides information as to how the system is implemented.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SystemImplementation.LeveragedAuthorization
A description of another authorized system from which this system inherits capabilities that satisfy security requirements.
-
Constructor Summary
Constructors Constructor Description SystemImplementation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addComponent(SystemComponent item)
Add a newSystemComponent
item to the underlying collection.boolean
addInventoryItem(InventoryItem item)
Add a newInventoryItem
item to the underlying collection.boolean
addLeveragedAuthorization(SystemImplementation.LeveragedAuthorization item)
Add a newSystemImplementation.LeveragedAuthorization
item to the underlying collection.boolean
addLink(Link item)
Add a newLink
item to the underlying collection.boolean
addProp(Property item)
Add a newProperty
item to the underlying collection.boolean
addUser(SystemUser item)
Add a newSystemUser
item to the underlying collection.List<SystemComponent>
getComponents()
List<InventoryItem>
getInventoryItems()
List<SystemImplementation.LeveragedAuthorization>
getLeveragedAuthorizations()
List<Link>
getLinks()
List<Property>
getProps()
gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline
getRemarks()
List<SystemUser>
getUsers()
boolean
removeComponent(SystemComponent item)
Remove the first matchingSystemComponent
item from the underlying collection.boolean
removeInventoryItem(InventoryItem item)
Remove the first matchingInventoryItem
item from the underlying collection.boolean
removeLeveragedAuthorization(SystemImplementation.LeveragedAuthorization item)
Remove the first matchingSystemImplementation.LeveragedAuthorization
item from the underlying collection.boolean
removeLink(Link item)
Remove the first matchingLink
item from the underlying collection.boolean
removeProp(Property item)
Remove the first matchingProperty
item from the underlying collection.boolean
removeUser(SystemUser item)
Remove the first matchingSystemUser
item from the underlying collection.void
setComponents(List<SystemComponent> value)
void
setInventoryItems(List<InventoryItem> value)
void
setLeveragedAuthorizations(List<SystemImplementation.LeveragedAuthorization> value)
void
setLinks(List<Link> value)
void
setProps(List<Property> value)
void
setRemarks(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline value)
void
setUsers(List<SystemUser> value)
String
toString()
-
-
-
Constructor Detail
-
SystemImplementation
public SystemImplementation()
-
-
Method Detail
-
addProp
public boolean addProp(Property item)
Add a newProperty
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeProp
public boolean removeProp(Property item)
Remove the first matchingProperty
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
addLink
public boolean addLink(Link item)
Add a newLink
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeLink
public boolean removeLink(Link item)
Remove the first matchingLink
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getLeveragedAuthorizations
public List<SystemImplementation.LeveragedAuthorization> getLeveragedAuthorizations()
-
setLeveragedAuthorizations
public void setLeveragedAuthorizations(List<SystemImplementation.LeveragedAuthorization> value)
-
addLeveragedAuthorization
public boolean addLeveragedAuthorization(SystemImplementation.LeveragedAuthorization item)
Add a newSystemImplementation.LeveragedAuthorization
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeLeveragedAuthorization
public boolean removeLeveragedAuthorization(SystemImplementation.LeveragedAuthorization item)
Remove the first matchingSystemImplementation.LeveragedAuthorization
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getUsers
public List<SystemUser> getUsers()
-
setUsers
public void setUsers(List<SystemUser> value)
-
addUser
public boolean addUser(SystemUser item)
Add a newSystemUser
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeUser
public boolean removeUser(SystemUser item)
Remove the first matchingSystemUser
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getComponents
public List<SystemComponent> getComponents()
-
setComponents
public void setComponents(List<SystemComponent> value)
-
addComponent
public boolean addComponent(SystemComponent item)
Add a newSystemComponent
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeComponent
public boolean removeComponent(SystemComponent item)
Remove the first matchingSystemComponent
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getInventoryItems
public List<InventoryItem> getInventoryItems()
-
setInventoryItems
public void setInventoryItems(List<InventoryItem> value)
-
addInventoryItem
public boolean addInventoryItem(InventoryItem item)
Add a newInventoryItem
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeInventoryItem
public boolean removeInventoryItem(InventoryItem item)
Remove the first matchingInventoryItem
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getRemarks
public gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline getRemarks()
-
setRemarks
public void setRemarks(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline value)
-
-