001/**
002 *  Licensed to the Apache Software Foundation (ASF) under one or more
003 *  contributor license agreements.  See the NOTICE file distributed with
004 *  this work for additional information regarding copyright ownership.
005 *  The ASF licenses this file to You under the Apache License, Version 2.0
006 *  (the "License"); you may not use this file except in compliance with
007 *  the License.  You may obtain a copy of the License at
008 *
009 *     http://www.apache.org/licenses/LICENSE-2.0
010 *
011 *  Unless required by applicable law or agreed to in writing, software
012 *  distributed under the License is distributed on an "AS IS" BASIS,
013 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014 *  See the License for the specific language governing permissions and
015 *  limitations under the License.
016 */
017package org.apache.isis.core.metamodel.spec.feature;
018
019import org.apache.isis.applib.annotation.Where;
020import org.apache.isis.applib.filter.Filter;
021import org.apache.isis.core.commons.authentication.AuthenticationSession;
022import org.apache.isis.core.metamodel.adapter.ObjectAdapter;
023
024@Deprecated
025public class ObjectAssociationFilters {
026
027    /**
028     * @deprecated - use {@link ObjectAssociation.Filters#PROPERTIES}
029     */
030    @Deprecated
031    public final static Filter<ObjectAssociation> PROPERTIES = ObjectAssociation.Filters.PROPERTIES;
032
033    /**
034     * @deprecated - use {@link ObjectAssociation.Filters#REFERENCE_PROPERTIES}
035     */
036    @Deprecated
037    public final static Filter<ObjectAssociation> REFERENCE_PROPERTIES = ObjectAssociation.Filters.REFERENCE_PROPERTIES;
038
039    /**
040     * @deprecated - use {@link ObjectAssociation.Filters#WHERE_VISIBLE_IN_COLLECTION_TABLE}
041     */
042    @Deprecated
043    public final static Filter<ObjectAssociation> WHERE_VISIBLE_IN_COLLECTION_TABLE = ObjectAssociation.Filters.WHERE_VISIBLE_IN_COLLECTION_TABLE;
044
045    /**
046     * @deprecated - use {@link ObjectAssociation.Filters#WHERE_VISIBLE_IN_STANDALONE_TABLE}
047     */
048    @Deprecated
049    public final static Filter<ObjectAssociation> WHERE_VISIBLE_IN_STANDALONE_TABLE = ObjectAssociation.Filters.WHERE_VISIBLE_IN_STANDALONE_TABLE;
050
051    /**
052     * @deprecated - use {@link ObjectAssociation.Filters#ALL}
053     */
054    @Deprecated
055    public final static Filter<ObjectAssociation> ALL = ObjectAssociation.Filters.ALL;
056
057    /**
058     * @deprecated - use {@link ObjectAssociation.Filters#COLLECTIONS}
059     */
060    @Deprecated
061    public final static Filter<ObjectAssociation> COLLECTIONS = ObjectAssociation.Filters.COLLECTIONS;
062
063    /**
064     * @deprecated - use {@link ObjectAssociation.Filters#VISIBLE_AT_LEAST_SOMETIMES}
065     */
066    @Deprecated
067    public static final Filter<ObjectAssociation> VISIBLE_AT_LEAST_SOMETIMES = ObjectAssociation.Filters.VISIBLE_AT_LEAST_SOMETIMES;
068
069    /**
070     * @deprecated - use {@link ObjectAssociation.Filters#dynamicallyVisible(AuthenticationSession, ObjectAdapter, Where)}
071     */
072    @Deprecated
073    public static final Filter<ObjectAssociation> staticallyVisible(final Where context) {
074        return ObjectAssociation.Filters.staticallyVisible(context);
075    }
076    
077    /**
078     * @deprecated - use {@link ObjectAssociation.Filters#dynamicallyVisible(AuthenticationSession, ObjectAdapter, Where)}
079     */
080    @Deprecated
081    public static Filter<ObjectAssociation> dynamicallyVisible(final AuthenticationSession session, final ObjectAdapter target, final Where where) {
082        return ObjectAssociation.Filters.dynamicallyVisible(session, target, where);
083    }
084
085    /**
086     * @deprecated - use {@link ObjectAssociation.Filters#enabled(AuthenticationSession, ObjectAdapter, Where)}
087     */
088    @Deprecated
089    public static Filter<ObjectAssociation> enabled(final AuthenticationSession session, final ObjectAdapter adapter, final Where where) {
090        return ObjectAssociation.Filters.enabled(session, adapter, where);
091    }
092    
093}