|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.waveset.object.ResourceAssignment
A ResourceAssignment represents an assignment of an account on a resource. It does not specify the exact account, but may optionally specify a type of account. This provides a model of assigning multiple accounts on a resource to the same object (User, Role, or Application) and providing an unambiguous reference to a single account (in absence of knowing the accountId) for multiple objects.
Field Summary | |
static int |
ACCOUNT_TYPE
The index into the array returned by parseNameComponents which contains the account type. |
static java.lang.String |
ACCOUNT_TYPE_MARKER
|
static java.lang.String |
ID_RULE_SUBTYPE
|
static int |
RESOURCE_NAME
The index into the array returned by parseNameComponents which contains the resource name. |
Constructor Summary | |
ResourceAssignment(Resource r)
|
|
ResourceAssignment(Resource r,
java.lang.String accountType)
|
Method Summary | |
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getAccountType()
Get the type of account this assignment is for. |
java.lang.String |
getName()
Get the name of this assignment. |
static java.lang.String |
getName(Resource r,
java.lang.String accountType)
Get the name of the specified assignment. |
static java.lang.String |
getName(java.lang.String resName,
java.lang.String accountType)
Get the name of the specified assignment. |
static java.util.Collection |
getNames(java.util.Collection assignments,
java.util.Collection names)
Given a Collection of ResourceAssignments, add their names to the specified output Collection. |
Resource |
getResource()
Get the resource this assignment is for. |
int |
hashCode()
|
static java.lang.String[] |
parseNameComponents(java.lang.String srcName)
Decompose the name of an assignment into its constituent pieces. |
boolean |
refersTo(ObjectRef ref)
Check whether an ObjectRef refers to the same account type qualified resource as this ResourceAssignment. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String ACCOUNT_TYPE_MARKER
public static final java.lang.String ID_RULE_SUBTYPE
public static final int RESOURCE_NAME
public static final int ACCOUNT_TYPE
Constructor Detail |
public ResourceAssignment(Resource r, java.lang.String accountType)
public ResourceAssignment(Resource r)
Method Detail |
public boolean equals(java.lang.Object o)
public int hashCode()
public Resource getResource()
public java.lang.String getAccountType()
public java.lang.String getName()
public static java.lang.String getName(Resource r, java.lang.String accountType)
public static java.lang.String getName(java.lang.String resName, java.lang.String accountType)
public static java.lang.String[] parseNameComponents(java.lang.String srcName)
public boolean refersTo(ObjectRef ref)
public static java.util.Collection getNames(java.util.Collection assignments, java.util.Collection names)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |