public class GiftListTypeProtectableProxy extends com.ibm.commerce.security.AbstractProtectableProxy implements Protectable, Groupable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ACCESS_CONTROL_RELATION_TYPE_COREGISTRANT
Constant for the co-registrant access control relation.
|
static java.lang.String |
ACCESS_CONTROL_RELATION_TYPE_GIFT_GIVER
Constant for the gift giver access control relation.
|
static java.lang.String |
ACCESS_CONTROL_RELATION_TYPE_REGISTRANT
Constant for registrant access control relation.
|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
static java.lang.String |
GROUPING_ATTRIBUTE_ACCESS_SPECIFIER
Constant for the grouping attribute name.
|
Constructor and Description |
---|
GiftListTypeProtectableProxy()
Creates an instance of the protectable proxy object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
fulfills(java.lang.Long member,
java.lang.String relationship)
This method determines if a given member fulfills a given relationship
with the resource.
|
java.lang.Object |
getGroupingAttributeValue(java.lang.String attributeName,
GroupingContext context)
Returns the value of the specified attribute.
|
java.lang.Long |
getOwner()
This method will return the owner of the protectable object.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String ACCESS_CONTROL_RELATION_TYPE_REGISTRANT
public static final java.lang.String ACCESS_CONTROL_RELATION_TYPE_COREGISTRANT
public static final java.lang.String ACCESS_CONTROL_RELATION_TYPE_GIFT_GIVER
public static final java.lang.String GROUPING_ATTRIBUTE_ACCESS_SPECIFIER
public GiftListTypeProtectableProxy()
public boolean fulfills(java.lang.Long member, java.lang.String relationship) throws java.lang.Exception
false
.fulfills
in interface Protectable
fulfills
in class com.ibm.commerce.security.AbstractProtectableProxy
member
- This is the member id of the member.relationship
- This is the relationship the member has with to the resource.true
if the member fulfills the given relationship
with the resource. false
Otherwise.java.lang.Exception
GiftListTypeProtectableProxy#checkUserFulfillsRegistrantOrCoregistrantRelationship(Long, String)}
,
GiftListTypeProtectableProxy#checkUserFulfillsGiftGiverRelationship(Long, String)}
public java.lang.Long getOwner() throws java.lang.Exception
getOwner
in interface Protectable
getOwner
in class com.ibm.commerce.security.AbstractProtectableProxy
java.lang.Exception
- A problem occurred while resolving the owner.Protectable.getOwner()
public java.lang.Object getGroupingAttributeValue(java.lang.String attributeName, GroupingContext context) throws java.lang.Exception
getGroupingAttributeValue
in interface Groupable
attributeName
- The name of the grouping attribute. The supported attribute is AccessSpecifier
.context
- The grouping context.java.lang.Exception