public abstract class BaseImageServiceSecurity<I extends Image,NP> extends BaseServiceSecurity implements BaseImageService<NP>
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Class<I> |
imageType |
| Constructor and Description |
|---|
BaseImageServiceSecurity(java.lang.Class<I> imageType) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
checkCreateNew(NP param) |
protected void |
checkManageAccess(I image) |
protected I |
find(java.lang.Long id) |
ImageNature |
getImageNature() |
protected abstract BaseImageServiceLocal<I,NP> |
getImplementation() |
abstract boolean |
hasManageAccess(I image) |
void |
remove(@NotNull java.lang.Long id)
Removes the given image
|
void |
removeAll(@NotNull java.util.Collection<java.lang.Long> ids)
Removes all the given image
|
protected org.cyclos.impl.access.EntityCheck<?> |
resolveEntityCheck()
Must be implemented in order to return the
EntityCheck managed by this security component, or null if
none |
ImageVO |
save(NP param,
java.lang.String name,
SerializableInputStream contents,
java.lang.String contentType)
Saves the given image for the given parameter (which depends on each image type), returning the descriptor
|
void |
saveName(@NotNull java.lang.Long id,
java.lang.String name)
Saves the name of the given image
|
checkGuest, checkId, checkIds, checkInternalName, checkLoggedIn, checkManagesUser, checkRelatesToUser, checkScope, checkVO, checkVOs, doInitialize, getEntityCheckRegistry, getUser, initializecanManage, checkManagesUser, checkPermission, checkRelatesToUser, checkValue, clearAlreadyValidated, getBaseEntityManagerHandler, getConfiguration, getLoggedBasicUser, getLoggedUser, getProducts, getTranslatedName, getTranslatedValue, hasPermission, hasValue, inSameNetwork, inSameNetworkOrGlobal, isAdmin, isAlreadyValidated, isBroker, isGlobalAdmin, isGlobalAdminInNetwork, isGuest, isLoggedIn, isMember, isMemberOnly, isNetworkAdmin, isOperator, isRelatedToUser, isSystem, isUserManager, isUserManagerOf, message, message, permission, permission, permissionOptionalValue, permissionOptionalValue, toDate, toDateTime, validatedelete, detach, find, flush, from, getApplicationContext, getFormatter, getFormatter, getFormatter, getLogger, getRemoteAddress, getSessionData, mailContentBuilder, message, message, persist, processBatch, processBatch, refresh, remove, selectFrom, subQuery, updatepublic BaseImageServiceSecurity(java.lang.Class<I> imageType)
public ImageNature getImageNature()
public abstract boolean hasManageAccess(I image)
public final void remove(@NotNull
@NotNull java.lang.Long id)
throws FrameworkException
BaseImageServiceremove in interface BaseImageService<NP>FrameworkExceptionpublic void removeAll(@NotNull
@NotNull java.util.Collection<java.lang.Long> ids)
throws FrameworkException
BaseImageServiceremoveAll in interface BaseImageService<NP>FrameworkExceptionpublic final ImageVO save(NP param, java.lang.String name, SerializableInputStream contents, java.lang.String contentType) throws FrameworkException
BaseImageServicesave in interface BaseImageService<NP>FrameworkExceptionpublic final void saveName(@NotNull
@NotNull java.lang.Long id,
java.lang.String name)
throws FrameworkException
BaseImageServicesaveName in interface BaseImageService<NP>FrameworkExceptionprotected abstract void checkCreateNew(NP param)
protected void checkManageAccess(I image)
protected I find(java.lang.Long id)
protected abstract BaseImageServiceLocal<I,NP> getImplementation()
protected final org.cyclos.impl.access.EntityCheck<?> resolveEntityCheck()
BaseServiceSecurityEntityCheck managed by this security component, or null if
noneresolveEntityCheck in class BaseServiceSecurity