com.ibm.commerce.accesscontrol
Class SiteResource

java.lang.Object
  |
  +--com.ibm.commerce.accesscontrol.SiteResource

public class SiteResource
extends java.lang.Object

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
public static final java.lang.String COPYRIGHT
See Also:
Constant Field Values
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
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.rmi.RemoteException,
                        java.lang.Exception
Determines if a given member fulfills a given relationship with the resource.
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
java.rmi.RemoteException
java.lang.Exception