/*
 * oxCore is available under the MIT License (2008). See http://opensource.org/licenses/MIT for full text.
 *
 * Copyright (c) 2014, Gluu
 */package org.xdi.model.custom.script.type.client;

import java.util.Map;

import org.xdi.model.SimpleCustomProperty;

/**
 * Dummy implementation of interface ClientRegistrationType
 *
 * @author Yuriy Movchan Date: 11/11/2014
 */
public class DummyClientRegistrationType implements ClientRegistrationType {

    @Override
    public boolean init(Map<String, SimpleCustomProperty> configurationAttributes) {
        return true;
    }

    @Override
    public boolean destroy(Map<String, SimpleCustomProperty> configurationAttributes) {
        return true;
    }

    @Override
    public int getApiVersion() {
        return 1;
    }

    @Override
    public boolean updateClient(Object registerRequest, Object client, Map<String, SimpleCustomProperty> configurationAttributes) {
        return false;
    }

}

@@ -445,20 +445,17 @@
 Type %7B%0A%0A
-    
+%09
 @Overrid
@@ -448,36 +448,33 @@
 e %7B%0A%0A%09@Override%0A
-    
+%09
 public boolean i
@@ -534,32 +534,26 @@
 tributes) %7B%0A
-        
+%09%09
 return true;
@@ -549,35 +549,29 @@
 eturn true;%0A
-    %7D%0A%0A    
+%09%7D%0A%0A%09
 @Override%0A  
@@ -560,36 +560,33 @@
 %0A%09%7D%0A%0A%09@Override%0A
-    
+%09
 public boolean d
@@ -649,32 +649,26 @@
 tributes) %7B%0A
-        
+%09%09
 return true;
@@ -668,27 +668,21 @@
 n true;%0A
-    %7D%0A%0A    
+%09%7D%0A%0A%09
 @Overrid
@@ -679,28 +679,25 @@
 %0A%09@Override%0A
-    
+%09
 public int g
@@ -717,37 +717,185 @@
 ) %7B%0A
-        return 1;%0A    %7D%0A%0A    
+%09%09return 1;%0A%09%7D%0A%0A%09@Override%0A%09public boolean createClient(Object registerRequest, Object client, Map%3CString, SimpleCustomProperty%3E configurationAttributes) %7B%0A%09%09return false;%0A%09%7D%0A%0A%09
 @Ove
@@ -900,20 +900,17 @@
 verride%0A
-    
+%09
 public b
@@ -1033,16 +1033,10 @@
 ) %7B%0A
-        
+%09%09
 retu
@@ -1049,12 +1049,9 @@
 se;%0A
-    
+%09
 %7D%0A%0A%7D

Update default client registration implementation