org.sakaiproject.service.legacy.content.cover
Class ContentHostingService

java.lang.Object
  extended byorg.sakaiproject.service.legacy.content.cover.ContentHostingService

public class ContentHostingService
extends Object

ContentHostingService is a static Cover for the ContentHostingService; see that interface for usage details.

Author:
Sakai Software Development Team

Field Summary
static String EVENT_DROPBOX_MAINTAIN
           
static String EVENT_DROPBOX_OWN
           
static String EVENT_RESOURCE_ADD
           
static String EVENT_RESOURCE_READ
           
static String EVENT_RESOURCE_REMOVE
           
static String EVENT_RESOURCE_WRITE
           
static String PROP_ALTERNATE_REFERENCE
           
static String REFERENCE_ROOT
           
static String SERVICE_NAME
           
 
Constructor Summary
ContentHostingService()
           
 
Method Summary
static ContentResourceEdit addAttachmentResource(String param0)
           
static ContentResource addAttachmentResource(String param0, String param1, byte[] param2, ResourceProperties param3)
           
static ContentResource addAttachmentResource(String param0, String param1, String param2, String param3, byte[] param4, ResourceProperties param5)
           
static ContentCollectionEdit addCollection(String param0)
           
static ContentCollection addCollection(String param0, ResourceProperties param1)
           
static ResourceProperties addProperty(String param0, String param1, String param2)
           
static ContentResourceEdit addResource(String param0)
           
static ContentResource addResource(String param0, String param1, byte[] param2, ResourceProperties param3, int param4)
           
static ContentResource addResource(String param0, String param1, int param2, String param3, byte[] param4, ResourceProperties param5, int param6)
           
static boolean allowAddAttachmentResource()
           
static boolean allowAddCollection(String param0)
           
static boolean allowAddProperty(String param0)
           
static boolean allowAddResource(String param0)
           
static boolean allowCopy(String param0, String param1)
           
static boolean allowGetCollection(String param0)
           
static boolean allowGetProperties(String param0)
           
static boolean allowGetResource(String param0)
           
static boolean allowRemoveCollection(String param0)
           
static boolean allowRemoveProperty(String param0)
           
static boolean allowRemoveResource(String param0)
           
static boolean allowRename(String param0, String param1)
           
static boolean allowUpdateCollection(String param0)
           
static boolean allowUpdateResource(String param0)
           
static String archive(String param0, Document param1, Stack param2, String param3, List param4)
           
static String archiveResources(List param0, Document param1, Stack param2, String param3)
           
static void cancelCollection(ContentCollectionEdit param0)
           
static void cancelResource(ContentResourceEdit param0)
           
static void checkCollection(String param0)
           
static void checkResource(String param0)
           
static void commitCollection(ContentCollectionEdit param0)
           
static void commitResource(ContentResourceEdit param0)
           
static void commitResource(ContentResourceEdit param0, int param1)
           
static boolean containsLockedNode(String id)
           
static String copy(String param0, String param1)
           
static String copyIntoFolder(String param0, String param1)
           
static void createDropboxCollection()
           
static void createDropboxCollection(String param0)
           
static ContentCollectionEdit editCollection(String param0)
           
static ContentResourceEdit editResource(String param0)
           
static void eliminateDuplicates(Collection param)
           
static List findResources(String type, String primaryMimeType, String subMimeType)
           
static List getAllResources(String param0)
           
static ContentCollection getCollection(String param0)
           
static Map getCollectionMap()
           
static String getContainingCollectionId(String param0)
           
static int getDepth(String param0, String param1)
           
static String getDropboxCollection()
           
static String getDropboxCollection(String param0)
           
static String getDropboxDisplayName()
           
static String getDropboxDisplayName(String param0)
           
static ContentHostingService getInstance()
          Access the component instance: special cover only method.
static String getLabel()
           
static Collection getLocks(String id)
           
static ResourceProperties getProperties(String param0)
           
static String getReference(String param0)
           
static ContentResource getResource(String param0)
           
static String getSiteCollection(String param0)
           
static String getUrl(String param0)
           
static String getUrl(String param0, String param1)
           
static String getUuid(String id)
           
static void importResources(String param0, String param1, List param2)
           
static boolean isAttachmentResource(String param0)
           
static boolean isDropboxMaintainer()
           
static boolean isDropboxMaintainer(String param0)
           
static boolean isInheritingPubView(String param0)
           
static boolean isLocked(String id)
           
static boolean isPubView(String param0)
           
static boolean isRootCollection(String param0)
           
static void lockObject(String id, String lockId, String subject, boolean system)
           
static String merge(String param0, Element param1, String param2, String param3, Map param4, HashMap param5, Set param6)
           
static void moveIntoFolder(String param0, String param1)
           
static ResourcePropertiesEdit newResourceProperties()
           
static void removeAllLocks(String id)
           
static void removeCollection(ContentCollectionEdit param0)
           
static void removeCollection(String param0)
           
static void removeLock(String id, String lockId)
           
static ResourceProperties removeProperty(String param0, String param1)
           
static void removeResource(ContentResourceEdit param0)
           
static void removeResource(String param0)
           
static void rename(String param0, String param1)
           
static String resolveUuid(String uuid)
           
static void setPubView(String param0, boolean param1)
           
static void setUuid(String id, String uuid)
           
static ContentResource updateResource(String param0, String param1, byte[] param2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVICE_NAME

public static String SERVICE_NAME

REFERENCE_ROOT

public static String REFERENCE_ROOT

EVENT_RESOURCE_ADD

public static String EVENT_RESOURCE_ADD

EVENT_RESOURCE_READ

public static String EVENT_RESOURCE_READ

EVENT_RESOURCE_WRITE

public static String EVENT_RESOURCE_WRITE

EVENT_RESOURCE_REMOVE

public static String EVENT_RESOURCE_REMOVE

EVENT_DROPBOX_OWN

public static String EVENT_DROPBOX_OWN

EVENT_DROPBOX_MAINTAIN

public static String EVENT_DROPBOX_MAINTAIN

PROP_ALTERNATE_REFERENCE

public static String PROP_ALTERNATE_REFERENCE
Constructor Detail

ContentHostingService

public ContentHostingService()
Method Detail

getInstance

public static ContentHostingService getInstance()
Access the component instance: special cover only method.

Returns:
the component instance.

getUrl

public static String getUrl(String param0)

getUrl

public static String getUrl(String param0,
                            String param1)

setUuid

public static void setUuid(String id,
                           String uuid)
                    throws IdInvalidException
Parameters:
id - id of the resource to set the UUID for
uuid - the new UUID of the resource
Throws:
IdInvalidException - if the given resource already has a UUID set

getReference

public static String getReference(String param0)

getCollection

public static ContentCollection getCollection(String param0)
                                       throws IdUnusedException,
                                              TypeException,
                                              PermissionException
Throws:
IdUnusedException
TypeException
PermissionException

allowAddCollection

public static boolean allowAddCollection(String param0)

addCollection

public static ContentCollection addCollection(String param0,
                                              ResourceProperties param1)
                                       throws IdUsedException,
                                              IdInvalidException,
                                              PermissionException,
                                              InconsistentException
Throws:
IdUsedException
IdInvalidException
PermissionException
InconsistentException

addCollection

public static ContentCollectionEdit addCollection(String param0)
                                           throws IdUsedException,
                                                  IdInvalidException,
                                                  PermissionException,
                                                  InconsistentException
Throws:
IdUsedException
IdInvalidException
PermissionException
InconsistentException

allowGetCollection

public static boolean allowGetCollection(String param0)

checkCollection

public static void checkCollection(String param0)
                            throws IdUnusedException,
                                   TypeException,
                                   PermissionException
Throws:
IdUnusedException
TypeException
PermissionException

getAllResources

public static List getAllResources(String param0)

allowUpdateCollection

public static boolean allowUpdateCollection(String param0)

editCollection

public static ContentCollectionEdit editCollection(String param0)
                                            throws IdUnusedException,
                                                   TypeException,
                                                   PermissionException,
                                                   InUseException
Throws:
IdUnusedException
TypeException
PermissionException
InUseException

allowRemoveCollection

public static boolean allowRemoveCollection(String param0)

removeCollection

public static void removeCollection(ContentCollectionEdit param0)
                             throws TypeException,
                                    PermissionException,
                                    InconsistentException,
                                    ServerOverloadException
Throws:
TypeException
PermissionException
InconsistentException
ServerOverloadException

removeCollection

public static void removeCollection(String param0)
                             throws IdUnusedException,
                                    TypeException,
                                    PermissionException,
                                    InUseException,
                                    ServerOverloadException
Throws:
IdUnusedException
TypeException
PermissionException
InUseException
ServerOverloadException

commitCollection

public static void commitCollection(ContentCollectionEdit param0)

cancelCollection

public static void cancelCollection(ContentCollectionEdit param0)

allowAddResource

public static boolean allowAddResource(String param0)

addResource

public static ContentResource addResource(String param0,
                                          String param1,
                                          byte[] param2,
                                          ResourceProperties param3,
                                          int param4)
                                   throws PermissionException,
                                          IdUsedException,
                                          IdInvalidException,
                                          InconsistentException,
                                          OverQuotaException,
                                          ServerOverloadException
Throws:
PermissionException
IdUsedException
IdInvalidException
InconsistentException
OverQuotaException
ServerOverloadException

addResource

public static ContentResource addResource(String param0,
                                          String param1,
                                          int param2,
                                          String param3,
                                          byte[] param4,
                                          ResourceProperties param5,
                                          int param6)
                                   throws PermissionException,
                                          IdInvalidException,
                                          InconsistentException,
                                          OverQuotaException,
                                          ServerOverloadException,
                                          IdUniquenessException,
                                          IdLengthException
Throws:
PermissionException
IdInvalidException
InconsistentException
OverQuotaException
ServerOverloadException
IdUniquenessException
IdLengthException

addResource

public static ContentResourceEdit addResource(String param0)
                                       throws PermissionException,
                                              IdUsedException,
                                              IdInvalidException,
                                              InconsistentException,
                                              ServerOverloadException
Throws:
PermissionException
IdUsedException
IdInvalidException
InconsistentException
ServerOverloadException

allowAddAttachmentResource

public static boolean allowAddAttachmentResource()

isAttachmentResource

public static boolean isAttachmentResource(String param0)

addAttachmentResource

public static ContentResource addAttachmentResource(String param0,
                                                    String param1,
                                                    byte[] param2,
                                                    ResourceProperties param3)
                                             throws IdInvalidException,
                                                    InconsistentException,
                                                    IdUsedException,
                                                    PermissionException,
                                                    OverQuotaException,
                                                    ServerOverloadException
Throws:
IdInvalidException
InconsistentException
IdUsedException
PermissionException
OverQuotaException
ServerOverloadException

addAttachmentResource

public static ContentResource addAttachmentResource(String param0,
                                                    String param1,
                                                    String param2,
                                                    String param3,
                                                    byte[] param4,
                                                    ResourceProperties param5)
                                             throws IdInvalidException,
                                                    InconsistentException,
                                                    IdUsedException,
                                                    PermissionException,
                                                    OverQuotaException,
                                                    ServerOverloadException
Throws:
IdInvalidException
InconsistentException
IdUsedException
PermissionException
OverQuotaException
ServerOverloadException

addAttachmentResource

public static ContentResourceEdit addAttachmentResource(String param0)
                                                 throws IdInvalidException,
                                                        InconsistentException,
                                                        IdUsedException,
                                                        PermissionException,
                                                        ServerOverloadException
Throws:
IdInvalidException
InconsistentException
IdUsedException
PermissionException
ServerOverloadException

allowUpdateResource

public static boolean allowUpdateResource(String param0)

updateResource

public static ContentResource updateResource(String param0,
                                             String param1,
                                             byte[] param2)
                                      throws PermissionException,
                                             IdUnusedException,
                                             TypeException,
                                             InUseException,
                                             OverQuotaException,
                                             ServerOverloadException
Throws:
PermissionException
IdUnusedException
TypeException
InUseException
OverQuotaException
ServerOverloadException

editResource

public static ContentResourceEdit editResource(String param0)
                                        throws PermissionException,
                                               IdUnusedException,
                                               TypeException,
                                               InUseException
Throws:
PermissionException
IdUnusedException
TypeException
InUseException

allowGetResource

public static boolean allowGetResource(String param0)

allowRemoveResource

public static boolean allowRemoveResource(String param0)

removeResource

public static void removeResource(ContentResourceEdit param0)
                           throws PermissionException
Throws:
PermissionException

removeResource

public static void removeResource(String param0)
                           throws PermissionException,
                                  IdUnusedException,
                                  TypeException,
                                  InUseException
Throws:
PermissionException
IdUnusedException
TypeException
InUseException

allowRename

public static boolean allowRename(String param0,
                                  String param1)

allowCopy

public static boolean allowCopy(String param0,
                                String param1)

commitResource

public static void commitResource(ContentResourceEdit param0)
                           throws OverQuotaException,
                                  ServerOverloadException
Throws:
OverQuotaException
ServerOverloadException

commitResource

public static void commitResource(ContentResourceEdit param0,
                                  int param1)
                           throws OverQuotaException,
                                  ServerOverloadException
Throws:
OverQuotaException
ServerOverloadException

cancelResource

public static void cancelResource(ContentResourceEdit param0)

allowGetProperties

public static boolean allowGetProperties(String param0)

allowAddProperty

public static boolean allowAddProperty(String param0)

addProperty

public static ResourceProperties addProperty(String param0,
                                             String param1,
                                             String param2)
                                      throws PermissionException,
                                             IdUnusedException,
                                             TypeException,
                                             InUseException,
                                             ServerOverloadException
Throws:
PermissionException
IdUnusedException
TypeException
InUseException
ServerOverloadException

allowRemoveProperty

public static boolean allowRemoveProperty(String param0)

removeProperty

public static ResourceProperties removeProperty(String param0,
                                                String param1)
                                         throws PermissionException,
                                                IdUnusedException,
                                                TypeException,
                                                InUseException,
                                                ServerOverloadException
Throws:
PermissionException
IdUnusedException
TypeException
InUseException
ServerOverloadException

getContainingCollectionId

public static String getContainingCollectionId(String param0)

isRootCollection

public static boolean isRootCollection(String param0)

newResourceProperties

public static ResourcePropertiesEdit newResourceProperties()

getSiteCollection

public static String getSiteCollection(String param0)

archiveResources

public static String archiveResources(List param0,
                                      Document param1,
                                      Stack param2,
                                      String param3)

getResource

public static ContentResource getResource(String param0)
                                   throws PermissionException,
                                          IdUnusedException,
                                          TypeException
Throws:
PermissionException
IdUnusedException
TypeException

getProperties

public static ResourceProperties getProperties(String param0)
                                        throws PermissionException,
                                               IdUnusedException
Throws:
PermissionException
IdUnusedException

copy

public static String copy(String param0,
                          String param1)
                   throws PermissionException,
                          IdUnusedException,
                          TypeException,
                          InUseException,
                          OverQuotaException,
                          IdUsedException,
                          ServerOverloadException
Throws:
PermissionException
IdUnusedException
TypeException
InUseException
OverQuotaException
IdUsedException
ServerOverloadException

copyIntoFolder

public static String copyIntoFolder(String param0,
                                    String param1)
                             throws PermissionException,
                                    IdUnusedException,
                                    IdLengthException,
                                    IdUniquenessException,
                                    TypeException,
                                    InUseException,
                                    OverQuotaException,
                                    IdUsedException,
                                    ServerOverloadException,
                                    InconsistentException
Throws:
PermissionException
IdUnusedException
IdLengthException
IdUniquenessException
TypeException
InUseException
OverQuotaException
IdUsedException
ServerOverloadException
InconsistentException

moveIntoFolder

public static void moveIntoFolder(String param0,
                                  String param1)
                           throws PermissionException,
                                  IdUnusedException,
                                  TypeException,
                                  InUseException,
                                  OverQuotaException,
                                  IdUsedException,
                                  InconsistentException,
                                  ServerOverloadException
Throws:
PermissionException
IdUnusedException
TypeException
InUseException
OverQuotaException
IdUsedException
InconsistentException
ServerOverloadException

rename

public static void rename(String param0,
                          String param1)
                   throws PermissionException,
                          IdUnusedException,
                          TypeException,
                          InUseException,
                          OverQuotaException,
                          InconsistentException,
                          IdUsedException,
                          ServerOverloadException
Throws:
PermissionException
IdUnusedException
TypeException
InUseException
OverQuotaException
InconsistentException
IdUsedException
ServerOverloadException

checkResource

public static void checkResource(String param0)
                          throws PermissionException,
                                 IdUnusedException,
                                 TypeException
Throws:
PermissionException
IdUnusedException
TypeException

getDepth

public static int getDepth(String param0,
                           String param1)

merge

public static String merge(String param0,
                           Element param1,
                           String param2,
                           String param3,
                           Map param4,
                           HashMap param5,
                           Set param6)

importResources

public static void importResources(String param0,
                                   String param1,
                                   List param2)

getLabel

public static String getLabel()

archive

public static String archive(String param0,
                             Document param1,
                             Stack param2,
                             String param3,
                             List param4)

isPubView

public static boolean isPubView(String param0)

isInheritingPubView

public static boolean isInheritingPubView(String param0)

setPubView

public static void setPubView(String param0,
                              boolean param1)

getUuid

public static String getUuid(String id)

resolveUuid

public static String resolveUuid(String uuid)

getLocks

public static Collection getLocks(String id)

lockObject

public static void lockObject(String id,
                              String lockId,
                              String subject,
                              boolean system)

removeLock

public static void removeLock(String id,
                              String lockId)

isLocked

public static boolean isLocked(String id)

containsLockedNode

public static boolean containsLockedNode(String id)

removeAllLocks

public static void removeAllLocks(String id)

findResources

public static List findResources(String type,
                                 String primaryMimeType,
                                 String subMimeType)

getCollectionMap

public static Map getCollectionMap()

eliminateDuplicates

public static void eliminateDuplicates(Collection param)

createDropboxCollection

public static void createDropboxCollection()

createDropboxCollection

public static void createDropboxCollection(String param0)

getDropboxCollection

public static String getDropboxCollection()

getDropboxCollection

public static String getDropboxCollection(String param0)

isDropboxMaintainer

public static boolean isDropboxMaintainer()

isDropboxMaintainer

public static boolean isDropboxMaintainer(String param0)

getDropboxDisplayName

public static String getDropboxDisplayName()

getDropboxDisplayName

public static String getDropboxDisplayName(String param0)