public class SiteResource extends java.lang.Object implements Protectable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT |
Constructor and Description |
---|
SiteResource()
SiteResource constructor comment.
|
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
|
public static final java.lang.String COPYRIGHT
public java.lang.Long getOwner() throws ECException
getOwner
in interface Protectable
ECException.
ECException
public static SiteResource singleton()
ECException.
public boolean fulfills(java.lang.Long member, java.lang.String relationship) throws java.lang.Exception
fulfills
in interface Protectable
member
- Member id of the memberrelationship
- The relationship the member has with respect to the resourcejava.lang.Exception