@Security public class RawFileServiceSecurity extends BaseServiceSecurity implements RawFileService
RawFileService| Constructor and Description |
|---|
RawFileServiceSecurity() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkPermissionForNewTemp(CustomField<?,?,?> customField) |
boolean |
hasManagePermission(RawFile file) |
boolean |
hasViewPermission(RawFile file) |
java.util.List<RawFileVO> |
listTemp(java.lang.String guestKey,
CustomFieldVO customFieldVO)
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,
CustomFieldVO customFieldVO,
java.lang.String name,
java.lang.String contentType,
SerializableInputStream content)
Saves the given file content.
|
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 void checkPermissionForNewTemp(CustomField<?,?,?> customField)
public boolean hasManagePermission(RawFile file)
public boolean hasViewPermission(RawFile file)
public java.util.List<RawFileVO> listTemp(java.lang.String guestKey, CustomFieldVO customFieldVO) 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, CustomFieldVO customFieldVO, java.lang.String name, java.lang.String contentType, SerializableInputStream content) throws FrameworkException
RawFileServiceCustomFieldType.FILE custom field then it must be specified
through the customFieldVO parameter and it must contains also the nature to allow load the correct
custom field sub-class.saveTemp in interface RawFileServiceFrameworkExceptionprotected org.cyclos.impl.access.EntityCheck<?> resolveEntityCheck()
BaseServiceSecurityEntityCheck managed by this security component, or null if
noneresolveEntityCheck in class BaseServiceSecurity