Package org.apache.isis.core.metamodel.interactions

Examples of org.apache.isis.core.metamodel.interactions.CollectionAddToContext


    @Override
    public String invalidates(final ValidityContext<? extends ValidityEvent> context) {
        if (!(context instanceof CollectionAddToContext)) {
            return null;
        }
        final CollectionAddToContext collectionAddToContext = (CollectionAddToContext) context;
        return invalidReason(context.getTarget(), collectionAddToContext.getProposed());
    }
View Full Code Here


    // Validate Add
    // /////////////////////////////////////////////////////////////

    @Override
    public ValidityContext<?> createValidateAddInteractionContext(final AuthenticationSession session, final InteractionInvocationMethod invocationMethod, final ObjectAdapter ownerAdapter, final ObjectAdapter proposedToAddAdapter) {
        return new CollectionAddToContext(getDeploymentCategory(), session, invocationMethod, ownerAdapter, getIdentifier(), proposedToAddAdapter);
    }
View Full Code Here

    @Override
    public String invalidates(final ValidityContext<? extends ValidityEvent> context) {
        if (!(context instanceof CollectionAddToContext)) {
            return null;
        }
        final CollectionAddToContext collectionAddToContext = (CollectionAddToContext) context;
        return invalidReason(context.getTarget(), collectionAddToContext.getProposed());
    }
View Full Code Here

    // Validate Add
    // /////////////////////////////////////////////////////////////

    @Override
    public ValidityContext<?> createValidateAddInteractionContext(final AuthenticationSession session, final InteractionInvocationMethod invocationMethod, final ObjectAdapter ownerAdapter, final ObjectAdapter proposedToAddAdapter) {
        return new CollectionAddToContext(getDeploymentCategory(), session, invocationMethod, ownerAdapter, getIdentifier(), proposedToAddAdapter);
    }
View Full Code Here

    @Override
    public String invalidates(final ValidityContext<? extends ValidityEvent> context) {
        if (!(context instanceof CollectionAddToContext)) {
            return null;
        }
        final CollectionAddToContext collectionAddToContext = (CollectionAddToContext) context;
        return invalidReason(context.getTarget(), collectionAddToContext.getProposed());
    }
View Full Code Here

    // Validate Add
    // /////////////////////////////////////////////////////////////

    @Override
    public ValidityContext<?> createValidateAddInteractionContext(final AuthenticationSession session, final InteractionInvocationMethod invocationMethod, final ObjectAdapter ownerAdapter, final ObjectAdapter proposedToAddAdapter) {
        return new CollectionAddToContext(session, invocationMethod, ownerAdapter, getIdentifier(), proposedToAddAdapter);
    }
View Full Code Here

    @Override
    public String invalidates(final ValidityContext<? extends ValidityEvent> context) {
        if (!(context instanceof CollectionAddToContext)) {
            return null;
        }
        final CollectionAddToContext collectionAddToContext = (CollectionAddToContext) context;
        return invalidReason(context.getTarget(), collectionAddToContext.getProposed());
    }
View Full Code Here

    @Override
    public ValidityContext<?> createValidateAddInteractionContext(final AuthenticationSession session,
        final InteractionInvocationMethod invocationMethod, final ObjectAdapter ownerAdapter,
        final ObjectAdapter proposedToAddAdapter) {
        return new CollectionAddToContext(session, invocationMethod, ownerAdapter, getIdentifier(),
            proposedToAddAdapter);
    }
View Full Code Here

TOP

Related Classes of org.apache.isis.core.metamodel.interactions.CollectionAddToContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.