Class Vote

    • Field Detail

      • HIBERNATE_MAPPING_PUBLICATIONID

        public static final int HIBERNATE_MAPPING_PUBLICATIONID
        See Also:
        Constant Field Values
      • rating

        protected int rating
      • publicationId

        protected transient java.lang.String publicationId
      • publication

        protected transient Publication publication
      • workspaceId

        protected transient java.lang.String workspaceId
      • workspace

        protected transient Workspace workspace
    • Constructor Detail

      • Vote

        public Vote()
    • Method Detail

      • isPositive

        public boolean isPositive()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class Data
      • checkIntegrity

        public ControllerStatus checkIntegrity()
        Description copied from class: Data
        Checks whether or not data integrity constraints are respected.
        Overrides:
        checkIntegrity in class Data
        Returns:
        a ControllerStatus
      • performAfterWrite

        protected void performAfterWrite​(int op,
                                         Member mbr,
                                         java.util.Map context)
        Description copied from class: Data
        Called to perform some action after the write.
        Overrides:
        performAfterWrite in class Data
        Parameters:
        op - the operation (OP_CREATE, OP_UPDATE, ...)
        mbr - the member which requests the write operation
        context - a map which contains context parameters (may be null)
      • getWorkspace

        public Workspace getWorkspace()
      • setWorkspace

        public void setWorkspace​(Workspace v)
      • getWorkspaceId

        public java.lang.String getWorkspaceId()
      • setWorkspaceId

        public void setWorkspaceId​(java.lang.String v)
      • setPublication

        public void setPublication​(Publication v)
      • getPublicationId

        public java.lang.String getPublicationId()
      • setPublicationId

        public void setPublicationId​(java.lang.String v)
      • getRating

        public int getRating()
      • setRating

        public void setRating​(int rating)