org.geotoolkit.metadata.iso.constraint
Class DefaultSecurityConstraints

Object
  extended by AbstractMetadata
      extended by ModifiableMetadata
          extended by MetadataEntity
              extended by DefaultConstraints
                  extended by DefaultSecurityConstraints
All Implemented Interfaces:
Serializable, Cloneable, LenientComparable, IdentifiedObject, Constraints, SecurityConstraints

@ThreadSafe
public class DefaultSecurityConstraints
extends DefaultConstraints
implements SecurityConstraints

Handling restrictions imposed on the resource for national security or similar security concerns.

Since:
2.1
Version:
3.19
Author:
Martin Desruisseaux (IRD, Geomatys), Touraïvane (IRD), Cédric Briançon (Geomatys)
See Also:
Serialized Form
Module:
metadata/geotk-metadata (download)    View source code for this class

Field Summary
 
Fields inherited from class MetadataEntity
identifiers
 
Fields inherited from class AbstractMetadata
LOGGER
 
Constructor Summary
DefaultSecurityConstraints()
          Creates an initially empty security constraints.
DefaultSecurityConstraints(Classification classification)
          Creates a security constraints initialized with the specified classification.
DefaultSecurityConstraints(SecurityConstraints source)
          Constructs a metadata entity initialized with the values from the specified metadata.
 
Method Summary
static DefaultSecurityConstraints castOrCopy(SecurityConstraints object)
          Returns a Geotk metadata implementation with the same values than the given arbitrary implementation.
 Classification getClassification()
          Returns the name of the handling restrictions on the resource.
 InternationalString getClassificationSystem()
          Returns the name of the classification system.
 InternationalString getHandlingDescription()
          Returns the additional information about the restrictions on handling the resource.
 InternationalString getUserNote()
          Returns the explanation of the application of the legal constraints or other restrictions and legal prerequisites for obtaining and using the resource.
 void setClassification(Classification newValue)
          Sets the name of the handling restrictions on the resource.
 void setClassificationSystem(InternationalString newValue)
          Sets the name of the classification system.
 void setHandlingDescription(InternationalString newValue)
          Sets the additional information about the restrictions on handling the resource.
 void setUserNote(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 DefaultConstraints
castOrCopy, getUseLimitations, setUseLimitations
 
Methods inherited from class MetadataEntity
getIdentifier, getIdentifierMap, getIdentifiers, getStandard
 
Methods inherited from class ModifiableMetadata
checkWritePermission, clone, collectionType, copyCollection, copyList, copySet, freeze, isModifiable, nonNullCollection, nonNullList, nonNullSet, prune, unmodifiable
 
Methods inherited from class AbstractMetadata
asMap, asTree, asTreeTable, equals, equals, getInterface, hashCode, isEmpty, parse, toString
 
Methods inherited from class Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface Constraints
getUseLimitations
 

Constructor Detail

DefaultSecurityConstraints

public DefaultSecurityConstraints()
Creates an initially empty security constraints.


DefaultSecurityConstraints

public DefaultSecurityConstraints(SecurityConstraints source)
Constructs a metadata entity initialized with the values from the specified metadata.

Parameters:
source - The metadata to copy, or null if none.
Since:
2.4

DefaultSecurityConstraints

public DefaultSecurityConstraints(Classification classification)
Creates a security constraints initialized with the specified classification.

Parameters:
classification - The name of the handling restrictions on the resource.
Method Detail

castOrCopy

public static DefaultSecurityConstraints castOrCopy(SecurityConstraints object)
Returns a Geotk metadata implementation with the same values than the given arbitrary implementation. If the given object is null, then this method returns null. Otherwise if the given object is already a Geotk implementation, then the given object is returned unchanged. Otherwise a new Geotk implementation is created and initialized to the attribute values of the given object, using a shallow copy operation (i.e. attributes are not cloned).

Parameters:
object - The object to get as a Geotk implementation, or null if none.
Returns:
A Geotk implementation containing the values of the given object (may be the given object itself), or null if the argument was null.
Since:
3.18

getClassification

public Classification getClassification()
Returns the name of the handling restrictions on the resource.

Specified by:
getClassification in interface SecurityConstraints

setClassification

public void setClassification(Classification newValue)
Sets the name of the handling restrictions on the resource.

Parameters:
newValue - The new classification.

getUserNote

public InternationalString getUserNote()
Returns the explanation of the application of the legal constraints or other restrictions and legal prerequisites for obtaining and using the resource.

Specified by:
getUserNote in interface SecurityConstraints

setUserNote

public void setUserNote(InternationalString newValue)
Sets 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.

getClassificationSystem

public InternationalString getClassificationSystem()
Returns the name of the classification system.

Specified by:
getClassificationSystem in interface SecurityConstraints

setClassificationSystem

public void setClassificationSystem(InternationalString newValue)
Sets the name of the classification system.

Parameters:
newValue - The new classification system.

getHandlingDescription

public InternationalString getHandlingDescription()
Returns the additional information about the restrictions on handling the resource.

Specified by:
getHandlingDescription in interface SecurityConstraints

setHandlingDescription

public void setHandlingDescription(InternationalString newValue)
Sets the additional information about the restrictions on handling the resource.

Parameters:
newValue - The new handling description.


Copyright © 2009-2012 Geotoolkit.org. All Rights Reserved.