public class SkinDAO extends Object implements Serviceable, Component
Modifier and Type | Field and Description |
---|---|
private static String |
__PROD_MODE |
private static String |
__WORK_MODE |
protected SkinLockManager |
_lockManager
The lock manager
|
private RightManager |
_rightManager |
private SiteManager |
_siteManager |
protected SkinEditionHelper |
_skinHelper
The skin edition helper
|
private SkinsManager |
_skinManager |
private CurrentUserProvider |
_userProvider |
static String |
ROLE
The Avalon role
|
static String |
SKIN_EDITOR_TOOL_ID
Constant for skin editor tool id
|
Constructor and Description |
---|
SkinDAO() |
Modifier and Type | Method and Description |
---|---|
private Map<String,Object> |
_skin2JsonObject(Skin skin,
boolean current) |
List<Object> |
getSkinsList(String siteName)
Get the list of skins available for a site
|
String |
openSkin(String skinId,
String mode,
boolean unlinkModel)
Open a skin for editing
|
void |
service(ServiceManager manager) |
protected void |
unlinkModel(File skinDir)
Unlink model
|
public static final String SKIN_EDITOR_TOOL_ID
private static final String __WORK_MODE
private static final String __PROD_MODE
protected SkinLockManager _lockManager
protected SkinEditionHelper _skinHelper
private SkinsManager _skinManager
private CurrentUserProvider _userProvider
private RightManager _rightManager
private SiteManager _siteManager
public SkinDAO()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
public List<Object> getSkinsList(String siteName)
siteName
- The site nameprivate Map<String,Object> _skin2JsonObject(Skin skin, boolean current)
public String openSkin(String skinId, String mode, boolean unlinkModel) throws Exception
skinId
- the skin idmode
- the edition modeunlinkModel
- True to remove any existing changeException
- if an error occurs during the skin opening processprotected void unlinkModel(File skinDir)
skinDir
- The skin directory