public class OneToManyAssociationContributee extends OneToManyAssociationImpl implements ContributeeMember
ContributeeMember.PredicatesObjectAssociation.Filters, ObjectAssociation.Functions, ObjectAssociation.Predicates, ObjectAssociation.UtilOneToManyFeature.CollectionSemanticsdefaultName| Constructor and Description |
|---|
OneToManyAssociationContributee(ObjectAdapter serviceAdapter,
ObjectActionImpl serviceAction,
ObjectSpecification contributeeType,
ObjectMemberContext objectMemberContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFacet(Facet facet)
Adds the facet, extracting its
type as the key. |
void |
addFacet(MultiTypedFacet facet)
Adds the
multi-typed facet, extracting each of
its types as keys. |
boolean |
containsDoOpFacet(Class<? extends Facet> facetType)
Whether there is a facet registered of the specified type that is not a
no-op. |
boolean |
containsFacet(Class<? extends Facet> facetType)
Whether there is a facet registered of the specified type.
|
ObjectAdapter |
get(ObjectAdapter ownerAdapter)
Returns the referenced
ObjectAdapter for the owning
ObjectAdapter. |
<T extends Facet> |
getFacet(Class<T> cls)
Get the facet of the specified type (as per the type it reports from
Facet.facetType()). |
List<Facet> |
getFacets(org.apache.isis.applib.filter.Filter<Facet> filter)
Returns all
Facets matching the specified FacetFilter. |
Class<? extends Facet>[] |
getFacetTypes()
Get the list of all facet types that are supported by objects of
this specification.
|
org.apache.isis.applib.Identifier |
getIdentifier()
Identifier of this feature.
|
Consent |
isUsable(AuthenticationSession session,
ObjectAdapter contributee,
org.apache.isis.applib.annotation.Where where)
Loops over all
DisablingInteractionAdvisor Facets and
returns true only if none disables the member. |
Consent |
isVisible(AuthenticationSession session,
ObjectAdapter contributee,
org.apache.isis.applib.annotation.Where where)
Loops over all
HidingInteractionAdvisor Facets and
returns true only if none hide the member. |
void |
removeFacet(Class<? extends Facet> facetType)
Remove the facet of the specified type.
|
void |
removeFacet(Facet facet)
Remove the facet whose type is that reported by
Facet.facetType()
. |
addElement, clearCollection, createUsableInteractionContext, createValidateAddInteractionContext, createValidateRemoveInteractionContext, createVisibleInteractionContext, debugData, getAutoComplete, getAutoCompleteMinLength, getChoices, getCollectionSemantics, getDefault, getInstance, hasAutoComplete, hasChoices, isEmpty, isValidToAdd, isValidToRemove, removeAllAssociations, removeElement, toDefault, toStringgetBusinessKeyName, getSpecification, isMandatory, isNotPersisted, isOneToOneAssociationgetAdapterManager, getAuthenticationSession, getAuthenticationSessionProvider, getCollectionTypeRegistry, getDeploymentCategory, getDescription, getFacetedMethod, getFeatureType, getHelp, getId, getName, getQuerySubmitter, getServicesProvider, getSpecification, getSpecificationLookup, isAction, isAlwaysHidden, isOneToManyAssociation, isPropertyOrCollectionclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetBusinessKeyName, isMandatory, isNotPersistedgetHelp, isAction, isAlwaysHidden, isOneToManyAssociation, isOneToOneAssociation, isPropertyOrCollectiongetDescription, getId, getName, getSpecificationgetFeatureTypepublic OneToManyAssociationContributee(ObjectAdapter serviceAdapter, ObjectActionImpl serviceAction, ObjectSpecification contributeeType, ObjectMemberContext objectMemberContext)
public ObjectAdapter get(ObjectAdapter ownerAdapter)
CurrentHolderObjectAdapter for the owning
ObjectAdapter.
For example, if this is an OneToOneAssociation, then returns the
referenced object.
get in interface CurrentHolderget in class OneToManyAssociationImplpublic org.apache.isis.applib.Identifier getIdentifier()
IdentifiedHoldergetIdentifier in interface IdentifiedHoldergetIdentifier in class ObjectMemberAbstractpublic Consent isVisible(AuthenticationSession session, ObjectAdapter contributee, org.apache.isis.applib.annotation.Where where)
ObjectMemberAbstractHidingInteractionAdvisor Facets and
returns true only if none hide the member.
TODO: currently this method is hard-coded to assume all interactions are
initiated by user.
isVisible in interface ObjectMemberisVisible in class ObjectMemberAbstractcontributee - may be null if just checking for authorization.where - the member is being rendered in the UI#isVisibleResult(AuthenticationSession, ObjectAdapter)public Consent isUsable(AuthenticationSession session, ObjectAdapter contributee, org.apache.isis.applib.annotation.Where where)
ObjectMemberAbstractDisablingInteractionAdvisor Facets and
returns true only if none disables the member.
TODO: currently this method is hard-coded to assume all interactions are
initiated by user.
isUsable in interface ObjectMemberisUsable in class ObjectMemberAbstractcontributee - may be null if just checking for authorization.where - the member is being rendered in the UI#isUsableResult(AuthenticationSession, ObjectAdapter)public Class<? extends Facet>[] getFacetTypes()
FacetHoldergetFacetTypes in interface FacetHoldergetFacetTypes in class ObjectMemberAbstractpublic <T extends Facet> T getFacet(Class<T> cls)
FacetHolderFacet.facetType()).getFacet in interface FacetHoldergetFacet in class ObjectMemberAbstractpublic boolean containsFacet(Class<? extends Facet> facetType)
FacetHoldercontainsFacet in interface FacetHoldercontainsFacet in class ObjectMemberAbstractpublic boolean containsDoOpFacet(Class<? extends Facet> facetType)
FacetHolderno-op.
Convenience; saves having to FacetHolder.getFacet(Class) and then check if
null and not a no-op.
containsDoOpFacet in interface FacetHoldercontainsDoOpFacet in class ObjectMemberAbstractpublic List<Facet> getFacets(org.apache.isis.applib.filter.Filter<Facet> filter)
FacetHolderFacets matching the specified FacetFilter.getFacets in interface FacetHoldergetFacets in class ObjectMemberAbstractpublic void addFacet(Facet facet)
FacetHoldertype as the key.
If there are any facet of the same type, they will be overwritten
provided that either the Facet specifies to
always replace or if the existing
Facet is a no-op.
addFacet in interface FacetHolderaddFacet in class ObjectMemberAbstractpublic void addFacet(MultiTypedFacet facet)
FacetHoldermulti-typed facet, extracting each of
its types as keys.
If there are any facet of the same type, they will be overwritten
provided that either the Facet specifies to
always replace or if the existing
Facet is a no-op.
addFacet in interface FacetHolderaddFacet in class ObjectMemberAbstractpublic void removeFacet(Facet facet)
FacetHolderFacet.facetType()
.removeFacet in interface FacetHolderremoveFacet in class ObjectMemberAbstractpublic void removeFacet(Class<? extends Facet> facetType)
FacetHolderremoveFacet in interface FacetHolderremoveFacet in class ObjectMemberAbstractCopyright © 2010–2014 The Apache Software Foundation. All rights reserved.