Package org.ivoa.dm.proposal.management
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
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classA container class for the references in the model.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final org.ivoa.vodml.ModelDescriptionthe description.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidadd ProposalCycle to model.voidadd ResourceBlock to model.voidadd ObservingProposal to model.voiddirectly add reference.voiddirectly add reference.voiddirectly add reference.voiddirectly add reference.voiddirectly add reference.voidaddReference(org.ivoa.dm.stc.coords.CoordSys c) directly add reference.static jakarta.xml.bind.JAXBContextthe context factory for the model.voidcreate a context in preparation for cloning.voidremove ProposalCycle from model.voidremove ResourceBlock from model.voidremove ObservingProposal from model.<T> List<T>getContent(Class<T> c) Get the content of the given type.static booleanif the model has references.static booleanisInVocabulary(String value, String vocabulary) Test if a term is in the vocabulary.static com.fasterxml.jackson.databind.ObjectMapperReturn a Jackson objectMapper suitable for JSON serialzation.org.ivoa.vodml.ModelManagement<ProposalManagementModel>generate management interface instance for model.voidstatic Stringpu_name()The persistence unit name for the model.static InputStreamthe TAP schema for the model.
- 
Field Details- 
modelDescriptionpublic static final org.ivoa.vodml.ModelDescription modelDescriptionthe description.
 
- 
- 
Constructor Details- 
ProposalManagementModelpublic ProposalManagementModel()default constructor.
 
- 
- 
Method Details- 
isInVocabularyTest 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.
 
- 
addContentadd ObservingProposal to model.- Parameters:
- c- org.ivoa.dm.proposal.prop.ObservingProposal
 
- 
deleteContentremove ObservingProposal from model.- Parameters:
- c- org.ivoa.dm.proposal.prop.ObservingProposal
 
- 
addContentadd ProposalCycle to model.- Parameters:
- c- org.ivoa.dm.proposal.management.ProposalCycle
 
- 
deleteContentremove ProposalCycle from model.- Parameters:
- c- org.ivoa.dm.proposal.management.ProposalCycle
 
- 
addContentadd ResourceBlock to model.- Parameters:
- c- org.ivoa.dm.proposal.management.ResourceBlock
 
- 
deleteContentremove ResourceBlock from model.- Parameters:
- c- org.ivoa.dm.proposal.management.ResourceBlock
 
- 
addReferencedirectly add reference. N.B. should not be necessary in normal operation - adding content should find embedded references.- Parameters:
- c- the reference to be added.
 
- 
addReferencedirectly add reference. N.B. should not be necessary in normal operation - adding content should find embedded references.- Parameters:
- c- the reference to be added.
 
- 
addReferencedirectly add reference. N.B. should not be necessary in normal operation - adding content should find embedded references.- Parameters:
- c- the reference to be added.
 
- 
addReferencedirectly add reference. N.B. should not be necessary in normal operation - adding content should find embedded references.- Parameters:
- c- the reference to be added.
 
- 
addReferencedirectly add reference. N.B. should not be necessary in normal operation - adding content should find embedded references.- Parameters:
- c- the reference to be added.
 
- 
addReferencepublic 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.
 
- 
getContentGet the content of the given type.- Type Parameters:
- T- The type of the content
- Parameters:
- c- the class of the content.
- Returns:
- the content.
 
- 
processReferencespublic void processReferences()- Specified by:
- processReferencesin interface- org.ivoa.vodml.jaxb.JaxbManagement
 
- 
hasReferencespublic static boolean hasReferences()if the model has references.- Returns:
- true if the model has references.
 
- 
contextFactorypublic static jakarta.xml.bind.JAXBContext contextFactory() throws jakarta.xml.bind.JAXBExceptionthe context factory for the model.- Returns:
- the JAXBContext.
- Throws:
- jakarta.xml.bind.JAXBException- if there is a problem.
 
- 
pu_nameThe persistence unit name for the model.- Returns:
- the name.
 
- 
jsonMapperpublic static com.fasterxml.jackson.databind.ObjectMapper jsonMapper()Return a Jackson objectMapper suitable for JSON serialzation.- Returns:
- the objectmapper.
 
- 
managementgenerate management interface instance for model.- Specified by:
- managementin interface- org.ivoa.vodml.VodmlModel<ProposalManagementModel>
- Returns:
- the management interface.
 
- 
TAPSchemathe TAP schema for the model. The schema is represented via the TAPSchemaDM datamodel.- Returns:
- an InputStream to the XML representation of the model.
 
- 
createContextpublic void createContext()create a context in preparation for cloning.
 
-