Skip to content

Commit d6ec770

Browse files
committed
compilation error fix due to change in csp sdk API for check cloudname
1 parent 6e2790b commit d6ec770

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/main/java/net/respectnetwork/csp/application/controller/PersonalCloudController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ public ModelAndView showCloudPage(HttpServletRequest request, Model model)
221221
CloudNumber cloudNumber;
222222
try
223223
{
224-
cloudNumber = myCSP.checkCloudNameAvailableInRN(cloudName);
224+
cloudNumber = myCSP.checkCloudNameInRN(cloudName);
225225
String secretToken = null;
226226
if (regSession != null)
227227
{

src/main/java/net/respectnetwork/csp/application/manager/PasswordManager.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public void changePassword(String clName, String currentPassword,
6262
CloudName cloudName = CloudName.create(clName);
6363
CloudNumber cloudNumber;
6464
try {
65-
cloudNumber = cspRegistrar.checkCloudNameAvailableInRN(cloudName);
65+
cloudNumber = cspRegistrar.checkCloudNameInRN(cloudName);
6666
if (cloudNumber != null) {
6767
cspRegistrar.authenticateInCloud(cloudNumber, currentPassword);
6868

@@ -128,7 +128,7 @@ public void verifyRecoverPasswordDetails(String cloudName,
128128
}
129129
CloudName clName = CloudName.create(cloudName);
130130
try {
131-
cloudNumber = cspRegistrar.checkCloudNameAvailableInRN(clName);
131+
cloudNumber = cspRegistrar.checkCloudNameInRN(clName);
132132
logger.debug("Cloud name {} is associated with cloud number {}",
133133
cloudName, cloudNumber);
134134
if (cloudNumber == null) {
@@ -202,7 +202,7 @@ public void resetPassword(String clName, String newPassword)
202202
// update the new password for CSP user
203203
validatePasswordFormat(newPassword);
204204
try {
205-
cloudNumber = cspRegistrar.checkCloudNameAvailableInRN(cloudName);
205+
cloudNumber = cspRegistrar.checkCloudNameInRN(cloudName);
206206
if (cloudNumber == null) {
207207
logger.error("Cloud name does not exist : " + cloudName);
208208
throw new PasswordValidationException(

src/main/java/net/respectnetwork/csp/application/manager/RegisterUserThread.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public void run()
104104
// step 3: Check if the Cloud Name is available
105105

106106
CloudNumber existingCloudNumber = cspRegistrar
107-
.checkCloudNameAvailableInRN(cloudName);
107+
.checkCloudNameInRN(cloudName);
108108

109109
if (existingCloudNumber != null)
110110
{

src/main/java/net/respectnetwork/csp/application/manager/RegistrationManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ public boolean isCloudNameAvailable(String cloudName)
324324
boolean availability = false;
325325

326326
try {
327-
if (cspRegistrar.checkCloudNameAvailableInRN(CloudName.create(cloudName)) == null) {
327+
if (cspRegistrar.checkCloudNameInRN(CloudName.create(cloudName)) == null) {
328328
availability = true;
329329
}
330330
} catch (Exception e) {

0 commit comments

Comments
 (0)