Class GenericObjectWrapper<T extends DataObject>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected T data  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected GenericObjectWrapper​(T object)
      Constructor of the class GenericObjectWrapper.
    • Constructor Detail

      • GenericObjectWrapper

        protected GenericObjectWrapper​(T object)
        Constructor of the class GenericObjectWrapper.
        Parameters:
        object - The object contained in the GenericObjectWrapper.
    • Method Detail

      • getId

        public long getId()
        Gets the object id
        Returns:
        id.
      • getCreated

        public Timestamp getCreated()
        Gets the object creation date
        Returns:
        creation date.
      • getGroupId

        public Long getGroupId()
        Gets the group ID
        Returns:
        group id.
      • canAnnotate

        public boolean canAnnotate()
        Returns true if the object can be annotated false otherwise, depending on permissions level.
        Returns:
        See above.
      • canEdit

        public boolean canEdit()
        Returns true if the object can be edited by the user currently logged in false otherwise, depending on permissions level.
        Returns:
        See above.
      • canLink

        public boolean canLink()
        Returns true if the object can be linked e.g. image add to dataset, by the user currently logged in, false otherwise, depending on permissions level.
        Returns:
        See above.
      • canDelete

        public boolean canDelete()
        Returns true if the object can be deleted by the user currently logged in, false otherwise, depending on permissions level.
        Returns:
        See above.
      • canChgrp

        public boolean canChgrp()
        Returns true if the object can be moved by the user currently logged in, false otherwise, depending on permissions level.
        Returns:
        See above.
      • canChown

        public boolean canChown()
        Returns true if the object can be given by the user currently logged in, false otherwise, depending on permissions level.
        Returns:
        See above.