|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.util.DefaultResourceManager
ResourceManager
interface.
public class DefaultResourceManager
Handles the mapping of resources to confluence.home/userResources. The manager does not itself handle permissions. It is assumed that the client will check the permissions of the user before calling upon this. Each mapped resource will be available via the FileServerServlet under 'download/resources/foo'.
Constructor Summary | |
---|---|
DefaultResourceManager()
Deprecated. |
Method Summary | |
---|---|
void |
addResource(java.lang.String key,
java.io.File resourceFile,
Space space)
Deprecated. |
void |
addResource(java.lang.String key,
java.io.File resourceFile,
Space space,
java.lang.String contentTypePrefix)
Deprecated. |
void |
addResource(java.lang.String key,
org.springframework.core.io.Resource resource,
Space space)
Deprecated. |
void |
addResource(java.lang.String key,
org.springframework.core.io.Resource resourceFile,
Space space,
java.lang.String contentTypePrefix)
Deprecated. |
void |
deleteAllSpaceResources(java.lang.String spaceKey)
Deprecated. |
java.lang.Class[] |
getHandledEventClasses()
Deprecated. |
Resource |
getResource(java.lang.String key,
Space space)
Deprecated. |
java.io.File |
getResourceFile(java.lang.String relativePathToFile)
Deprecated. |
java.io.File |
getResourceFile(java.lang.String relativePathToFile,
Space space)
Deprecated. |
Resource |
getResourceWithSpaceKey(java.lang.String key,
java.lang.String spaceKey)
Deprecated. |
void |
handleEvent(com.atlassian.event.Event event)
Deprecated. |
void |
removeResource(java.lang.String key,
Space space)
Deprecated. Removes a resource from a Bandana mapping and the file system, if it exists. |
void |
setBandanaManager(com.atlassian.bandana.BandanaManager bandanaManager)
Deprecated. |
void |
setBootstrapManager(BootstrapManager bootstrapManager)
Deprecated. |
void |
setSpaceManager(SpaceManager spaceManager)
Deprecated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultResourceManager()
Method Detail |
---|
public Resource getResourceWithSpaceKey(java.lang.String key, java.lang.String spaceKey)
getResourceWithSpaceKey
in interface ResourceManager
key
- - key for the value to be mapped againstspaceKey
- - context in which the resource should be mappedpublic void deleteAllSpaceResources(java.lang.String spaceKey)
deleteAllSpaceResources
in interface ResourceManager
public void addResource(java.lang.String key, java.io.File resourceFile, Space space)
addResource
in interface ResourceManager
key
- - the mapping for the uploaded resource in confluence-global.bandana.xmlresourceFile
- - a File on the resource to storespace
- - the required space this resource should be mapped againstpublic void addResource(java.lang.String key, org.springframework.core.io.Resource resource, Space space)
addResource
in interface ResourceManager
public void addResource(java.lang.String key, java.io.File resourceFile, Space space, java.lang.String contentTypePrefix)
addResource
in interface ResourceManager
public void addResource(java.lang.String key, org.springframework.core.io.Resource resourceFile, Space space, java.lang.String contentTypePrefix)
addResource
in interface ResourceManager
key
- - the mapping for the uploaded resource in confluence-global.bandana.xmlresourceFile
- - a File on the resource to storecontentTypePrefix
- - for example, a file of type image/gif would be given a contentTypePrefix of
"image" and the "gif" extension will be extracted from the filename.public Resource getResource(java.lang.String key, Space space)
getResource
in interface ResourceManager
key
- - the bandana mapping to a user resource
public void removeResource(java.lang.String key, Space space)
removeResource
in interface ResourceManager
key
- space
- public java.io.File getResourceFile(java.lang.String relativePathToFile)
public java.io.File getResourceFile(java.lang.String relativePathToFile, Space space)
public void setBandanaManager(com.atlassian.bandana.BandanaManager bandanaManager)
public void setBootstrapManager(BootstrapManager bootstrapManager)
public void setSpaceManager(SpaceManager spaceManager)
public void handleEvent(com.atlassian.event.Event event)
handleEvent
in interface com.atlassian.event.EventListener
public java.lang.Class[] getHandledEventClasses()
getHandledEventClasses
in interface com.atlassian.event.EventListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |