public static org.sakaiproject.content.api.ContentCollectionEdit addCollection( java.lang.String param0) throws org.sakaiproject.exception.IdUsedException, org.sakaiproject.exception.IdInvalidException, org.sakaiproject.exception.PermissionException, org.sakaiproject.exception.InconsistentException { org.sakaiproject.content.api.ContentHostingService service = getInstance(); if (service == null) return null; return service.addCollection(param0); }
/** * @param collectionId * @param name * @return * @throws org.sakaiproject.exception.IdLengthException * @throws org.sakaiproject.exception.IdUnusedException * @throws org.sakaiproject.exception.TypeException */ public static org.sakaiproject.content.api.ContentCollectionEdit addCollection( java.lang.String collectionId, java.lang.String name) throws org.sakaiproject.exception.IdUsedException, org.sakaiproject.exception.IdInvalidException, org.sakaiproject.exception.PermissionException, org.sakaiproject.exception.IdUnusedException, org.sakaiproject.exception.IdLengthException, org.sakaiproject.exception.TypeException { org.sakaiproject.content.api.ContentHostingService service = getInstance(); if (service == null) return null; return service.addCollection(collectionId, name); }
/** * @param param0 * @param param1 * @param param2 * @param param3 * @param param4 * @param param5 * @return * @throws org.sakaiproject.exception.IdUsedException * @throws org.sakaiproject.exception.IdInvalidException * @throws org.sakaiproject.exception.PermissionException * @throws org.sakaiproject.exception.InconsistentException * @deprecated Suggest use of {@link #addCollection(String)} followed by {@link * Entity#getProperties()}, {@link GroupAwareEdit#setGroupAccess(Collection)}, {@link * GroupAwareEdit#setAvailability(boolean, org.sakaiproject.time.api.Time, * org.sakaiproject.time.api.Time)} and {@link #commitCollection(ContentCollectionEdit)} */ public static org.sakaiproject.content.api.ContentCollection addCollection( java.lang.String param0, org.sakaiproject.entity.api.ResourceProperties param1, java.util.Collection param2, boolean param3, org.sakaiproject.time.api.Time param4, org.sakaiproject.time.api.Time param5) throws org.sakaiproject.exception.IdUsedException, org.sakaiproject.exception.IdInvalidException, org.sakaiproject.exception.PermissionException, org.sakaiproject.exception.InconsistentException { org.sakaiproject.content.api.ContentHostingService service = getInstance(); if (service == null) return null; return service.addCollection(param0, param1, param2, param3, param4, param5); }