|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JetspeedPrincipalAssociationType
Field Summary | |
---|---|
static java.lang.String |
BELONGS_TO
build-in supported @{link associationName "belongsTo" |
static java.lang.String |
IS_A
build-in supported @{link associationName "isA" |
static java.lang.String |
IS_CHILD_OF
build-in supported @{link associationName "isChildOf" |
static java.lang.String |
IS_MEMBER_OF
build-in supported @{link associationName "isMemberOf" |
static java.lang.String |
IS_PART_OF
build-in supported @{link associationName "isPartOf" |
Method Summary | |
---|---|
java.lang.String |
getAssociationName()
The name which is used together with the getFromPrincipalType() and the
getToPrincipalType() to identify a specific association between two JetspeedPrincipal s. |
JetspeedPrincipalType |
getFromPrincipalType()
|
JetspeedPrincipalType |
getToPrincipalType()
|
boolean |
isDependent()
True if the from principal will be deleted when the to principal is deleted. |
boolean |
isDominant()
True if the to principal can be associated to at most once. |
boolean |
isMixedTypes()
True if this is an association between two different JetspeedPrincipalType s |
boolean |
isRequired()
True if the from principal cannot be created without this association. |
boolean |
isSingular()
True if the from principal can be associated at most once. |
Field Detail |
---|
static final java.lang.String IS_MEMBER_OF
associationName
"isMemberOf"
This association type between two different JetspeedPrincipalType
s represents
an N to M relationship
Configuration needed for this association type:
static final java.lang.String IS_CHILD_OF
associationName
"isChildOf"
This association type between two equal JetspeedPrincipalType
s represents
a required from child to parent hierarchical relationship.
Configuration needed for this association type:
static final java.lang.String IS_A
associationName
"isA"
This association type between two equal JetspeedPrincipalType
s represents
a Generalizing Hierarchical relationship where from implies to.
Configuration needed for this association type:
static final java.lang.String IS_PART_OF
associationName
"isPartOf"
This association type between two equal JetspeedPrincipalType
s represents
a Aggregating Hierarchical relationship where to implies from.
Configuration needed for this association type (same as IS_MEMBER_OF
):
static final java.lang.String BELONGS_TO
associationName
"belongsTo"
This association type betweem two different JetspeedPrincipalType
s represents
a required relationship where from may only belong to one to
Configuration needed for this association type:
Method Detail |
---|
java.lang.String getAssociationName()
getFromPrincipalType()
and the
getToPrincipalType()
to identify a specific association between two JetspeedPrincipal
s.
Note: the asociation name value must conform to the Java Identifier requirements (e.g. no spaces, dots, etc.) to support localization through resource bundles.
JetspeedPrincipalType getFromPrincipalType()
JetspeedPrincipalType getToPrincipalType()
boolean isRequired()
If isDependent()
the from principal will be deleted when the to principal is deleted,
otherwise deleting the to principal is not allowed without first transfering association to another.
boolean isDependent()
Deleting the to principal is not allowed when isRequired()
until the association is transferred to another.
boolean isSingular()
boolean isDominant()
boolean isMixedTypes()
JetspeedPrincipalType
s
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |