List of usage examples for java.util UUID toString
public String toString()
From source file:org.ovirt.engine.sdk.decorators.DataCenterPermissions.java
/** * Fetches DataCenterPermission object by id. * * @return//from ww w. ja va 2 s.c o m * {@link DataCenterPermission } * * @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 DataCenterPermission 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.Permission.class, DataCenterPermission.class); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_4.CFAsteriskMssCF.CFAsteriskMssCFBindSecDeviceSecUserId.java
public String expandBody(MssCFGenContext genContext) { final String S_ProcName = "CFAsteriskMssCFBindSecDeviceSecUserId.expandBody() "; if (genContext == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1, "genContext"); }/*ww w .j a v a2s . c om*/ ICFLibAnyObj genDef = genContext.getGenDef(); if (genDef == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1, "genContext.getGenDef()"); } String ret; if (genDef instanceof ICFAsteriskSecDeviceObj) { UUID secUserId = ((ICFAsteriskSecDeviceObj) 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, "ICFAsteriskSecDeviceObj"); } return (ret); }
From source file:net.sourceforge.msscodefactory.cfbam.v2_7.CFBamMssCF.CFBamMssCFBindSecGroupMemberSecUserId.java
public String expandBody(MssCFGenContext genContext) { final String S_ProcName = "CFBamMssCFBindSecGroupMemberSecUserId.expandBody() "; if (genContext == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1, "genContext"); }//from w w w.j av a 2 s . c om ICFLibAnyObj genDef = genContext.getGenDef(); if (genDef == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1, "genContext.getGenDef()"); } String ret; if (genDef instanceof ICFBamSecGroupMemberObj) { UUID secUserId = ((ICFBamSecGroupMemberObj) 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, "ICFBamSecGroupMemberObj"); } return (ret); }
From source file:net.sourceforge.msscodefactory.cfcrm.v2_1.CFCrmMssCF.CFCrmMssCFBindSecSessionSecSessionId.java
public String expandBody(MssCFGenContext genContext) { final String S_ProcName = "CFCrmMssCFBindSecSessionSecSessionId.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 ICFCrmSecSessionObj) { UUID secSessionId = ((ICFCrmSecSessionObj) genDef).getRequiredSecSessionId(); if (secSessionId == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 0, "Value"); } ret = secSessionId.toString(); } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "expandBody", "genContext.getGenDef()", genDef, "ICFCrmSecSessionObj"); } return (ret); }
From source file:net.sourceforge.msscodefactory.cffreeswitch.v2_4.CFFreeSwitchMssCF.CFFreeSwitchMssCFBindSecUserSecUserId.java
public String expandBody(MssCFGenContext genContext) { final String S_ProcName = "CFFreeSwitchMssCFBindSecUserSecUserId.expandBody() "; if (genContext == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1, "genContext"); }//from ww w. j a v a2 s. c om ICFLibAnyObj genDef = genContext.getGenDef(); if (genDef == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1, "genContext.getGenDef()"); } String ret; if (genDef instanceof ICFFreeSwitchSecUserObj) { UUID secUserId = ((ICFFreeSwitchSecUserObj) 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, "ICFFreeSwitchSecUserObj"); } return (ret); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_4.CFAsteriskMssCF.CFAsteriskMssCFBindSecSessionSecUserId.java
public String expandBody(MssCFGenContext genContext) { final String S_ProcName = "CFAsteriskMssCFBindSecSessionSecUserId.expandBody() "; if (genContext == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1, "genContext"); }//from w ww.j a v a2 s.c om ICFLibAnyObj genDef = genContext.getGenDef(); if (genDef == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1, "genContext.getGenDef()"); } String ret; if (genDef instanceof ICFAsteriskSecSessionObj) { UUID secUserId = ((ICFAsteriskSecSessionObj) 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, "ICFAsteriskSecSessionObj"); } return (ret); }
From source file:net.sourceforge.msscodefactory.cfbam.v2_7.CFBamMssCF.CFBamMssCFBindTSecGroupMemberSecUserId.java
public String expandBody(MssCFGenContext genContext) { final String S_ProcName = "CFBamMssCFBindTSecGroupMemberSecUserId.expandBody() "; if (genContext == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1, "genContext"); }// ww 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 ICFBamTSecGroupMemberObj) { UUID secUserId = ((ICFBamTSecGroupMemberObj) 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, "ICFBamTSecGroupMemberObj"); } return (ret); }
From source file:org.ovirt.engine.sdk.decorators.Permissions.java
/** * Fetches Permission object by id.//from w ww . j a va 2s . c o m * * @return {@link Permission } * * @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 Permission get(UUID id) throws ClientProtocolException, ServerException, IOException { String url = SLASH + getName() + SLASH + id.toString(); return getProxy().get(url, org.ovirt.engine.sdk.entities.Permission.class, Permission.class); }
From source file:net.sourceforge.msscodefactory.cffreeswitch.v2_4.CFFreeSwitchMssCF.CFFreeSwitchMssCFBindSecDeviceSecUserId.java
public String expandBody(MssCFGenContext genContext) { final String S_ProcName = "CFFreeSwitchMssCFBindSecDeviceSecUserId.expandBody() "; if (genContext == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1, "genContext"); }//from w ww . j a va 2 s . c om ICFLibAnyObj genDef = genContext.getGenDef(); if (genDef == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1, "genContext.getGenDef()"); } String ret; if (genDef instanceof ICFFreeSwitchSecDeviceObj) { UUID secUserId = ((ICFFreeSwitchSecDeviceObj) 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, "ICFFreeSwitchSecDeviceObj"); } return (ret); }