001/*
002 * (C) Copyright 2006-2008 Nuxeo SAS (http://nuxeo.com/) and contributors.
003 *
004 * All rights reserved. This program and the accompanying materials
005 * are made available under the terms of the GNU Lesser General Public License
006 * (LGPL) version 2.1 which accompanies this distribution, and is available at
007 * http://www.gnu.org/licenses/lgpl.html
008 *
009 * This library is distributed in the hope that it will be useful,
010 * but WITHOUT ANY WARRANTY; without even the implied warranty of
011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
012 * Lesser General Public License for more details.
013 *
014 * Contributors:
015 *     bstefanescu
016 *
017 * $Id$
018 */
019
020package org.nuxeo.ecm.webengine.model;
021
022import java.lang.annotation.ElementType;
023import java.lang.annotation.Retention;
024import java.lang.annotation.RetentionPolicy;
025import java.lang.annotation.Target;
026
027import org.nuxeo.ecm.webengine.model.impl.ResourceTypeImpl;
028import org.nuxeo.runtime.annotations.loader.Indexable;
029
030/**
031 * @author <a href="mailto:bs@nuxeo.com">Bogdan Stefanescu</a>
032 */
033@Retention(RetentionPolicy.RUNTIME)
034@Target({ ElementType.TYPE })
035@Indexable({ "name", "superType" })
036public @interface WebAdapter {
037
038    String name(); // the adapter name
039
040    String type(); // the type name
041
042    String superType() default ResourceTypeImpl.ROOT_TYPE_NAME; // the super type name
043
044    String guard() default ""; // a security guard if any
045
046    String[] facets() default {};
047
048    String targetType() default ResourceType.ROOT_TYPE_NAME;
049
050    String[] targetFacets() default {};
051}