Class ProposalManagementModel

java.lang.Object
org.ivoa.dm.proposal.management.ProposalManagementModel
All Implemented Interfaces:
org.ivoa.vodml.jaxb.JaxbManagement, org.ivoa.vodml.VodmlModel<ProposalManagementModel>

@VoDml(id="proposalManagement", role=model, type="proposalManagement") public class ProposalManagementModel extends Object implements org.ivoa.vodml.VodmlModel<ProposalManagementModel>
The container class for the proposalManagement Model. The data model for managing the proposal review process. This is the observatories' view of the proposal process, intended to work for phase 1 only
  • Constructor Details

    • ProposalManagementModel

      public ProposalManagementModel()
      default constructor.
  • Method Details

    • isInVocabulary

      public static boolean isInVocabulary(String value, String vocabulary)
      Test if a term is in the vocabulary.
      Parameters:
      value - the value to test
      vocabulary - the uri for the vocabulary.
      Returns:
      true if the term is in the vocabulary.
    • addContent

      public void addContent(ProposalCycle c)
      add ProposalCycle to model.
      Parameters:
      c - org.ivoa.dm.proposal.management.ProposalCycle
    • deleteContent

      public void deleteContent(ProposalCycle c)
      remove ProposalCycle from model.
      Parameters:
      c - org.ivoa.dm.proposal.management.ProposalCycle
    • addContent

      public void addContent(ResourceBlock c)
      add ResourceBlock to model.
      Parameters:
      c - org.ivoa.dm.proposal.management.ResourceBlock
    • deleteContent

      public void deleteContent(ResourceBlock c)
      remove ResourceBlock from model.
      Parameters:
      c - org.ivoa.dm.proposal.management.ResourceBlock
    • addReference

      public void addReference(ObservingProposal c)
      directly add reference. N.B. should not be necessary in normal operation - adding content should find embedded references.
      Parameters:
      c - the reference to be added.
    • addReference

      public void addReference(Organization c)
      directly add reference. N.B. should not be necessary in normal operation - adding content should find embedded references.
      Parameters:
      c - the reference to be added.
    • addReference

      public void addReference(Person c)
      directly add reference. N.B. should not be necessary in normal operation - adding content should find embedded references.
      Parameters:
      c - the reference to be added.
    • addReference

      public void addReference(Observatory c)
      directly add reference. N.B. should not be necessary in normal operation - adding content should find embedded references.
      Parameters:
      c - the reference to be added.
    • addReference

      public void addReference(Reviewer c)
      directly add reference. N.B. should not be necessary in normal operation - adding content should find embedded references.
      Parameters:
      c - the reference to be added.
    • addReference

      public void addReference(ResourceType c)
      directly add reference. N.B. should not be necessary in normal operation - adding content should find embedded references.
      Parameters:
      c - the reference to be added.
    • addReference

      public void addReference(org.ivoa.dm.stc.coords.CoordSys c)
      directly add reference. N.B. should not be necessary in normal operation - adding content should find embedded references.
      Parameters:
      c - the reference to be added.
    • getContent

      public <T> List<T> getContent(Class<T> c)
      Get the content of the given type.
      Type Parameters:
      T - The type of the content
      Parameters:
      c - the class of the content.
      Returns:
      the content.
    • processReferences

      public void processReferences()
      Specified by:
      processReferences in interface org.ivoa.vodml.jaxb.JaxbManagement
    • hasReferences

      public static boolean hasReferences()
      if the model has references.
      Returns:
      true if the model has references.
    • contextFactory

      public static jakarta.xml.bind.JAXBContext contextFactory() throws jakarta.xml.bind.JAXBException
      the context factory for the model.
      Returns:
      the JAXBContext.
      Throws:
      jakarta.xml.bind.JAXBException - if there is a problem.
    • pu_name

      public static String pu_name()
      The persistence unit name for the model.
      Returns:
      the name.
    • writeXMLSchema

      public static void writeXMLSchema()
      write an XML schema based on JAXB interpretation.
    • jsonMapper

      public static com.fasterxml.jackson.databind.ObjectMapper jsonMapper()
      Return a Jackson objectMapper suitable for JSON serialzation.
      Returns:
      the objectmapper.
    • management

      public org.ivoa.vodml.ModelManagement<ProposalManagementModel> management()
      generate management interface instance for model.
      Specified by:
      management in interface org.ivoa.vodml.VodmlModel<ProposalManagementModel>
      Returns:
      the management interface.
    • description

      public static org.ivoa.vodml.ModelDescription description()
      Get the model description.
      Returns:
      the description.
    • descriptor

      public org.ivoa.vodml.ModelDescription descriptor()
      Return the model description in non-static fashion. overrides @see org.ivoa.vodml.VodmlModel#descriptor()
      Specified by:
      descriptor in interface org.ivoa.vodml.VodmlModel<ProposalManagementModel>
      Returns:
      the model description.
    • createContext

      public void createContext()
      create a context in preparation for cloning.