List of usage examples for java.util UUID toString
public String toString()
From source file:org.ovirt.engine.sdk.decorators.JobSteps.java
/** * Fetches JobStep object by id.// w w w. j ava 2 s .co m * * @return * {@link JobStep } * * @throws ClientProtocolException * Signals that HTTP/S protocol error has occurred. * @throws ServerException * Signals that an oVirt api error has occurred. * @throws IOException * Signals that an I/O exception of some sort has occurred. */ @Override public JobStep get(UUID id) throws ClientProtocolException, ServerException, IOException { String url = this.parent.getHref() + SLASH + getName() + SLASH + id.toString(); return getProxy().get(url, org.ovirt.engine.sdk.entities.Step.class, JobStep.class); }
From source file:net.sourceforge.msscodefactory.cfbam.v2_7.CFBamMssCF.CFBamMssCFBindSecSessionSecUserId.java
public String expandBody(MssCFGenContext genContext) { final String S_ProcName = "CFBamMssCFBindSecSessionSecUserId.expandBody() "; if (genContext == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1, "genContext"); }/*from w w w.j a v a 2 s . c o m*/ ICFLibAnyObj genDef = genContext.getGenDef(); if (genDef == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1, "genContext.getGenDef()"); } String ret; if (genDef instanceof ICFBamSecSessionObj) { UUID secUserId = ((ICFBamSecSessionObj) genDef).getRequiredSecUserId(); if (secUserId == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 0, "Value"); } ret = secUserId.toString(); } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "expandBody", "genContext.getGenDef()", genDef, "ICFBamSecSessionObj"); } return (ret); }
From source file:net.sourceforge.msscodefactory.cfcrm.v2_1.CFCrmMssCF.CFCrmMssCFBindTSecGroupMemberSecUserId.java
public String expandBody(MssCFGenContext genContext) { final String S_ProcName = "CFCrmMssCFBindTSecGroupMemberSecUserId.expandBody() "; if (genContext == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1, "genContext"); }//from w ww . ja v a 2 s . c o m ICFLibAnyObj genDef = genContext.getGenDef(); if (genDef == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1, "genContext.getGenDef()"); } String ret; if (genDef instanceof ICFCrmTSecGroupMemberObj) { UUID secUserId = ((ICFCrmTSecGroupMemberObj) genDef).getRequiredSecUserId(); if (secUserId == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 0, "Value"); } ret = secUserId.toString(); } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "expandBody", "genContext.getGenDef()", genDef, "ICFCrmTSecGroupMemberObj"); } return (ret); }
From source file:org.ovirt.engine.sdk.decorators.StorageDomainDiskProfiles.java
/** * Fetches StorageDomainDiskProfile object by id. * * @return//from ww w .j a v a 2s. c o m * {@link StorageDomainDiskProfile } * * @throws ClientProtocolException * Signals that HTTP/S protocol error has occurred. * @throws ServerException * Signals that an oVirt api error has occurred. * @throws IOException * Signals that an I/O exception of some sort has occurred. */ @Override public StorageDomainDiskProfile get(UUID id) throws ClientProtocolException, ServerException, IOException { String url = this.parent.getHref() + SLASH + getName() + SLASH + id.toString(); return getProxy().get(url, org.ovirt.engine.sdk.entities.DiskProfile.class, StorageDomainDiskProfile.class); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_4.CFAsteriskMssCF.CFAsteriskMssCFBindSecUserSecUserId.java
public String expandBody(MssCFGenContext genContext) { final String S_ProcName = "CFAsteriskMssCFBindSecUserSecUserId.expandBody() "; if (genContext == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1, "genContext"); }// ww w.ja v a 2s . c o m ICFLibAnyObj genDef = genContext.getGenDef(); if (genDef == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1, "genContext.getGenDef()"); } String ret; if (genDef instanceof ICFAsteriskSecUserObj) { UUID secUserId = ((ICFAsteriskSecUserObj) genDef).getRequiredSecUserId(); if (secUserId == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 0, "Value"); } ret = secUserId.toString(); } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "expandBody", "genContext.getGenDef()", genDef, "ICFAsteriskSecUserObj"); } return (ret); }
From source file:net.sourceforge.msscodefactory.cfcrm.v2_0.CFCrmMssCF.CFCrmMssCFBindSecGroupMemberSecUserId.java
public String expandBody(MssCFGenContext genContext) { final String S_ProcName = "CFCrmMssCFBindSecGroupMemberSecUserId.expandBody() "; if (genContext == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1, "genContext"); }//from w w w. j a v a 2s .c o m ICFLibAnyObj genDef = genContext.getGenDef(); if (genDef == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1, "genContext.getGenDef()"); } String ret; if (genDef instanceof ICFCrmSecGroupMemberObj) { UUID secUserId = ((ICFCrmSecGroupMemberObj) genDef).getRequiredSecUserId(); if (secUserId == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 0, "Value"); } ret = secUserId.toString(); } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "expandBody", "genContext.getGenDef()", genDef, "ICFCrmSecGroupMemberObj"); } return (ret); }
From source file:org.ovirt.engine.sdk.decorators.NetworkVnicProfiles.java
/** * Fetches NetworkVnicProfile object by id. * * @return//from w w w . ja v a 2 s .com * {@link NetworkVnicProfile } * * @throws ClientProtocolException * Signals that HTTP/S protocol error has occurred. * @throws ServerException * Signals that an oVirt api error has occurred. * @throws IOException * Signals that an I/O exception of some sort has occurred. */ @Override public NetworkVnicProfile get(UUID id) throws ClientProtocolException, ServerException, IOException { String url = this.parent.getHref() + SLASH + getName() + SLASH + id.toString(); return getProxy().get(url, org.ovirt.engine.sdk.entities.VnicProfile.class, NetworkVnicProfile.class); }
From source file:org.ovirt.engine.sdk.decorators.VmPools.java
/** * Fetches VmPool object by id./*from w ww . j a v a 2s . c o m*/ * * @return {@link VmPool } * * @throws ClientProtocolException * Signals that HTTP/S protocol error has occurred. * @throws ServerException * Signals that an oVirt api error has occurred. * @throws IOException * Signals that an I/O exception of some sort has occurred. */ @Override public VmPool get(UUID id) throws ClientProtocolException, ServerException, IOException { String url = SLASH + getName() + SLASH + id.toString(); return getProxy().get(url, org.ovirt.engine.sdk.entities.VmPool.class, VmPool.class); }
From source file:org.ovirt.engine.sdk.decorators.VMVirtualNumaNodes.java
/** * Fetches VMVirtualNumaNode object by id. * * @return// ww w . j a va2 s. com * {@link VMVirtualNumaNode } * * @throws ClientProtocolException * Signals that HTTP/S protocol error has occurred. * @throws ServerException * Signals that an oVirt api error has occurred. * @throws IOException * Signals that an I/O exception of some sort has occurred. */ @Override public VMVirtualNumaNode get(UUID id) throws ClientProtocolException, ServerException, IOException { String url = this.parent.getHref() + SLASH + getName() + SLASH + id.toString(); return getProxy().get(url, org.ovirt.engine.sdk.entities.VirtualNumaNode.class, VMVirtualNumaNode.class); }
From source file:com.greplin.gec.GecAppender.java
@Override protected void append(final LoggingEvent loggingEvent) { if (loggingEvent.getThrowableInformation() == null) { try {/*from ww w. j av a 2s .c o m*/ UUID uniqueId = UUID.randomUUID(); writeFormattedException(loggingEvent.getRenderedMessage(), new FileWriter(new File(outputDirectory, uniqueId.toString() + ".gec.json"))); } catch (IOException e) { e.printStackTrace(); } } else { Throwable throwable = loggingEvent.getThrowableInformation().getThrowable(); try { UUID uniqueId = UUID.randomUUID(); writeFormattedException(loggingEvent.getRenderedMessage(), throwable, new FileWriter(new File(outputDirectory, uniqueId.toString() + ".gec.json"))); } catch (IOException e) { e.printStackTrace(); } } }