Interface ResourceView
-
- All Superinterfaces:
Securable
public interface ResourceView extends Securable
Interface that defines a resource view to be taken in charge by viewer APIs.This interface allows to decouple the attachment service stuffs from viewer APIs, and so, to make them usable by any kind of service into Silverpeas context.
- Author:
- silveryocha
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getContentType()
Gets the content type of the resource view.String
getId()
Gets the identifier of the resource view.String
getName()
Gets the name of the resource view.ViewerContext
getViewerContext()
Gets theViewerContext
of the resource view.boolean
isDownloadableBy(User user)
Indicates if the media is downloadable by given user.-
Methods inherited from interface org.silverpeas.core.security.Securable
canBeAccessedBy, canBeDeletedBy, canBeFiledInBy, canBeModifiedBy
-
-
-
-
Method Detail
-
getId
String getId()
Gets the identifier of the resource view.- Returns:
- a string representing a unique identifier.
-
getName
String getName()
Gets the name of the resource view.- Returns:
- a string.
-
getContentType
String getContentType()
Gets the content type of the resource view.- Returns:
- a string.
-
getViewerContext
ViewerContext getViewerContext()
Gets theViewerContext
of the resource view.- Returns:
- a
ViewerContext
instance.
-
-