Package org.ametys.skinfactory.model
Class ModelDesignsManager
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.ametys.skinfactory.model.ModelDesignsManager
-
- All Implemented Interfaces:
Component
,LogEnabled
,Serviceable
,ThreadSafe
public class ModelDesignsManager extends AbstractLogEnabled implements ThreadSafe, Serviceable, Component
Manages the design conceptions of a model
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
ModelDesignsManager.Design
Bean representing a model design
-
Constructor Summary
Constructors Constructor Description ModelDesignsManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
applyDesign(String modelName, String id, Path skinDir)
Apply a designModelDesignsManager.Design
getDesign(String modelName, String id)
Get design instance of given id and model nameMap<String,ModelDesignsManager.Design>
getDesigns(String modelName)
Get all design instances for given modelvoid
service(ServiceManager smanager)
-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Constructor Detail
-
ModelDesignsManager
public ModelDesignsManager()
-
-
Method Detail
-
service
public void service(ServiceManager smanager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
getDesigns
public Map<String,ModelDesignsManager.Design> getDesigns(String modelName)
Get all design instances for given model- Parameters:
modelName
- The model name- Returns:
- all design instances for given model
-
getDesign
public ModelDesignsManager.Design getDesign(String modelName, String id)
Get design instance of given id and model name- Parameters:
modelName
- The model nameid
- The id- Returns:
- design instance
-
applyDesign
public void applyDesign(String modelName, String id, Path skinDir)
Apply a design- Parameters:
modelName
- The model nameid
- Id of designskinDir
- The skin directory (could be temp, work or skins)
-
-