com.ibm.commerce.accesscontrol

Class SiteResource

  • java.lang.Object
    • com.ibm.commerce.accesscontrol.SiteResource
  • All Implemented Interfaces:
    Protectable


    public class SiteResource
    extends java.lang.Object
    implements Protectable
    This class represents a default Site Resource.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT 
    • Constructor Summary

      Constructors 
      Constructor and Description
      SiteResource()
      SiteResource constructor comment.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean fulfills(java.lang.Long member, java.lang.String relationship)
      Determines if a given member fulfills a given relationship with the resource.
      java.lang.Long getOwner()
      Returns the owner of this resource.
      static SiteResource singleton()
      Returns an instance of a site resource
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SiteResource

        public SiteResource()
        SiteResource constructor comment.
    • Method Detail

      • getOwner

        public java.lang.Long getOwner()
                                throws ECException
        Returns the owner of this resource. In this case, it is the site organization. ECConstants.EC_SITE_ORGANIZATION

        Specified by:
        getOwner in interface Protectable
        Returns:
        java.lang.Long
        Throws:
        ECException.
        ECException
      • singleton

        public static SiteResource singleton()
        Returns an instance of a site resource

        Returns:
        SiteResource
        Throws:
        ECException.
      • fulfills

        public boolean fulfills(java.lang.Long member,
                                java.lang.String relationship)
                         throws java.lang.Exception
        Determines if a given member fulfills a given relationship with the resource.
        Specified by:
        fulfills in interface Protectable
        Parameters:
        member - Member id of the member
        relationship - The relationship the member has with respect to the resource
        Returns:
        true if the member fulfills the relationship with the resource
        Throws:
        java.lang.Exception