com.ibm.commerce.security
Class AccessHelper
java.lang.Object
|
+--com.ibm.commerce.security.AccessHelper
- public class AccessHelper
- extends java.lang.Object
This class contains various access control related methods.
Method Summary |
boolean |
fulfills(java.lang.Object obj,
java.lang.Long member,
java.lang.String relationship)
Determines if a given member fulfills a given relationship with the resource. |
java.lang.Object |
getGroupingAttributeValue(java.lang.Object obj,
java.lang.String attributeName,
GroupingContext context)
Returns the value of the specified attribute of an object |
java.lang.Long |
getOwner(java.lang.Object obj)
Returns the member id of the owner of the resource |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AccessHelper
public AccessHelper()
fulfills
public boolean fulfills(java.lang.Object obj,
java.lang.Long member,
java.lang.String relationship)
throws java.lang.Exception,
java.rmi.RemoteException
- Determines if a given member fulfills a given relationship with the resource.
- Parameters:
obj
- The resourcemember
- Member id of the memberrelationship
- The relationship the member has with respect to the resource- Returns:
- true if the member fulfills the relationship with the resource
getGroupingAttributeValue
public java.lang.Object getGroupingAttributeValue(java.lang.Object obj,
java.lang.String attributeName,
GroupingContext context)
throws java.lang.Exception,
java.rmi.RemoteException
- Returns the value of the specified attribute of an object
- Parameters:
obj
- The resourceattributeName
- The name of the attributecontext
- Grouping specific context that may be needed to find values for certain groupable attributes- Returns:
- Value of attribute
getOwner
public java.lang.Long getOwner(java.lang.Object obj)
throws java.lang.Exception,
java.rmi.RemoteException
- Returns the member id of the owner of the resource
- Parameters:
obj
- The resource- Returns:
- Member id of owner of resource