public final class GUIDFactory extends Object
Modifier and Type | Method and Description |
---|---|
static int |
getKeysize() |
static int |
getKeysizeBase32() |
static boolean |
isWorm(GUID uuid) |
static GUID |
newAccessionRegisterDetailGUID(int tenantId)
Create an accession register detail GUID
|
static GUID |
newAccessionRegisterSummaryGUID(int tenantId)
Create a Accession register summary GUID
|
static GUID |
newAgencyGUID(int tenantId)
Create a Agencies GUID
|
static GUID |
newContextGUID()
Create a Context GUID
|
static GUID |
newEventGUID(GUID logbookGUID)
Create an Event GUID (within Operation or Lifecycle Logbooks)
|
static GUID |
newEventGUID(int tenantId)
Create a Operation Id GUID
|
static GUID |
newGUID()
Usable for internal GUID with default tenantId (0) and objectType (0)
|
static GUID |
newIngestContractGUID(int tenantId)
Create a contract GUID
|
static GUID |
newManifestGUID(int tenantId)
Create a Manifest GUID (SEDA)
|
static GUID |
newObjectGroupGUID(GUID unitParentGUID)
Create a ObjectGroup GUID
|
static GUID |
newObjectGroupGUID(int tenantId)
Create a ObjectGroup GUID
|
static GUID |
newObjectGUID(GUID objectGroupParentGUID)
Create a Object GUID
|
static GUID |
newObjectGUID(int tenantId)
Create a Object GUID
|
static GUID |
newOperationLogbookGUID(int tenantId)
Create a Operation Logbook GUID
|
static GUID |
newProfileGUID(int tenantId)
Create a Profile GUID
|
static GUID |
newRequestIdGUID(int tenantId)
Create a Request Id GUID (X-CID)
|
static GUID |
newStorageOperationGUID(int tenantId,
boolean worm)
Create a Storage Operation GUID
|
static GUID |
newUnitGUID(int tenantId)
Create a Unit GUID
|
static GUID |
newWriteLogbookGUID(int tenantId)
Create a Write Logbook GUID
|
public static final GUID newGUID()
public static final GUID newUnitGUID(int tenantId)
tenantId
- tenant id between 0 and 2^30-1IllegalArgumentException
- if any of the argument are out of rangepublic static final GUID newObjectGroupGUID(int tenantId)
tenantId
- tenant id between 0 and 2^30-1IllegalArgumentException
- if any of the argument are out of rangepublic static final GUID newObjectGroupGUID(GUID unitParentGUID)
unitParentGUID
- GUID of parent Unitpublic static final GUID newObjectGUID(int tenantId)
tenantId
- tenant id between 0 and 2^30-1IllegalArgumentException
- if any of the argument are out of rangepublic static final GUID newObjectGUID(GUID objectGroupParentGUID)
objectGroupParentGUID
- GUID of parent ObjectGrouppublic static final GUID newOperationLogbookGUID(int tenantId)
tenantId
- tenant id between 0 and 2^30-1IllegalArgumentException
- if any of the argument are out of rangepublic static final GUID newWriteLogbookGUID(int tenantId)
tenantId
- tenant id between 0 and 2^30-1IllegalArgumentException
- if any of the argument are out of rangepublic static final GUID newStorageOperationGUID(int tenantId, boolean worm)
tenantId
- tenant id between 0 and 2^30-1worm
- IllegalArgumentException
- if any of the argument are out of rangepublic static final GUID newEventGUID(int tenantId)
tenantId
- tenant id between 0 and 2^30-1IllegalArgumentException
- if any of the argument are out of rangepublic static final GUID newEventGUID(GUID logbookGUID)
logbookGUID
- GUID of corresponding LogbookIllegalArgumentException
- if any of the argument are out of rangepublic static final GUID newRequestIdGUID(int tenantId)
tenantId
- tenant id between 0 and 2^30-1IllegalArgumentException
- if any of the argument are out of rangepublic static final GUID newManifestGUID(int tenantId)
tenantId
- tenant id between 0 and 2^30-1IllegalArgumentException
- if any of the argument are out of rangepublic static final GUID newAccessionRegisterSummaryGUID(int tenantId)
tenantId
- tenant id between 0 and 2^30-1IllegalArgumentException
- if any of the argument are out of rangepublic static final GUID newIngestContractGUID(int tenantId)
tenantId
- tenant id between 0 and 2^30-1IllegalArgumentException
- if any of the argument are out of rangepublic static final GUID newProfileGUID(int tenantId)
tenantId
- tenant id between 0 and 2^30-1IllegalArgumentException
- if any of the argument are out of rangepublic static final GUID newContextGUID()
IllegalArgumentException
- if any of the argument are out of rangepublic static final GUID newAgencyGUID(int tenantId)
IllegalArgumentException
- if any of the argument are out of rangepublic static final GUID newAccessionRegisterDetailGUID(int tenantId)
IllegalArgumentException
- if any of the argument are out of rangepublic static final boolean isWorm(GUID uuid)
uuid
- public static final int getKeysize()
public static final int getKeysizeBase32()
Copyright © 2018 Vitam. All rights reserved.