@Security public class RawFileServiceSecurity extends BaseServiceSecurity implements RawFileService
RawFileService| Constructor and Description |
|---|
RawFileServiceSecurity() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkPermissionForNewTemp(CustomFieldType type) |
boolean |
hasManagePermission(RawFile file) |
boolean |
hasViewPermission(RawFile file) |
java.util.List<RawFileVO> |
listTemp(java.lang.String guestKey)
Lists the temporary files owned by the current user or guest.
|
RawFileVO |
load(java.lang.Long id)
Loads a vo by id
|
SerializableInputStream |
readContent(java.lang.Long id)
Reads the contents of the given file
|
void |
remove(java.lang.Long id)
Removes the given file
|
void |
removeAll(java.util.List<java.lang.Long> ids)
Removes the files with the given ids
|
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 |
void |
saveName(java.lang.Long id,
java.lang.String name)
Saves the name of the given file
|
RawFileVO |
saveTemp(java.lang.String guestKey,
java.lang.String name,
java.lang.String contentType,
SerializableInputStream content)
Saves the given file content
|
checkGuest, checkId, checkIds, checkInternalName, checkLoggedIn, checkManagesUser, checkRelatesToUser, checkVO, checkVOs, doInitialize, getEntityCheckRegistry, getUser, initializecanManage, checkManagesUser, checkPermission, checkRelatesToUser, checkValue, clearAlreadyValidated, getAccountHandler, getAuthHandler, getBaseEntityManagerHandler, getChannelConfiguration, getConfiguration, getConversionHandler, getCustomFieldValueHandler, getEntityManagerHandler, getGroupsHandler, getLoggedBasicUser, getLoggedUser, getProducts, getProductsHandler, getReportHandler, getTranslatedName, getTranslatedValue, getUserLocatorHandler, getValidationResult, 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, getConfigurationHandler, getDataTranslationHandler, getFormatter, getFormatter, getFormatter, getLogger, getNotificationHandler, getProfileFieldHandler, getRemoteAddress, getSessionData, getTransactionHandler, getTranslationHandler, mailContentBuilder, message, message, persist, processBatch, refresh, remove, selectFrom, subQuery, updatepublic void checkPermissionForNewTemp(CustomFieldType type)
public boolean hasManagePermission(RawFile file)
public boolean hasViewPermission(RawFile file)
public java.util.List<RawFileVO> listTemp(java.lang.String guestKey) throws FrameworkException
RawFileServicelistTemp in interface RawFileServiceFrameworkExceptionpublic RawFileVO load(java.lang.Long id) throws FrameworkException
RawFileServiceload in interface RawFileServiceFrameworkExceptionpublic SerializableInputStream readContent(java.lang.Long id) throws FrameworkException
RawFileServicereadContent in interface RawFileServiceFrameworkExceptionpublic void remove(java.lang.Long id)
throws FrameworkException
RawFileServiceremove in interface RawFileServiceFrameworkExceptionpublic void removeAll(java.util.List<java.lang.Long> ids)
RawFileServiceremoveAll in interface RawFileServicepublic void saveName(java.lang.Long id,
java.lang.String name)
throws FrameworkException
RawFileServicesaveName in interface RawFileServiceFrameworkExceptionpublic RawFileVO saveTemp(java.lang.String guestKey, java.lang.String name, java.lang.String contentType, SerializableInputStream content) throws FrameworkException
RawFileServicesaveTemp in interface RawFileServiceFrameworkExceptionprotected org.cyclos.impl.access.EntityCheck<?> resolveEntityCheck()
BaseServiceSecurityEntityCheck managed by this security component, or null if
noneresolveEntityCheck in class BaseServiceSecurity