Class DefaultSecurityConstraints
Object
AbstractMetadata
ModifiableMetadata
ISOMetadata
DefaultConstraints
DefaultSecurityConstraints
- All Implemented Interfaces:
- Serializable,- Emptiable,- LenientComparable,- IdentifiedObject,- Constraints,- SecurityConstraints
Handling restrictions imposed on the resource for national security or similar security concerns.
 The following property is mandatory in a well-formed metadata according ISO 19115:
 
 
MD_SecurityConstraints
   └─classification………… Name of the handling restrictions on the resource.Limitations
- Instances of this class are not synchronized for multi-threading. Synchronization, if needed, is caller's responsibility.
- Serialized objects of this class are not guaranteed to be compatible with future Apache SIS releases.
       Serialization support is appropriate for short term storage or RMI between applications running the
       same version of Apache SIS. For long term storage, use XMLinstead.
- Since:
- 0.3
- See Also:
Defined in the sis-metadata module
- 
Nested Class SummaryNested classes/interfaces inherited from class ModifiableMetadataModifiableMetadata.State
- 
Field SummaryFields inherited from class ISOMetadataidentifiers
- 
Constructor SummaryConstructorsConstructorDescriptionCreates an initially empty security constraints.DefaultSecurityConstraints(CharSequence useLimitation) Constructs a new constraints with the given use limitation.DefaultSecurityConstraints(Classification classification) Creates a security constraints initialized with the specified classification.Constructs a new instance initialized with the values from the specified metadata object.
- 
Method SummaryModifier and TypeMethodDescriptionstatic DefaultSecurityConstraintscastOrCopy(SecurityConstraints object) Returns a SIS metadata implementation with the values of the given arbitrary implementation.Returns the name of the handling restrictions on the resource.Returns the name of the classification system.Returns the additional information about the restrictions on handling the resource.Returns the explanation of the application of the legal constraints or other restrictions and legal prerequisites for obtaining and using the resource.voidsetClassification(Classification newValue) Sets the name of the handling restrictions on the resource.voidsetClassificationSystem(InternationalString newValue) Sets the name of the classification system.voidsetHandlingDescription(InternationalString newValue) Sets the additional information about the restrictions on handling the resource.voidsetUserNote(InternationalString newValue) Sets the explanation of the application of the legal constraints or other restrictions and legal prerequisites for obtaining and using the resource.Methods inherited from class DefaultConstraintscastOrCopy, getConstraintApplicationScope, getGraphics, getReferences, getReleasability, getResponsibleParties, getUseLimitations, setConstraintApplicationScope, setGraphics, setReferences, setReleasability, setResponsibleParties, setUseLimitationsMethods inherited from class ISOMetadatagetIdentifier, getIdentifierMap, getIdentifiers, getStandard, setIdentifier, transitionToMethods inherited from class ModifiableMetadatacheckWritePermission, collectionType, copyCollection, copyList, copyMap, copySet, deepCopy, nonNullCollection, nonNullList, nonNullMap, nonNullSet, singleton, state, writeCollection, writeList, writeMap, writeSetMethods inherited from class AbstractMetadataasMap, asTreeTable, equals, equals, getInterface, hashCode, isEmpty, prune, toStringMethods inherited from class Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface ConstraintsgetUseLimitations
- 
Constructor Details- 
DefaultSecurityConstraintspublic DefaultSecurityConstraints()Creates an initially empty security constraints.
- 
DefaultSecurityConstraintsConstructs a new constraints with the given use limitation.- Parameters:
- useLimitation- the use limitation, or- nullif none.
 
- 
DefaultSecurityConstraintsCreates a security constraints initialized with the specified classification.- Parameters:
- classification- the name of the handling restrictions on the resource, or- null.
 
- 
DefaultSecurityConstraintsConstructs a new instance initialized with the values from the specified metadata object. This is a shallow copy constructor, because the other metadata contained in the given object are not recursively copied.- Parameters:
- object- the metadata to copy values from, or- nullif none.
- See Also:
 
 
- 
- 
Method Details- 
castOrCopyReturns a SIS metadata implementation with the values of the given arbitrary implementation. This method performs the first applicable action in the following choices:- If the given object is null, then this method returnsnull.
- Otherwise if the given object is already an instance of
       DefaultSecurityConstraints, then it is returned unchanged.
- Otherwise a new DefaultSecurityConstraintsinstance is created using the copy constructor and returned. Note that this is a shallow copy operation, because the other metadata contained in the given object are not recursively copied.
 - Parameters:
- object- the object to get as a SIS implementation, or- nullif none.
- Returns:
- a SIS implementation containing the values of the given object (may be the
         given object itself), or nullif the argument was null.
 
- If the given object is 
- 
getClassificationReturns the name of the handling restrictions on the resource.- Specified by:
- getClassificationin interface- SecurityConstraints
- Returns:
- name of the handling restrictions on the resource, or null.
 
- 
setClassificationSets the name of the handling restrictions on the resource.- Parameters:
- newValue- the new classification.
 
- 
getUserNoteReturns the explanation of the application of the legal constraints or other restrictions and legal prerequisites for obtaining and using the resource.- Specified by:
- getUserNotein interface- SecurityConstraints
- Returns:
- explanation of the application of the legal constraints, or null.
 
- 
setUserNoteSets the explanation of the application of the legal constraints or other restrictions and legal prerequisites for obtaining and using the resource.- Parameters:
- newValue- the new user note.
 
- 
getClassificationSystemReturns the name of the classification system.- Specified by:
- getClassificationSystemin interface- SecurityConstraints
- Returns:
- name of the classification system, or null.
 
- 
setClassificationSystemSets the name of the classification system.- Parameters:
- newValue- the new classification system.
 
- 
getHandlingDescriptionReturns the additional information about the restrictions on handling the resource.- Specified by:
- getHandlingDescriptionin interface- SecurityConstraints
- Returns:
- additional information about the restrictions, or null.
 
- 
setHandlingDescriptionSets the additional information about the restrictions on handling the resource.- Parameters:
- newValue- the new handling description.
 
 
-