Skip to content

Commit c41bb07

Browse files
author
Daan Hoogland
committed
readd default constructors
1 parent 3b806be commit c41bb07

File tree

6 files changed

+25
-1
lines changed

6 files changed

+25
-1
lines changed

plugins/user-authenticators/ldap/src/main/java/org/apache/cloudstack/api/command/LdapAddConfigurationCmd.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ public class LdapAddConfigurationCmd extends BaseCmd {
4949
@Parameter(name = ApiConstants.DOMAIN_ID, type = CommandType.UUID, entityType = DomainResponse.class, description = "linked domain")
5050
private Long domainId;
5151

52+
public LdapAddConfigurationCmd() {
53+
super();
54+
}
55+
5256
public LdapAddConfigurationCmd(final LdapManager ldapManager) {
5357
super();
5458
_ldapManager = ldapManager;

plugins/user-authenticators/ldap/src/main/java/org/apache/cloudstack/api/command/LdapCreateAccountCmd.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ public class LdapCreateAccountCmd extends BaseCmd {
8181
@Parameter(name = ApiConstants.USER_ID, type = CommandType.STRING, description = "User UUID, required for adding account from external provisioning system")
8282
private String userUUID;
8383

84+
public LdapCreateAccountCmd() {
85+
super();
86+
}
87+
8488
public LdapCreateAccountCmd(final LdapManager ldapManager, final AccountService accountService) {
8589
super();
8690
_ldapManager = ldapManager;

plugins/user-authenticators/ldap/src/main/java/org/apache/cloudstack/api/command/LdapDeleteConfigurationCmd.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ public class LdapDeleteConfigurationCmd extends BaseCmd {
5050
@Parameter(name = ApiConstants.DOMAIN_ID, type = CommandType.UUID, entityType = DomainResponse.class, description = "linked domain")
5151
private Long domainId;
5252

53+
public LdapDeleteConfigurationCmd() {
54+
super();
55+
}
56+
5357
public LdapDeleteConfigurationCmd(final LdapManager ldapManager) {
5458
super();
5559
_ldapManager = ldapManager;

plugins/user-authenticators/ldap/src/main/java/org/apache/cloudstack/api/command/LdapImportUsersCmd.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ public class LdapImportUsersCmd extends BaseListCmd {
9191
@Inject
9292
private LdapManager _ldapManager;
9393

94+
public LdapImportUsersCmd() {
95+
super();
96+
}
97+
9498
public LdapImportUsersCmd(final LdapManager ldapManager, final DomainService domainService, final AccountService accountService) {
9599
super();
96100
_ldapManager = ldapManager;
@@ -239,7 +243,7 @@ private String generatePassword() throws ServerApiException {
239243
final SecureRandom randomGen = SecureRandom.getInstance("SHA1PRNG");
240244
final byte[] bytes = new byte[20];
241245
randomGen.nextBytes(bytes);
242-
return new String(Base64.encode(bytes), com.cloud.utils.StringUtils.getPreferredCharset());
246+
return new String(Base64.encode(bytes), StringUtils.getPreferredCharset());
243247
} catch (NoSuchAlgorithmException e) {
244248
throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, "Failed to generate random password");
245249
}

plugins/user-authenticators/ldap/src/main/java/org/apache/cloudstack/api/command/LdapListUsersCmd.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,10 @@ public class LdapListUsersCmd extends BaseListCmd {
103103
@Parameter(name = ApiConstants.DOMAIN_ID, type = CommandType.UUID, entityType = DomainResponse.class, description = "linked domain")
104104
private Long domainId;
105105

106+
public LdapListUsersCmd() {
107+
super();
108+
}
109+
106110
public LdapListUsersCmd(final LdapManager ldapManager, final QueryService queryService) {
107111
super();
108112
_ldapManager = ldapManager;

plugins/user-authenticators/ldap/src/main/java/org/apache/cloudstack/api/command/LdapUserSearchCmd.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ public class LdapUserSearchCmd extends BaseListCmd {
4444
@Parameter(name = "query", type = CommandType.STRING, entityType = LdapUserResponse.class, required = true, description = "query to search using")
4545
private String query;
4646

47+
public LdapUserSearchCmd() {
48+
super();
49+
}
50+
4751
public LdapUserSearchCmd(final LdapManager ldapManager) {
4852
super();
4953
_ldapManager = ldapManager;

0 commit comments

Comments
 (0)