org.nuiton.wikitty.publication
Class AbstractActionOnWikitty
java.lang.Object
org.nuiton.wikitty.publication.AbstractAction
org.nuiton.wikitty.publication.AbstractActionOnWikitty
- All Implemented Interfaces:
- WikittyPublicationAction
- Direct Known Subclasses:
- ActionEdit, ActionEval, ActionRaw
public abstract class AbstractActionOnWikitty
- extends AbstractAction
- Version:
- $Revision: 650 $
Last update: $Date: 2010-12-23 12:44:57 +0100 (jeu. 23 déc. 2010) $
by : $Author: sletellier $
- Author:
- poussin
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ARG_QUERY
public static final int ARG_QUERY
- See Also:
- Constant Field Values
ARG_MIMETYPE
public static final String ARG_MIMETYPE
- See Also:
- Constant Field Values
ARG_CONTENT_FIELD
public static final String ARG_CONTENT_FIELD
- See Also:
- Constant Field Values
SEARCH_SEPARATOR
public static final String SEARCH_SEPARATOR
- See Also:
- Constant Field Values
AbstractActionOnWikitty
public AbstractActionOnWikitty()
getExampleUsage
protected abstract String getExampleUsage()
getMimeType
protected String getMimeType(WikittyPublicationContext context,
String name,
Wikitty w)
- Recherche le type mime dont on a besoin.
Par defaut recherche dans les arguments si on a dans l'ordre de preference
- ARG_MIMETYPE + SEARCH_SEPARATOR + name
(ex: mimetype:MyCommand.name:df=text/plain)
- ARG_MIMETYPE
(ex: mimetype=MyCommand.mimetype)
- si w a l'extension WikittyPubText alors on prend la valeur du champs mimetype
- si w a l'extension WikittyPubData alors on prend la valeur du champs mimetype
- on retourne null
- Parameters:
context - name - la chaine utilise pour faire la recherche du wikittyw - le wikitty trouve grace a name
- Returns:
- le mimetype ou null
searchCriteria
protected Criteria searchCriteria(List<String> subContext)
- Retourne le critere pour recherche l'objet sur lequel faire l'action.
Le nom du critere doit etre convenablement positionné avec la chaine
qui a permit la recherche
- Parameters:
context -
- Returns:
getContentFieldName
protected String getContentFieldName(WikittyPublicationContext context,
String name,
Wikitty w)
- Recherche le champs contenant le content dont on a besoin.
Par defaut recherche dans les arguments si on a dans l'ordre de preference
- ARG_CONTENT_FIELD + SEARCH_SEPARATOR + name
(ex: contentField:MyCommand.name:df=MyCommand.script)
- ARG_CONTENT_FIELD
(ex: contentField=MyCommand.script)
- si w a l'extension WikittyPubText alors on prend le champs content
- si w a l'extension WikittyPubData alors on prend le champs content
- on retourne null
- Parameters:
context - name - la chaine utilise pour faire la recherche du wikittyw - le wikitty trouve grace a name
- Returns:
- le champs contenant le content ou null
getError
protected String getError(WikittyPublicationContext context)
Copyright © 2010-2011 CodeLutin. All Rights Reserved.