Class AbstractSubscriptionBean

    • Method Detail

      • getLanguage

        public String getLanguage()
      • getSubscriber

        public SubscriptionSubscriber getSubscriber()
        Description copied from interface: Subscription
        Gets the subscriber. It can be either a user or a group of users. In the case of a group of users, the subscription was done by a user with management rights on the resource.
        Specified by:
        getSubscriber in interface Subscription
        Returns:
        a SubscriptionSubscriber instance representing either the user or the group of users that have subscribed to the given resource.
      • getSubscriptionMethod

        public SubscriptionMethod getSubscriptionMethod()
        Description copied from interface: Subscription
        What is the method used to subscribe to the resource? It can be either by the subscriber himself or it can be forced by another user with management rights.
        Specified by:
        getSubscriptionMethod in interface Subscription
        Returns:
        a SubscriptionMethod instance representing the method used to create this subscription.
      • getCreatorId

        public String getCreatorId()
        Description copied from interface: Subscription
        Gets the unique identifier of the user that did the subscription. It can be the identifier of the subscriber or, for forced subscription, it is the identifier of a user with management rights.
        Specified by:
        getCreatorId in interface Subscription
        Returns:
        the unique identifier of a user.
      • getCreationDate

        public Date getCreationDate()
        Description copied from interface: Subscription
        Gets the date at which the subscription has been done.
        Specified by:
        getCreationDate in interface Subscription
        Returns:
        a date.
      • isReadOnly

        public boolean isReadOnly()
        Indicates if the subscription is read only.
        Returns:
        true if the subscriber is a group of users. In such a case, a user of the group has no modification rights on the subscription.
      • isValid

        public boolean isValid()
        Is this subscription valid? A subscription is valid if and only if the user or the group of users can access the subscribed resource.
        Returns:
        true if the subscriber can access the resource. False otherwise.
      • getPath

        public String getPath()
        Gets the path.
        Returns:
      • getLink

        public String getLink()
        Gets the link to access the resource.
        Returns:
      • getSubscriberName

        public String getSubscriberName()
        Gets the full name of the subscriber.
        Returns:
      • getUser

        protected UserDetail getUser()
        Gets the user data.
        Returns:
      • getGroup

        protected Group getGroup()
        Gets the group data.
        Returns:
      • getSpace

        public SpaceInstLight getSpace()
        Gets the space data.
        Returns: