| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 2893120 commit 68b8891
36 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -24,25 +24,49 @@ public interface ResourceTag extends ControlledEntity, Identity, InternalIdentit | |||
| 24 | 24 | ||
| 25 | 25 | // FIXME - extract enum to another interface as its used both by resourceTags and resourceMetaData code | |
| 26 | 26 | public enum ResourceObjectType { | |
| 27 | - UserVm(true, true), Template(true, true), ISO(true, false), Volume(true, true), Snapshot(true, false), Network(true, true), Nic(false, true), LoadBalancer(true, true), PortForwardingRule( | ||
| 28 | - true, true), FirewallRule(true, true), SecurityGroup(true, false), PublicIpAddress(true, true), Project(true, false), Vpc(true, true), NetworkACL(true, true), StaticRoute( | ||
| 29 | - true, false), VMSnapshot(true, false), RemoteAccessVpn(true, true), Zone(false, true), ServiceOffering(false, true), Storage(false, true), PrivateGateway(false, | ||
| 30 | - true), NetworkACLList(false, true), VpnGateway(false, true), CustomerGateway(false, true), VpnConnection(false, true), User(true, true), DiskOffering(false, true); | ||
| 27 | + UserVm(true, true), | ||
| 28 | + Template(true, true), | ||
| 29 | + ISO(true, false), | ||
| 30 | + Volume(true, true), | ||
| 31 | + Snapshot(true, false), | ||
| 32 | + Network(true, true), | ||
| 33 | + Nic(false, true), | ||
| 34 | + LoadBalancer(true, true), | ||
| 35 | + PortForwardingRule(true, true), | ||
| 36 | + FirewallRule(true, true), | ||
| 37 | + SecurityGroup(true, false), | ||
| 38 | + PublicIpAddress(true, true), | ||
| 39 | + Project(true, false), | ||
| 40 | + Vpc(true, true), | ||
| 41 | + NetworkACL(true, true), | ||
| 42 | + StaticRoute(true, false), | ||
| 43 | + VMSnapshot(true, false), | ||
| 44 | + RemoteAccessVpn(true, true), | ||
| 45 | + Zone(false, true), | ||
| 46 | + ServiceOffering(false, true), | ||
| 47 | + Storage(false, true), | ||
| 48 | + PrivateGateway(false, true), | ||
| 49 | + NetworkACLList(false, true), | ||
| 50 | + VpnGateway(false, true), | ||
| 51 | + CustomerGateway(false, true), | ||
| 52 | + VpnConnection(false, true), | ||
| 53 | + User(true, true), | ||
| 54 | + DiskOffering(false, true); | ||
| 31 | 55 | ||
| 32 | 56 | ResourceObjectType(boolean resourceTagsSupport, boolean resourceMetadataSupport) { | |
| 33 | 57 | this.resourceTagsSupport = resourceTagsSupport; | |
| 34 | - this.metadataSupport = resourceMetadataSupport; | ||
| 58 | + metadataSupport = resourceMetadataSupport; | ||
| 35 | 59 | } | |
| 36 | 60 | ||
| 37 | 61 | private final boolean resourceTagsSupport; | |
| 38 | 62 | private final boolean metadataSupport; | |
| 39 | 63 | ||
| 40 | 64 | public boolean resourceTagsSupport() { | |
| 41 | - return this.resourceTagsSupport; | ||
| 65 | + return resourceTagsSupport; | ||
| 42 | 66 | } | |
| 43 | 67 | ||
| 44 | 68 | public boolean resourceMetadataSupport() { | |
| 45 | - return this.metadataSupport; | ||
| 69 | + return metadataSupport; | ||
| 46 | 70 | } | |
| 47 | 71 | } | |
| 48 | 72 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -26,14 +26,15 @@ | |||
| 26 | 26 | ||
| 27 | 27 | import javax.inject.Inject; | |
| 28 | 28 | ||
| 29 | + import org.apache.log4j.Logger; | ||
| 30 | + | ||
| 29 | 31 | import org.apache.cloudstack.affinity.AffinityGroupService; | |
| 30 | 32 | import org.apache.cloudstack.alert.AlertService; | |
| 31 | 33 | import org.apache.cloudstack.network.element.InternalLoadBalancerElementService; | |
| 32 | 34 | import org.apache.cloudstack.network.lb.ApplicationLoadBalancerService; | |
| 33 | 35 | import org.apache.cloudstack.network.lb.InternalLoadBalancerVMService; | |
| 34 | 36 | import org.apache.cloudstack.query.QueryService; | |
| 35 | 37 | import org.apache.cloudstack.usage.UsageService; | |
| 36 | - import org.apache.log4j.Logger; | ||
| 37 | 38 | ||
| 38 | 39 | import com.cloud.configuration.ConfigurationService; | |
| 39 | 40 | import com.cloud.domain.Domain; | |
@@ -153,8 +154,6 @@ public enum HTTPMethod { | |||
| 153 | 154 | @Inject | |
| 154 | 155 | public ResourceLimitService _resourceLimitService; | |
| 155 | 156 | @Inject | |
| 156 | - public IdentityService _identityService; | ||
| 157 | - @Inject | ||
| 158 | 157 | public StorageNetworkService _storageNetworkService; | |
| 159 | 158 | @Inject | |
| 160 | 159 | public TaggedResourceService _taggedResourceService; | |
@@ -358,11 +357,11 @@ public static boolean isRootAdmin(short accountType) { | |||
| 358 | 357 | } | |
| 359 | 358 | ||
| 360 | 359 | public void setFullUrlParams(Map<String, String> map) { | |
| 361 | - this.fullUrlParams = map; | ||
| 360 | + fullUrlParams = map; | ||
| 362 | 361 | } | |
| 363 | 362 | ||
| 364 | 363 | public Map<String, String> getFullUrlParams() { | |
| 365 | - return this.fullUrlParams; | ||
| 364 | + return fullUrlParams; | ||
| 366 | 365 | } | |
| 367 | 366 | ||
| 368 | 367 | public Long finalyzeAccountId(String accountName, Long domainId, Long projectId, boolean enabledOnly) { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -223,7 +223,6 @@ | |||
| 223 | 223 | <dependency> | |
| 224 | 224 | <groupId>org.slf4j</groupId> | |
| 225 | 225 | <artifactId>slf4j-api</artifactId> | |
| 226 | - <version>1.6.1</version> | ||
| 227 | 226 | <scope>runtime</scope> | |
| 228 | 227 | </dependency> | |
| 229 | 228 | <dependency> | |
@@ -271,8 +270,6 @@ | |||
| 271 | 270 | <dependency> | |
| 272 | 271 | <groupId>org.bouncycastle</groupId> | |
| 273 | 272 | <artifactId>bcprov-jdk16</artifactId> | |
| 274 | - <!-- TODO: do we need this explicit version override? --> | ||
| 275 | - <version>1.45</version> | ||
| 276 | 273 | <scope>runtime</scope> | |
| 277 | 274 | </dependency> | |
| 278 | 275 | <dependency> | |
@@ -320,7 +317,6 @@ | |||
| 320 | 317 | <plugin> | |
| 321 | 318 | <groupId>org.apache.maven.plugins</groupId> | |
| 322 | 319 | <artifactId>maven-checkstyle-plugin</artifactId> | |
| 323 | - <version>${cs.checkstyle.version}</version> | ||
| 324 | 320 | <executions> | |
| 325 | 321 | <execution> | |
| 326 | 322 | <phase>none</phase> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -40,7 +40,6 @@ | |||
| 40 | 40 | <plugin> | |
| 41 | 41 | <groupId>org.apache.maven.plugins</groupId> | |
| 42 | 42 | <artifactId>maven-checkstyle-plugin</artifactId> | |
| 43 | - <version>${cs.checkstyle.version}</version> | ||
| 44 | 43 | <executions> | |
| 45 | 44 | <execution> | |
| 46 | 45 | <phase>none</phase> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -171,7 +171,6 @@ | |||
| 171 | 171 | <bean id="hostTagsDaoImpl" class="com.cloud.host.dao.HostTagsDaoImpl" /> | |
| 172 | 172 | <bean id="hostTransferMapDaoImpl" class="com.cloud.cluster.agentlb.dao.HostTransferMapDaoImpl" /> | |
| 173 | 173 | <bean id="iPAddressDaoImpl" class="com.cloud.network.dao.IPAddressDaoImpl" /> | |
| 174 | - <bean id="identityDaoImpl" class="com.cloud.uuididentity.dao.IdentityDaoImpl" /> | ||
| 175 | 174 | <bean id="imageStoreDaoImpl" class="org.apache.cloudstack.storage.image.db.ImageStoreDaoImpl" /> | |
| 176 | 175 | <bean id="imageStoreDetailsDaoImpl" class="org.apache.cloudstack.storage.image.db.ImageStoreDetailsDaoImpl" /> | |
| 177 | 176 | <bean id="imageStoreJoinDaoImpl" class="com.cloud.api.query.dao.ImageStoreJoinDaoImpl" /> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -119,8 +119,6 @@ | |||
| 119 | 119 | <dependency> | |
| 120 | 120 | <groupId>org.apache.httpcomponents</groupId> | |
| 121 | 121 | <artifactId>httpclient</artifactId> | |
| 122 | - <!-- TODO: Is this version override required --> | ||
| 123 | - <version>4.2.2</version> | ||
| 124 | 122 | <scope>compile</scope> | |
| 125 | 123 | </dependency> | |
| 126 | 124 | <dependency> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -27,4 +27,6 @@ public interface ConfigDepot { | |||
| 27 | 27 | ConfigKey<?> get(String paramName); | |
| 28 | 28 | ||
| 29 | 29 | Set<ConfigKey<?>> getConfigListByScope(String scope); | |
| 30 | + | ||
| 31 | + <T> void set(ConfigKey<T> key, T value); | ||
| 30 | 32 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -172,7 +172,7 @@ public List<ScopedConfigStorage> getScopedStorages() { | |||
| 172 | 172 | ||
| 173 | 173 | @Inject | |
| 174 | 174 | public void setScopedStorages(List<ScopedConfigStorage> scopedStorages) { | |
| 175 | - this._scopedStorages = scopedStorages; | ||
| 175 | + _scopedStorages = scopedStorages; | ||
| 176 | 176 | } | |
| 177 | 177 | ||
| 178 | 178 | public List<Configurable> getConfigurables() { | |
@@ -181,12 +181,16 @@ public List<Configurable> getConfigurables() { | |||
| 181 | 181 | ||
| 182 | 182 | @Inject | |
| 183 | 183 | public void setConfigurables(List<Configurable> configurables) { | |
| 184 | - this._configurables = configurables; | ||
| 184 | + _configurables = configurables; | ||
| 185 | 185 | } | |
| 186 | 186 | ||
| 187 | 187 | @Override | |
| 188 | 188 | public Set<ConfigKey<?>> getConfigListByScope(String scope) { | |
| 189 | 189 | return _scopeLevelConfigsMap.get(ConfigKey.Scope.valueOf(scope)); | |
| 190 | 190 | } | |
| 191 | 191 | ||
| 192 | + @Override | ||
| 193 | + public <T> void set(ConfigKey<T> key, T value) { | ||
| 194 | + _configDao.update(key.key(), value.toString()); | ||
| 195 | + } | ||
| 192 | 196 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -25,7 +25,7 @@ | |||
| 25 | 25 | <artifactId>cloudstack-framework</artifactId> | |
| 26 | 26 | <version>4.4.0-SNAPSHOT</version> | |
| 27 | 27 | <relativePath>../pom.xml</relativePath> | |
| 28 | - </parent> | ||
| 28 | + </parent> | ||
| 29 | 29 | <dependencies> | |
| 30 | 30 | <dependency> | |
| 31 | 31 | <groupId>org.apache.cloudstack</groupId> | |
@@ -42,6 +42,10 @@ | |||
| 42 | 42 | <artifactId>cloud-framework-ipc</artifactId> | |
| 43 | 43 | <version>${project.version}</version> | |
| 44 | 44 | </dependency> | |
| 45 | + <dependency> | ||
| 46 | + <groupId>commons-codec</groupId> | ||
| 47 | + <artifactId>commons-codec</artifactId> | ||
| 48 | + </dependency> | ||
| 45 | 49 | <dependency> | |
| 46 | 50 | <groupId>org.apache.cloudstack</groupId> | |
| 47 | 51 | <artifactId>cloud-framework-db</artifactId> | |
@@ -51,6 +55,6 @@ | |||
| 51 | 55 | <groupId>org.apache.cloudstack</groupId> | |
| 52 | 56 | <artifactId>cloud-framework-config</artifactId> | |
| 53 | 57 | <version>${project.version}</version> | |
| 54 | - </dependency> | ||
| 58 | + </dependency> | ||
| 55 | 59 | </dependencies> | |
| 56 | 60 | </project> | |
| Back | FazBrowse Home | New Git URL |
0 commit comments