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
static java.lang.String COPYRIGHT
           
 
Constructor Summary
SiteResource()
          SiteResource constructor comment.
 
Method Summary
 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
Constructor Detail

SiteResource

public SiteResource()
SiteResource constructor comment.
Method Detail

fulfills

public boolean fulfills(java.lang.Long member,
                        java.lang.String relationship)
                 throws java.rmi.RemoteException,
                        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

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. -  

singleton

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

Returns:
SiteResource
Throws:
ECException. -