@@ -159,10 +159,8 @@ public VMTemplateVO() {
159159 uuid = UUID .randomUUID ().toString ();
160160 }
161161
162- /**
163- * Proper constructor for a new vm template.
164- */
165- public VMTemplateVO (long id , String name , ImageFormat format , boolean isPublic , boolean featured , boolean isExtractable , TemplateType type , String url ,
162+ //FIXME - Remove unwanted constructors.
163+ private VMTemplateVO (long id , String name , ImageFormat format , boolean isPublic , boolean featured , boolean isExtractable , TemplateType type , String url ,
166164 boolean requiresHvm , int bits , long accountId , String cksum , String displayText , boolean enablePassword , long guestOSId , boolean bootable ,
167165 HypervisorType hyperType , Map <String , String > details ) {
168166 this (id ,
@@ -250,8 +248,8 @@ public VMTemplateVO(Long id, String uniqueName, String name, ImageFormat format,
250248 state = State .Active ;
251249 }
252250
253- // Has an extra attribute - isExtractable
254- public VMTemplateVO (Long id , String uniqueName , String name , ImageFormat format , boolean isPublic , boolean featured , boolean isExtractable , TemplateType type ,
251+ //FIXME - Remove unwanted constructors. Made them private for now
252+ private VMTemplateVO (Long id , String uniqueName , String name , ImageFormat format , boolean isPublic , boolean featured , boolean isExtractable , TemplateType type ,
255253 String url , Date created , boolean requiresHvm , int bits , long accountId , String cksum , String displayText , boolean enablePassword , long guestOSId ,
256254 boolean bootable , HypervisorType hyperType , Map <String , String > details ) {
257255 this (id ,
@@ -278,34 +276,6 @@ public VMTemplateVO(Long id, String uniqueName, String name, ImageFormat format,
278276 state = State .Active ;
279277 }
280278
281- public VMTemplateVO (Long id , String uniqueName , String name , ImageFormat format , boolean isPublic , boolean featured , boolean isExtractable , TemplateType type ,
282- String url , Date created , boolean requiresHvm , int bits , long accountId , String cksum , String displayText , boolean enablePassword , long guestOSId ,
283- boolean bootable , HypervisorType hyperType , String templateTag , Map <String , String > details ) {
284- this (id ,
285- uniqueName ,
286- name ,
287- format ,
288- isPublic ,
289- featured ,
290- isExtractable ,
291- type ,
292- url ,
293- created ,
294- requiresHvm ,
295- bits ,
296- accountId ,
297- cksum ,
298- displayText ,
299- enablePassword ,
300- guestOSId ,
301- bootable ,
302- hyperType ,
303- details );
304- this .templateTag = templateTag ;
305- uuid = UUID .randomUUID ().toString ();
306- state = State .Active ;
307- }
308-
309279 @ Override
310280 public boolean getEnablePassword () {
311281 return enablePassword ;
0 commit comments