亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? opencmstestresourcefilter.java

?? cms是開源的框架
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/*
 * File   : $Source: /usr/local/cvs/opencms/test/org/opencms/test/OpenCmsTestResourceFilter.java,v $
 * Date   : $Date: 2005/06/29 14:22:49 $
 * Version: $Revision: 1.23 $
 *
 * This library is part of OpenCms -
 * the Open Source Content Mananagement System
 *
 * Copyright (c) 2005 Alkacon Software GmbH (http://www.alkacon.com)
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * For further information about Alkacon Software GmbH, please see the
 * company website: http://www.alkacon.com
 *
 * For further information about OpenCms, please see the
 * project website: http://www.opencms.org
 * 
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

package org.opencms.test;

import org.opencms.file.CmsProperty;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

/**
 * Base filter class for OpenCms VFS access method tests.<p>
 * 
 * A filter defines the attributes of a CmsResource which 
 * must not be changed after a method call in the CmsObject.<p>
 * 
 * To use a filter, either use the static filters provided by this class,
 * or create an instance of {@link org.opencms.test.OpenCmsTestResourceConfigurableFilter}.<p>
 * 
 * @author Alexander Kandzior 
 * @author Michael Emmerich 
 * 
 * @version $Revision: 1.23 $
 */
public abstract class OpenCmsTestResourceFilter {

    /** Definition of a filter used for the chacc method. */
    public static final OpenCmsTestResourceFilter FILTER_CHACC = getFilterChacc();

    /** Definition of a filter used for the chflags method. */
    public static final OpenCmsTestResourceFilter FILTER_CHFLAGS = getFilterChflags();

    /** Definition of a filter used for the chtype method. */
    public static final OpenCmsTestResourceFilter FILTER_CHTYPE = getFilterChtype();

    /** Definition of a filter used for the "copy file as new" method. */
    public static final OpenCmsTestResourceFilter FILTER_COPY_FILE_AS_NEW = getFilterCopyFileAsNew();

    /** Definition of a filter used for the "copy folder" method. */
    public static final OpenCmsTestResourceFilter FILTER_COPY_FOLDER = getFilterCopyFolder();

    /** Definition of a filter used for the copy method. */
    public static final OpenCmsTestResourceFilter FILTER_COPY_SOURCE_DESTINATION_AS_SIBLING = getFilterCopySourceDestinationAsSibling();

    /** Definition of a filter used for the create resource method. */
    public static final OpenCmsTestResourceFilter FILTER_CREATE_RESOURCE = getFilterCreateResource();

    /** Definition of a equal filter. */
    public static final OpenCmsTestResourceFilter FILTER_EQUAL = new OpenCmsTestResourceConfigurableFilter();

    /** Definition of a filter used to validate the existing and the new sibling after a copy opreation. */
    public static final OpenCmsTestResourceFilter FILTER_EXISTING_AND_NEW_SIBLING = getFilterExistingAndNewSibling();

    /** Definition of a filter used to validate an existing sibling after a copy operation. */
    public static final OpenCmsTestResourceFilter FILTER_EXISTING_SIBLING = getFilterExistingSibling();

    /** Definition of a filter used for the move/reanme method. */
    public static final OpenCmsTestResourceFilter FILTER_MOVE_DESTINATION = getFilterMoveDestination();

    /** Definition of a filter used for the move/reanme method. */
    public static final OpenCmsTestResourceFilter FILTER_MOVE_SOURCE = getFilterMoveSource();

    /** Definition of a filter used for the publsihResource method. */
    public static final OpenCmsTestResourceFilter FILTER_PUBLISHRESOURCE = getFilterPublishResource();

    /** Definition of a filter used for the replaceResource method. */
    public static final OpenCmsTestResourceFilter FILTER_REPLACERESOURCE = getFilterReplaceResource();

    /** Definition of a filter used for the touch method. */
    public static final OpenCmsTestResourceFilter FILTER_TOUCH = getFilterTouch();

    /** Definition of a filter used for the undoChanges method. */
    public static final OpenCmsTestResourceFilter FILTER_UNDOCHANGES = getFilterUndoChanges();

    /** Definition of a filter used for the writeProperty method. */
    public static final OpenCmsTestResourceFilter FILTER_WRITEPROPERTY = getFilterWriteProperty();

    /** Flag to enable/disable access (ACE) tests. */
    protected boolean m_ace;

    /** Flag to enable/disable access (ACL) tests. */
    protected boolean m_acl;

    /** Flag to enable/disable content id tests. */
    protected boolean m_contentId;

    /** Flag to enable/disable content comparison tests. */
    protected boolean m_contents;

    /** Flag to enable/disable date created tests. */
    protected boolean m_dateCreated;

    /** Flag to enable/disable date expired tests. */
    protected boolean m_dateExpired;

    /** Flag to enable/disable date last modified tests. */
    protected boolean m_dateLastModified;

    /** Flag to enable/disable date released tests. */
    protected boolean m_dateReleased;

    /** Flag to enable/disable flags tests. */
    protected boolean m_flags;

    /** Flag to enable/disable "is touched" tests. */
    protected boolean m_isTouched;

    /** Flag to enable/disable length tests. */
    protected boolean m_length;

    /** Flag to enable/disable lock state tests. */
    protected boolean m_lockstate;

    /** Flag to enable/disable name tests. */
    protected boolean m_name;

    /** Flag to enable/disable project last modified tests. */
    protected boolean m_projectLastModified;

    /** Flag to enable/disable properties tests. */
    protected boolean m_properties;

    /** Flag to enable/disable resource id tests. */
    protected boolean m_resourceId;

    /** Flag to enable/disable sibling count tests. */
    protected boolean m_siblingCount;

    /** Flag to enable/disable state tests. */
    protected boolean m_state;

    /** Flag to enable/disable structure id tests. */
    protected boolean m_structureId;

    /** Flag to enable/disable resource type tests. */
    protected boolean m_type;

    /** Flag to enable/disable user created tests. */
    protected boolean m_userCreated;

    /** Flag to enable/disable use last modified tests. */
    protected boolean m_userLastModified;

    /**
     * Compares two lists of properties and returns those 
     * that are included only in the source but not in the targer list and not
     * part of a seperade exclude list.<p>
     * 
     * @param source the source properties
     * @param target the target properties
     * @param exclude the exclude list
     * @return list of not matching properties
     */
    public static List compareProperties(List source, List target, List exclude) {

        List result = new ArrayList();
        List targetClone = new ArrayList(target);
        Iterator i = source.iterator();
        while (i.hasNext()) {
            boolean found = false;
            CmsProperty sourceProperty = (CmsProperty)i.next();
            Iterator j = targetClone.iterator();
            CmsProperty targetProperty = null;
            while (j.hasNext()) {
                targetProperty = (CmsProperty)j.next();
                if (sourceProperty.isIdentical(targetProperty)) {
                    found = true;
                    break;
                }
            }
            if (!found) {
                result.add(sourceProperty);
            } else {
                targetClone.remove(targetProperty);
            }
        }

        // finally match the result list with the exclude list
        if (exclude != null) {
            Iterator l = exclude.iterator();
            while (l.hasNext()) {
                CmsProperty excludeProperty = (CmsProperty)l.next();
                if (result.contains(excludeProperty)) {
                    result.remove(excludeProperty);
                }
            }
        }

        return result;
    }

    /**
     * Creates a new filter used for the "chacc" method.<p>
     * 
     * @return the created filter
     */
    private static OpenCmsTestResourceConfigurableFilter getFilterChacc() {

        OpenCmsTestResourceConfigurableFilter filter = new OpenCmsTestResourceConfigurableFilter();

        filter.disableStateTest();
        filter.disableProjectLastModifiedTest();
        filter.disableAclTest();
        filter.disableAceTest();

        return filter;
    }

    /**
     * Creates a new filter used for the "chflags" method.<p>
     * 
     * @return the created filter
     */
    private static OpenCmsTestResourceConfigurableFilter getFilterChflags() {

        OpenCmsTestResourceConfigurableFilter filter = new OpenCmsTestResourceConfigurableFilter();

        filter.disableFlagsTest();
        filter.disableStateTest();
        filter.disableProjectLastModifiedTest();
        filter.disableDateLastModifiedTest();
        filter.disableUserLastModifiedTest();

        return filter;
    }

    /**
     * Creates a new filter used for the "chtype" method.<p>
     * 
     * @return the created filter
     */
    private static OpenCmsTestResourceConfigurableFilter getFilterChtype() {

        OpenCmsTestResourceConfigurableFilter filter = new OpenCmsTestResourceConfigurableFilter();

        filter.disableTypeTest();
        filter.disableDateLastModifiedTest();

        return filter;
    }

    /**
     * Creates a new filter used for the "copy a file as new" method.<p>
     * 
     * @return the created filter
     */
    private static OpenCmsTestResourceConfigurableFilter getFilterCopyFileAsNew() {

        OpenCmsTestResourceConfigurableFilter filter = new OpenCmsTestResourceConfigurableFilter();

        filter.disableProjectLastModifiedTest();
        filter.disableStateTest();
        filter.disableStructureIdTest();
        filter.disableContentIdTest();
        filter.disableResourceIdTest();
        filter.disableUserCreatedTest();
        filter.disableDateCreatedTest();
        filter.disableLockTest();
        filter.disableNameTest();
        filter.disableAceTest();
        return filter;
    }

    /**
     * Creates a new filter used for the "copy a folder" method.<p>
     * 
     * @return the created filter
     */
    private static OpenCmsTestResourceConfigurableFilter getFilterCopyFolder() {

        OpenCmsTestResourceConfigurableFilter filter = getFilterCopyFileAsNew();

        // folder has the date last modified set to current date
        filter.disableDateLastModifiedTest();
        filter.disableUserLastModifiedTest();
        return filter;
    }

    /**
     * Creates a new filter used for the "copy as sibling" method.<p>
     * 
     * @return the created filter
     */
    private static OpenCmsTestResourceConfigurableFilter getFilterCopySourceDestinationAsSibling() {

        OpenCmsTestResourceConfigurableFilter filter = new OpenCmsTestResourceConfigurableFilter();

        filter.disableProjectLastModifiedTest();
        filter.disableStateTest();
        filter.disableStructureIdTest();
        filter.disableLockTest();
        filter.disableNameTest();
        return filter;
    }

    /**
     * Creates a new filter used for the "create resource" method.<p>
     * 
     * @return the created filter
     */
    private static OpenCmsTestResourceConfigurableFilter getFilterCreateResource() {

        OpenCmsTestResourceConfigurableFilter filter = new OpenCmsTestResourceConfigurableFilter();

        filter.disableProjectLastModifiedTest();
        filter.disableStateTest();
        filter.disableDateLastModifiedTest();
        filter.disableUserLastModifiedTest();
        filter.disableContentsTest();
        filter.disableLengthTest();
        filter.disableLockTest();
        return filter;
    }

    /**
     * Creates a new filter used to validate the fields of a new sibling
     * different from the existing sibling(s) from which it was created.<p>
     * 
     * @return the created filter
     */
    private static OpenCmsTestResourceConfigurableFilter getFilterExistingAndNewSibling() {

        OpenCmsTestResourceConfigurableFilter filter = new OpenCmsTestResourceConfigurableFilter();

        filter.disableStateTest();
        filter.disableStructureIdTest();
        filter.disableNameTest();
        filter.disableLockTest();

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产蜜臀av在线一区二区三区| 免费观看久久久4p| 亚洲视频你懂的| 综合婷婷亚洲小说| 亚洲人成亚洲人成在线观看图片| 国产精品久线在线观看| 欧美国产欧美亚州国产日韩mv天天看完整| 久久精品视频免费| 中文久久乱码一区二区| 亚洲欧洲精品天堂一级| 亚洲色图制服丝袜| 亚洲综合在线电影| 亚洲一区二区三区三| 亚洲成年人影院| 麻豆传媒一区二区三区| 国产成人综合在线| 成人福利视频在线| 在线免费观看成人短视频| 欧美日韩亚洲综合| 欧美一区二视频| 欧美xxxx老人做受| 亚洲国产高清在线观看视频| 中文字幕亚洲一区二区av在线| 亚洲精品成a人| 视频一区国产视频| 国产精品一级片| 91色在线porny| 欧美天天综合网| 精品日韩99亚洲| 国产精品久久久久久久久免费桃花| 综合色天天鬼久久鬼色| 天天综合色天天综合色h| 国产老肥熟一区二区三区| 日本高清不卡一区| 日韩三级在线免费观看| 国产目拍亚洲精品99久久精品| 一区二区在线观看免费| 久久精品99国产精品日本| 不卡电影一区二区三区| 欧美日韩免费视频| 久久久亚洲精华液精华液精华液| 综合激情成人伊人| 日韩高清在线观看| 大桥未久av一区二区三区中文| 欧美日韩免费视频| 国产欧美精品一区aⅴ影院| 亚洲一卡二卡三卡四卡| 国产福利视频一区二区三区| 精品视频一区二区不卡| 久久久精品中文字幕麻豆发布| 夜夜揉揉日日人人青青一国产精品| 久久成人免费日本黄色| 91色.com| 久久久国产午夜精品| 香蕉成人啪国产精品视频综合网| 国产在线一区观看| 欧美日韩在线综合| 亚洲欧洲另类国产综合| 精品系列免费在线观看| 欧美午夜精品理论片a级按摩| 国产欧美精品一区二区色综合朱莉| 首页欧美精品中文字幕| 91免费观看在线| 欧美高清在线精品一区| 男女男精品视频| 色婷婷久久久久swag精品| 国产欧美日韩综合精品一区二区| 日韩中文字幕区一区有砖一区| av中文字幕不卡| 国产偷国产偷亚洲高清人白洁| 日本不卡免费在线视频| 欧美日韩在线一区二区| 亚洲老妇xxxxxx| 成人高清视频在线| 久久综合久久综合久久综合| 日韩电影一区二区三区四区| 91麻豆6部合集magnet| 国产亚洲成av人在线观看导航| 老司机精品视频在线| 91精品国产综合久久精品麻豆 | 一区二区在线观看视频| 成人性生交大片免费看中文| 26uuu成人网一区二区三区| 日韩高清在线不卡| 欧美猛男gaygay网站| 一个色综合av| 色婷婷精品大视频在线蜜桃视频| 国产精品美女久久久久aⅴ国产馆| 精品一区二区三区在线播放视频 | 欧美日韩在线一区二区| 亚洲免费在线播放| 色综合久久久久久久久久久| 国产精品久久网站| av在线一区二区三区| 国产精品你懂的| 成人精品国产免费网站| 日本一区二区三区dvd视频在线| 国产精品亚洲人在线观看| 久久亚洲一区二区三区明星换脸 | 日韩欧美一二区| 日本欧美一区二区三区| 欧美一区二区三区在线观看视频| 午夜av区久久| 日韩欧美一区二区三区在线| 免费高清不卡av| 日韩片之四级片| 激情都市一区二区| 国产日韩欧美精品电影三级在线| 国产不卡视频在线观看| 国产精品无圣光一区二区| av午夜精品一区二区三区| 国产精品白丝在线| 色噜噜狠狠色综合中国| 亚洲亚洲精品在线观看| 91精品视频网| 国产一区免费电影| 国产精品国产三级国产普通话99 | 欧美日韩国产在线播放网站| 性感美女久久精品| 日韩欧美综合在线| 国产激情视频一区二区三区欧美 | 精品动漫一区二区三区在线观看| 国精产品一区一区三区mba视频 | 日韩国产欧美三级| 精品国产一区二区亚洲人成毛片| 国产精品99久久久| 亚洲天堂中文字幕| 欧美日韩国产美| 九九**精品视频免费播放| 国产三级精品在线| 91丨porny丨首页| 青草av.久久免费一区| 国产喷白浆一区二区三区| 91色九色蝌蚪| 久久国产夜色精品鲁鲁99| 日本一区二区三区dvd视频在线| 色就色 综合激情| 久久99久久99精品免视看婷婷| 国产精品久久久久影院| 欧美理论电影在线| 国产成人精品亚洲777人妖| 一区二区在线观看不卡| 日韩欧美成人午夜| 99久久综合精品| 麻豆久久久久久| 中文字幕亚洲不卡| 日韩女优毛片在线| 色哟哟亚洲精品| 久久99精品久久久久久久久久久久 | 91麻豆精品视频| 另类小说综合欧美亚洲| 亚洲品质自拍视频| 欧美α欧美αv大片| 在线日韩一区二区| 国模套图日韩精品一区二区 | 全国精品久久少妇| 国产精品嫩草影院com| 制服丝袜中文字幕一区| av在线一区二区| 精品一区二区三区视频| 夜夜嗨av一区二区三区中文字幕 | 国产亚洲欧美日韩在线一区| 欧洲色大大久久| 国产aⅴ综合色| 日韩福利视频网| 一区二区三区国产| 国产欧美一区二区精品性色| 欧美一区二区三区播放老司机| 99久久伊人久久99| 国产伦精品一区二区三区视频青涩| 亚洲国产精品一区二区久久| 中文字幕日本不卡| 久久夜色精品一区| 欧美一区二区视频在线观看| 欧洲激情一区二区| 成人免费视频视频在线观看免费| 蜜臀av一区二区| 午夜精品久久久久影视| 亚洲欧洲综合另类| 国产精品护士白丝一区av| 久久久精品tv| 精品美女被调教视频大全网站| 欧美日韩一区中文字幕| 色偷偷一区二区三区| www.色精品| 国产69精品一区二区亚洲孕妇 | 欧美日本一区二区| 91麻豆文化传媒在线观看| 国产a视频精品免费观看| 国产精品一区一区三区| 国产综合久久久久久鬼色| 日本一区中文字幕| 日韩主播视频在线| 天天综合色天天综合| 午夜精品久久久久久久久久久| 亚洲一区二区三区不卡国产欧美| 亚洲免费毛片网站| 洋洋av久久久久久久一区| 亚洲一区在线观看免费| 亚洲小说春色综合另类电影|