Class BioWellNameGenerator

    • Field Detail

      • currentWell

        private BioWell currentWell
    • Constructor Detail

      • BioWellNameGenerator

        public BioWellNameGenerator()
        Create a new biowell name generator.
    • Method Detail

      • getDeniedNodeTitle

        public String getDeniedNodeTitle​(Node parentNode)
        Description copied from interface: NodeNameGenerator
        Generate a title for a node when the item exists, but the current user doesn't have permission to access read the item.
        Specified by:
        getDeniedNodeTitle in interface NodeNameGenerator<MeasuredBioMaterial>
        Parameters:
        parentNode - The parent node
        Returns:
        A name for the node
      • getDeniedNodeName

        public String getDeniedNodeName​(Node parentNode)
        Description copied from interface: NodeNameGenerator
        Generate a name for a node when the item exists, but the current user doesn't have permission to access read the item.
        Specified by:
        getDeniedNodeName in interface NodeNameGenerator<MeasuredBioMaterial>
        Parameters:
        parentNode - The parent node
        Returns:
        A name for the node
      • setCurrentWell

        public void setCurrentWell​(BioWell well)
        Set the well we are currently working with. The name generator need to know this before trying to generate node names and titles since it is possible that access to the biomaterial in the well is denied.
        Parameters:
        well - The current biowell
      • getCurrentNodeName

        private String getCurrentNodeName()
      • getCurrentTitlePrefix

        private String getCurrentTitlePrefix()