Class UploadArtisteerSkinAction
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.apache.cocoon.acting.AbstractAction
-
- org.apache.cocoon.acting.ServiceableAction
-
- org.ametys.web.skin.actions.UploadSkinAction
-
- org.ametys.plugins.artisteer.actions.UploadArtisteerSkinAction
-
- All Implemented Interfaces:
Component,Contextualizable,LogEnabled,Serviceable,Action
public class UploadArtisteerSkinAction extends UploadSkinAction
This action receive a form with the "importfile" zip file as an artisteer exported skin. Replace existing skin
-
-
Field Summary
Fields Modifier and Type Field Description private static List<String>__FILE_NAME_TO_DELETEprivate static Pattern__UNVALUED_RULE_PATTERN-
Fields inherited from class org.ametys.web.skin.actions.UploadSkinAction
_cocoonContext
-
Fields inherited from class org.apache.cocoon.acting.ServiceableAction
manager
-
Fields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP
-
-
Constructor Summary
Constructors Constructor Description UploadArtisteerSkinAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void_filter(File skinDir, String absoluteSkinPath, boolean isModel)Filter skin directoryprivate void_removeUnvaluedLines(File cssFile)-
Methods inherited from class org.ametys.web.skin.actions.UploadSkinAction
_unzip, act, contextualize
-
Methods inherited from class org.apache.cocoon.acting.ServiceableAction
service
-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Field Detail
-
__UNVALUED_RULE_PATTERN
private static final Pattern __UNVALUED_RULE_PATTERN
-
__FILE_NAME_TO_DELETE
private static final List<String> __FILE_NAME_TO_DELETE
-
-
Constructor Detail
-
UploadArtisteerSkinAction
public UploadArtisteerSkinAction()
-
-
Method Detail
-
_filter
protected void _filter(File skinDir, String absoluteSkinPath, boolean isModel) throws IOException
Description copied from class:UploadSkinActionFilter skin directory- Overrides:
_filterin classUploadSkinAction- Parameters:
skinDir- the skin directoryabsoluteSkinPath- the absolute path of tmp skin directoryisModel- true if the uploaded skin is the model of skin.- Throws:
IOException- if an error occurred
-
_removeUnvaluedLines
private void _removeUnvaluedLines(File cssFile) throws FileNotFoundException, IOException
- Throws:
FileNotFoundExceptionIOException
-
-