Package org.ametys.skinfactory.model
Class ModelDesignsManager
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.ametys.skinfactory.model.ModelDesignsManager
- All Implemented Interfaces:
Initializable
,Component
,LogEnabled
,Serviceable
,ThreadSafe
public class ModelDesignsManager
extends AbstractLogEnabled
implements ThreadSafe, Serviceable, Initializable, Component
Manages the design conceptions of a model
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Bean representing a model design -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
applyDesign
(String modelName, String id, Path skinDir) Apply a designGet design instance of given id and model namegetDesigns
(String modelName) Get all design instances for given modelvoid
void
service
(ServiceManager smanager) Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Field Details
-
ROLE
The avalon role name
-
-
Constructor Details
-
ModelDesignsManager
public ModelDesignsManager()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
initialize
- Specified by:
initialize
in interfaceInitializable
- Throws:
Exception
-
getDesigns
Get all design instances for given model- Parameters:
modelName
- The model name- Returns:
- all design instances for given model
-
getDesign
Get design instance of given id and model name- Parameters:
modelName
- The model nameid
- The id- Returns:
- design instance
-
applyDesign
Apply a design- Parameters:
modelName
- The model nameid
- Id of designskinDir
- The skin directory (could be temp, work or skins)
-