com.ibm.commerce.rules
Class RuleServiceResourceProxy
java.lang.Object
|
+--com.ibm.commerce.rules.RuleServiceResourceProxy
- All Implemented Interfaces:
- Protectable
- public class RuleServiceResourceProxy
- extends java.lang.Object
- implements Protectable
The protectable resource for command-level access control.
Using this proxy alleviates the need for the controller
command to know about/ask the task command for the resources
it will use.
Constructor Summary |
RuleServiceResourceProxy(java.lang.Number aStoreId)
Creates a resource proxy for the specified store ID. |
Method Summary |
boolean |
equals(java.lang.Object other)
RuleServiceResourceProxy objects are
equal iff they belong to the same store. |
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()
Return the member reference number of the owner. |
java.lang.Number |
getOwnerId()
What is the ID of the member that owns the store? |
java.lang.Number |
getStoreId()
What is the store's ID? |
int |
hashCode()
|
protected void |
initialize(java.lang.Number anId)
Initializes this resource. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
RuleServiceResourceProxy
public RuleServiceResourceProxy(java.lang.Number aStoreId)
throws RulesSystemDataModelException
- Creates a resource proxy for the specified store ID.
All rule service resources belong to a given store, and
are protected on that basis.
equals
public boolean equals(java.lang.Object other)
RuleServiceResourceProxy
objects are
equal iff they belong to the same store.
- Overrides:
equals
in class java.lang.Object
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 memberrelationship
- 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 java.lang.Exception,
java.rmi.RemoteException
- Return the member reference number of the owner.
- Specified by:
getOwner
in interface Protectable
- Following copied from interface:
com.ibm.commerce.security.Protectable
- Returns:
- The member id of the owner
getOwnerId
public java.lang.Number getOwnerId()
- What is the ID of the member that owns the store?
getStoreId
public java.lang.Number getStoreId()
- What is the store's ID?
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
initialize
protected void initialize(java.lang.Number anId)
throws RulesSystemDataModelException
- Initializes this resource.
- Throws:
RulesSystemDataModelException
- Indicates
an error in the underlying data model.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object