Examples of DisabledFacetImpl


Examples of org.apache.isis.core.metamodel.facets.members.disabled.DisabledFacetImpl

        }
        DisabledFacet disabledFacet = assoc.getFacet(DisabledFacet.class);
        if(disabledFacet != null && !disabledFacet.isNoop()) {
            DisabledFacetRepr disabledFacetRepr = new DisabledFacetRepr();
            if(disabledFacet instanceof DisabledFacetImpl) {
                DisabledFacetImpl disabledFacetImpl = (DisabledFacetImpl) disabledFacet;
                disabledFacetRepr.reason = Strings.emptyToNull(disabledFacetImpl.getReason());
            }
            disabledFacetRepr.when = whenAlwaysToNull(disabledFacet.when());
            disabledFacetRepr.where = whereAnywhereToNull(disabledFacet.where());
            memberRepr.disabled = disabledFacetRepr;
        }
View Full Code Here

Examples of org.apache.isis.core.metamodel.facets.members.disabled.DisabledFacetImpl

            originalFacet.when() == When.ALWAYS &&
            originalFacet.where() == Where.ANYWHERE) {
            return originalFacet;
        }
        // ensure that the contributed association is always disabled
        return new DisabledFacetImpl(When.ALWAYS, Where.ANYWHERE, "Contributed collection", this);
    }
View Full Code Here

Examples of org.apache.isis.core.metamodel.facets.members.disabled.DisabledFacetImpl

            originalFacet.when() == When.ALWAYS &&
            originalFacet.where() == Where.ANYWHERE) {
            return originalFacet;
        }
        // ensure that the contributed association is always disabled
        return new DisabledFacetImpl(When.ALWAYS, Where.ANYWHERE, "Contributed property", this);
    }
View Full Code Here

Examples of org.apache.isis.core.progmodel.facets.members.disabled.DisabledFacetImpl

        }
        DisabledFacet disabledFacet = assoc.getFacet(DisabledFacet.class);
        if(disabledFacet != null && !disabledFacet.isNoop()) {
            DisabledFacetRepr disabledFacetRepr = new DisabledFacetRepr();
            if(disabledFacet instanceof DisabledFacetImpl) {
                DisabledFacetImpl disabledFacetImpl = (DisabledFacetImpl) disabledFacet;
                disabledFacetRepr.reason = Strings.emptyToNull(disabledFacetImpl.getReason());
            }
            disabledFacetRepr.when = whenAlwaysToNull(disabledFacet.when());
            disabledFacetRepr.where = whereAnywhereToNull(disabledFacet.where());
            memberRepr.disabled = disabledFacetRepr;
        }
View Full Code Here

Examples of org.apache.isis.core.progmodel.facets.members.disabled.DisabledFacetImpl

            originalFacet.when() == When.ALWAYS &&
            originalFacet.where() == Where.ANYWHERE) {
            return originalFacet;
        }
        // ensure that the contributed association is always disabled
        return new DisabledFacetImpl(When.ALWAYS, Where.ANYWHERE, "Contributed collection", this);
    }
View Full Code Here

Examples of org.apache.isis.core.progmodel.facets.members.disabled.DisabledFacetImpl

            originalFacet.when() == When.ALWAYS &&
            originalFacet.where() == Where.ANYWHERE) {
            return originalFacet;
        }
        // ensure that the contributed association is always disabled
        return new DisabledFacetImpl(When.ALWAYS, Where.ANYWHERE, "Contributed property", this);
    }
View Full Code Here

Examples of org.apache.isis.core.progmodel.facets.members.disabled.DisabledFacetImpl

            originalFacet.when() == When.ALWAYS &&
            originalFacet.where() == Where.ANYWHERE) {
            return originalFacet;
        }
        // ensure that the contributed association is always disabled
        return new DisabledFacetImpl(When.ALWAYS, Where.ANYWHERE, "Contributed collection", this);
    }
View Full Code Here

Examples of org.apache.isis.core.progmodel.facets.members.disabled.DisabledFacetImpl

            originalFacet.when() == When.ALWAYS &&
            originalFacet.where() == Where.ANYWHERE) {
            return originalFacet;
        }
        // ensure that the contributed association is always disabled
        return new DisabledFacetImpl(When.ALWAYS, Where.ANYWHERE, "Contributed property", this);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.