File tree Expand file tree Collapse file tree 8 files changed +20
-11
lines changed
api/src/main/java/org/apache/cloudstack
server/src/main/java/com/cloud Expand file tree Collapse file tree 8 files changed +20
-11
lines changed Original file line number Diff line number Diff line change 112112import org .apache .cloudstack .api .response .SecondaryStorageHeuristicsResponse ;
113113import org .apache .cloudstack .api .response .SecurityGroupResponse ;
114114import org .apache .cloudstack .api .response .ServiceOfferingResponse ;
115+ import org .apache .cloudstack .api .response .ServiceOfferingCategoryResponse ;
115116import org .apache .cloudstack .api .response .ServiceResponse ;
116117import org .apache .cloudstack .api .response .SharedFSResponse ;
117118import org .apache .cloudstack .api .response .Site2SiteCustomerGatewayResponse ;
220221import com .cloud .offering .DiskOffering ;
221222import com .cloud .offering .NetworkOffering ;
222223import com .cloud .offering .ServiceOffering ;
224+ import com .cloud .offering .ServiceOfferingCategory ;
223225import com .cloud .org .Cluster ;
224226import com .cloud .projects .Project ;
225227import com .cloud .projects .ProjectAccount ;
@@ -267,7 +269,7 @@ public interface ResponseGenerator {
267269
268270 ServiceOfferingResponse createServiceOfferingResponse (ServiceOffering offering );
269271
270- org . apache . cloudstack . api . response . ServiceOfferingCategoryResponse createServiceOfferingCategoryResponse (com . cloud . offering . ServiceOfferingCategory category );
272+ ServiceOfferingCategoryResponse createServiceOfferingCategoryResponse (ServiceOfferingCategory category );
271273
272274 ConfigurationResponse createConfigurationResponse (Configuration cfg );
273275
Original file line number Diff line number Diff line change 3232import org .apache .cloudstack .api .response .DiskOfferingResponse ;
3333import org .apache .cloudstack .api .response .DomainResponse ;
3434import org .apache .cloudstack .api .response .ServiceOfferingResponse ;
35+ import org .apache .cloudstack .api .response .ServiceOfferingCategoryResponse ;
3536import org .apache .cloudstack .api .response .VgpuProfileResponse ;
3637import org .apache .cloudstack .api .response .VsphereStoragePoliciesResponse ;
3738import org .apache .cloudstack .api .response .ZoneResponse ;
@@ -291,7 +292,7 @@ public class CreateServiceOfferingCmd extends BaseCmd {
291292
292293 @ Parameter (name = ApiConstants .SERVICE_OFFERING_CATEGORY_ID ,
293294 type = CommandType .UUID ,
294- entityType = org . apache . cloudstack . api . response . ServiceOfferingCategoryResponse .class ,
295+ entityType = ServiceOfferingCategoryResponse .class ,
295296 required = false ,
296297 description = "the ID of the service offering category to associate with this offering" ,
297298 since = "4.23" )
Original file line number Diff line number Diff line change 2929import org .apache .cloudstack .api .Parameter ;
3030import org .apache .cloudstack .api .ServerApiException ;
3131import org .apache .cloudstack .api .response .ServiceOfferingResponse ;
32+ import org .apache .cloudstack .api .response .ServiceOfferingCategoryResponse ;
3233import org .apache .commons .lang3 .EnumUtils ;
3334import org .apache .commons .lang3 .StringUtils ;
3435
@@ -111,7 +112,7 @@ public class UpdateServiceOfferingCmd extends BaseCmd {
111112
112113 @ Parameter (name = ApiConstants .SERVICE_OFFERING_CATEGORY_ID ,
113114 type = CommandType .UUID ,
114- entityType = org . apache . cloudstack . api . response . ServiceOfferingCategoryResponse .class ,
115+ entityType = ServiceOfferingCategoryResponse .class ,
115116 required = false ,
116117 description = "the ID of the service offering category to associate" ,
117118 since = "4.23" )
Original file line number Diff line number Diff line change 8888import org .apache .cloudstack .api .response .SecondaryStorageHeuristicsResponse ;
8989import org .apache .cloudstack .api .response .SecurityGroupResponse ;
9090import org .apache .cloudstack .api .response .ServiceOfferingResponse ;
91+ import org .apache .cloudstack .api .response .ServiceOfferingCategoryResponse ;
9192import org .apache .cloudstack .api .response .SnapshotResponse ;
9293import org .apache .cloudstack .api .response .StorageAccessGroupResponse ;
9394import org .apache .cloudstack .api .response .StoragePoolResponse ;
@@ -186,7 +187,7 @@ public interface QueryService {
186187
187188 ListResponse <ServiceOfferingResponse > searchForServiceOfferings (ListServiceOfferingsCmd cmd );
188189
189- ListResponse <org . apache . cloudstack . api . response . ServiceOfferingCategoryResponse > listServiceOfferingCategories (ListServiceOfferingCategoriesCmd cmd );
190+ ListResponse <ServiceOfferingCategoryResponse > listServiceOfferingCategories (ListServiceOfferingCategoriesCmd cmd );
190191
191192 ListResponse <ZoneResponse > listDataCenters (ListZonesCmd cmd );
192193
Original file line number Diff line number Diff line change 166166import org .apache .cloudstack .api .response .SecurityGroupResponse ;
167167import org .apache .cloudstack .api .response .SecurityGroupRuleResponse ;
168168import org .apache .cloudstack .api .response .ServiceOfferingResponse ;
169+ import org .apache .cloudstack .api .response .ServiceOfferingCategoryResponse ;
169170import org .apache .cloudstack .api .response .ServiceResponse ;
170171import org .apache .cloudstack .api .response .SharedFSResponse ;
171172import org .apache .cloudstack .api .response .Site2SiteCustomerGatewayResponse ;
373374import com .cloud .offering .NetworkOffering ;
374375import com .cloud .offering .NetworkOffering .Detail ;
375376import com .cloud .offering .ServiceOffering ;
377+ import com .cloud .offering .ServiceOfferingCategory ;
376378import com .cloud .offerings .NetworkOfferingVO ;
377379import com .cloud .offerings .dao .NetworkOfferingDao ;
378380import com .cloud .org .Cluster ;
@@ -646,8 +648,8 @@ public ServiceOfferingResponse createServiceOfferingResponse(ServiceOffering off
646648 }
647649
648650 @ Override
649- public org . apache . cloudstack . api . response . ServiceOfferingCategoryResponse createServiceOfferingCategoryResponse (com . cloud . offering . ServiceOfferingCategory category ) {
650- org . apache . cloudstack . api . response . ServiceOfferingCategoryResponse response = new org . apache . cloudstack . api . response . ServiceOfferingCategoryResponse ();
651+ public ServiceOfferingCategoryResponse createServiceOfferingCategoryResponse (ServiceOfferingCategory category ) {
652+ ServiceOfferingCategoryResponse response = new ServiceOfferingCategoryResponse ();
651653 response .setId (category .getUuid ());
652654 response .setName (category .getName ());
653655 response .setSortKey (category .getSortKey ());
Original file line number Diff line number Diff line change @@ -481,7 +481,7 @@ public class QueryManagerImpl extends MutualExclusiveIdsManagerBase implements Q
481481 ServiceOfferingDetailsDao _srvOfferingDetailsDao ;
482482
483483 @ Inject
484- com . cloud . service . dao . ServiceOfferingCategoryDao _serviceOfferingCategoryDao ;
484+ ServiceOfferingCategoryDao _serviceOfferingCategoryDao ;
485485
486486 @ Inject
487487 DiskOfferingDao _diskOfferingDao ;
Original file line number Diff line number Diff line change 4444import com .cloud .offering .ServiceOffering ;
4545import com .cloud .server .ResourceTag .ResourceObjectType ;
4646import com .cloud .storage .DiskOfferingVO ;
47+ import com .cloud .service .dao .ServiceOfferingCategoryDao ;
48+ import com .cloud .service .ServiceOfferingCategoryVO ;
4749import com .cloud .user .AccountManager ;
4850import com .cloud .utils .db .GenericDaoBase ;
4951import com .cloud .utils .db .Filter ;
@@ -65,7 +67,7 @@ public class ServiceOfferingJoinDaoImpl extends GenericDaoBase<ServiceOfferingJo
6567 @ Inject
6668 private AccountManager accountManager ;
6769 @ Inject
68- private com . cloud . service . dao . ServiceOfferingCategoryDao _serviceOfferingCategoryDao ;
70+ private ServiceOfferingCategoryDao _serviceOfferingCategoryDao ;
6971
7072 private SearchBuilder <ServiceOfferingJoinVO > sofIdSearch ;
7173
@@ -152,7 +154,7 @@ public ServiceOfferingResponse newServiceOfferingResponse(ServiceOfferingJoinVO
152154
153155 // Set category information if available
154156 if (offering .getCategoryId () != null ) {
155- com . cloud . service . ServiceOfferingCategoryVO category = _serviceOfferingCategoryDao .findById (offering .getCategoryId ());
157+ ServiceOfferingCategoryVO category = _serviceOfferingCategoryDao .findById (offering .getCategoryId ());
156158 if (category != null ) {
157159 offeringResponse .setCategoryId (category .getUuid ());
158160 offeringResponse .setCategoryName (category .getName ());
Original file line number Diff line number Diff line change @@ -8636,7 +8636,7 @@ public ServiceOfferingCategory createServiceOfferingCategory(CreateServiceOfferi
86368636 throw new InvalidParameterValueException ("Service offering category with name " + name + " already exists" );
86378637 }
86388638
8639- com . cloud . service . ServiceOfferingCategoryVO category = new ServiceOfferingCategoryVO (name );
8639+ ServiceOfferingCategoryVO category = new ServiceOfferingCategoryVO (name );
86408640 if (sortKey != null ) {
86418641 category .setSortKey (sortKey );
86428642 }
@@ -8651,7 +8651,7 @@ public ServiceOfferingCategory createServiceOfferingCategory(CreateServiceOfferi
86518651 public boolean deleteServiceOfferingCategory (DeleteServiceOfferingCategoryCmd cmd ) {
86528652 Long categoryId = cmd .getId ();
86538653
8654- com . cloud . service . ServiceOfferingCategoryVO category = _serviceOfferingCategoryDao .findById (categoryId );
8654+ ServiceOfferingCategoryVO category = _serviceOfferingCategoryDao .findById (categoryId );
86558655 if (category == null ) {
86568656 throw new InvalidParameterValueException ("Unable to find service offering category with id " + categoryId );
86578657 }
You can’t perform that action at this time.
0 commit comments