public class PublishErrataHelper
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
checkPermissions(User user,
java.lang.Long cid)
Perform a check to see if the user can modify channels, throws an
PermissionException if the user does not have permission
|
static Errata |
cloneErrataFast(Errata original,
Org org)
Deprecated.
this function is deprecated by cloneErrataFaster
|
static java.lang.Long |
cloneErrataFaster(java.lang.Long eid,
Org org)
Hibernate was way too slow if cloning lots of errata.
|
static void |
setUniqueAdvisoryCloneName(Errata original,
Errata clone)
Generates a unique errata clone advisory and advisoryName and sets them
to the errata clone
|
public static void checkPermissions(User user, java.lang.Long cid)
user - the user to checkcid - TODOpublic static java.lang.Long cloneErrataFaster(java.lang.Long eid,
Org org)
eid - Id of the original erratum to cloneorg - Org to clone into@Deprecated public static Errata cloneErrataFast(Errata original, Org org)
original - the original errata to cloneorg - the org to clone it for