|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.dotmarketing.business.BaseInodeAPI
com.dotmarketing.business.BaseWebAssetAPI
public abstract class BaseWebAssetAPI
| Constructor Summary | |
|---|---|
BaseWebAssetAPI()
|
|
| Method Summary | |
|---|---|
protected void |
createAsset(WebAsset webasset,
java.lang.String userId)
|
protected void |
createAsset(WebAsset webasset,
java.lang.String userId,
Identifier identifier,
boolean working)
|
protected void |
createAsset(WebAsset webasset,
java.lang.String userId,
Inode parent)
|
protected void |
createAsset(WebAsset webasset,
java.lang.String userId,
Inode parent,
Identifier identifier,
boolean working)
|
static boolean |
deleteAsset(WebAsset currWebAsset)
This method totally removes an asset from the cms |
protected java.util.List |
findLiveChildren(Inode parent,
WebAsset webAsset)
Deprecated. |
int |
getCountAssetsAndPermissionsPerRoleAndConditionWithParent(java.lang.String condition,
java.lang.Class assetsClass,
java.lang.String parentId,
boolean showDeleted,
com.liferay.portal.model.User user)
|
int |
getCountAssetsAndPermissionsPerRoleAndConditionWithParent(java.lang.String hostId,
java.lang.String condition,
java.lang.Class assetsClass,
java.lang.String parentId,
boolean showDeleted,
com.liferay.portal.model.User user)
|
int |
getCountAssetsPerConditionWithPermission(Host host,
java.lang.String condition,
java.lang.Class c,
java.lang.String parent,
com.liferay.portal.model.User user)
|
int |
getCountAssetsPerConditionWithPermission(Host host,
java.lang.String condition,
java.lang.Class c,
com.liferay.portal.model.User user)
|
int |
getCountAssetsPerConditionWithPermission(java.lang.String condition,
java.lang.Class c,
java.lang.String parent,
com.liferay.portal.model.User user)
|
int |
getCountAssetsPerConditionWithPermission(java.lang.String condition,
java.lang.Class c,
com.liferay.portal.model.User user)
|
int |
getCountAssetsPerConditionWithPermission(java.lang.String hostId,
java.lang.String condition,
java.lang.Class c,
java.lang.String parent,
com.liferay.portal.model.User user)
|
int |
getCountAssetsPerConditionWithPermission(java.lang.String hostId,
java.lang.String condition,
java.lang.Class c,
com.liferay.portal.model.User user)
|
protected boolean |
isAbstractAsset(WebAsset asset)
|
protected abstract void |
save(WebAsset currWebAsset)
Save the asset. |
protected WebAsset |
saveAsset(WebAsset newWebAsset,
Identifier id)
This method save the new asset as the new working version and change the current working as an old version. |
protected void |
unLockAsset(WebAsset currWebAsset)
|
| Methods inherited from class com.dotmarketing.business.BaseInodeAPI |
|---|
getChildrenClassByCondition, saveInode |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BaseWebAssetAPI()
| Method Detail |
|---|
protected java.util.List findLiveChildren(Inode parent,
WebAsset webAsset)
parent - webAsset - The type of WebAsset children to look for
protected abstract void save(WebAsset currWebAsset)
throws DotDataException
currWebAsset -
DotDataException
protected void unLockAsset(WebAsset currWebAsset)
throws DotDataException
DotDataException
protected void createAsset(WebAsset webasset,
java.lang.String userId)
throws DotDataException
DotDataException
protected void createAsset(WebAsset webasset,
java.lang.String userId,
Inode parent)
throws DotDataException
DotDataException
protected void createAsset(WebAsset webasset,
java.lang.String userId,
Identifier identifier,
boolean working)
throws DotDataException
DotDataException
protected void createAsset(WebAsset webasset,
java.lang.String userId,
Inode parent,
Identifier identifier,
boolean working)
throws DotDataException
DotDataException
protected WebAsset saveAsset(WebAsset newWebAsset,
Identifier id)
throws DotDataException
newWebAsset - New webasset version to be converted as the working asset.
DotDataException - The method throw an exception when the new asset identifier
or the working folder cannot be found.protected boolean isAbstractAsset(WebAsset asset)
public static boolean deleteAsset(WebAsset currWebAsset)
currWebAsset - user - If the user is passed (not null) the system will check for write permission of the user in the assetrespectFrontendRoles -
java.lang.Exception
public int getCountAssetsAndPermissionsPerRoleAndConditionWithParent(java.lang.String condition,
java.lang.Class assetsClass,
java.lang.String parentId,
boolean showDeleted,
com.liferay.portal.model.User user)
public int getCountAssetsPerConditionWithPermission(java.lang.String condition,
java.lang.Class c,
com.liferay.portal.model.User user)
public int getCountAssetsPerConditionWithPermission(java.lang.String condition,
java.lang.Class c,
java.lang.String parent,
com.liferay.portal.model.User user)
public int getCountAssetsAndPermissionsPerRoleAndConditionWithParent(java.lang.String hostId,
java.lang.String condition,
java.lang.Class assetsClass,
java.lang.String parentId,
boolean showDeleted,
com.liferay.portal.model.User user)
public int getCountAssetsPerConditionWithPermission(Host host,
java.lang.String condition,
java.lang.Class c,
com.liferay.portal.model.User user)
public int getCountAssetsPerConditionWithPermission(java.lang.String hostId,
java.lang.String condition,
java.lang.Class c,
com.liferay.portal.model.User user)
public int getCountAssetsPerConditionWithPermission(Host host,
java.lang.String condition,
java.lang.Class c,
java.lang.String parent,
com.liferay.portal.model.User user)
public int getCountAssetsPerConditionWithPermission(java.lang.String hostId,
java.lang.String condition,
java.lang.Class c,
java.lang.String parent,
com.liferay.portal.model.User user)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||