public interface JetspeedPrincipalAssociationType extends Serializable
Modifier and Type | Field and Description |
---|---|
static String |
BELONGS_TO
build-in supported @{link
associationName "belongsTo" |
static String |
IS_A
build-in supported @{link
associationName "isA" |
static String |
IS_CHILD_OF
build-in supported @{link
associationName "isChildOf" |
static String |
IS_MEMBER_OF
build-in supported @{link
associationName "isMemberOf" |
static String |
IS_PART_OF
build-in supported @{link
associationName "isPartOf" |
Modifier and Type | Method and Description |
---|---|
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.
|
static final 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 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 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 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 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:
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
sCopyright © 1999–2016 The Apache Software Foundation. All rights reserved.