diff --git a/components/org.wso2.carbon.identity.governance/src/main/java/org/wso2/carbon/identity/governance/service/notification/NotificationTemplateManager.java b/components/org.wso2.carbon.identity.governance/src/main/java/org/wso2/carbon/identity/governance/service/notification/NotificationTemplateManager.java index 31a618c1f..cff803e42 100644 --- a/components/org.wso2.carbon.identity.governance/src/main/java/org/wso2/carbon/identity/governance/service/notification/NotificationTemplateManager.java +++ b/components/org.wso2.carbon.identity.governance/src/main/java/org/wso2/carbon/identity/governance/service/notification/NotificationTemplateManager.java @@ -1,18 +1,21 @@ /* - * Copyright (c) 2019-2024, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2024, WSO2 LLC. (http://www.wso2.com). * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * WSO2 LLC. licenses this file to you under the Apache License, + * Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.wso2.carbon.identity.governance.service.notification; import org.wso2.carbon.identity.governance.exceptions.notiification.NotificationTemplateManagerException; @@ -37,6 +40,7 @@ public interface NotificationTemplateManager { default void addNotificationTemplateType(String notificationChannel, String displayName, String tenantDomain) throws NotificationTemplateManagerException { + throw new UnsupportedOperationException("Not implemented yet"); } /** @@ -52,6 +56,7 @@ default void addNotificationTemplateType(String notificationChannel, String disp String tenantDomain, String applicationUuid) throws NotificationTemplateManagerException { + throw new UnsupportedOperationException("Not implemented yet"); } /** @@ -65,7 +70,7 @@ default void addNotificationTemplateType(String notificationChannel, String disp default List getAllNotificationTemplateTypes(String notificationChannel, String tenantDomain) throws NotificationTemplateManagerException { - return null; + throw new UnsupportedOperationException("Not implemented yet"); } /** @@ -80,6 +85,7 @@ default void deleteNotificationTemplateType(String notificationChannel, String t String tenantDomain) throws NotificationTemplateManagerException { + throw new UnsupportedOperationException("Not implemented yet"); } /** @@ -94,7 +100,7 @@ default boolean isNotificationTemplateTypeExists(String notificationChannel, Str String tenantDomain) throws NotificationTemplateManagerException { - return false; + throw new UnsupportedOperationException("Not implemented yet"); } /** @@ -108,6 +114,7 @@ default boolean isNotificationTemplateTypeExists(String notificationChannel, Str default void resetNotificationTemplateType(String notificationChannel, String templateType, String tenantDomain) throws NotificationTemplateManagerException { + throw new UnsupportedOperationException("Not implemented yet"); } /** @@ -120,7 +127,7 @@ default void resetNotificationTemplateType(String notificationChannel, String te default List getAllNotificationTemplates(String notificationChannel, String tenantDomain) throws NotificationTemplateManagerException { - return null; + throw new UnsupportedOperationException("Not implemented yet"); } /** @@ -136,7 +143,7 @@ default List getNotificationTemplatesOfType(String notific String templateDisplayName, String tenantDomain) throws NotificationTemplateManagerException { - return null; + throw new UnsupportedOperationException("Not implemented yet"); } /** @@ -153,7 +160,7 @@ default List getNotificationTemplatesOfType(String notific String templateDisplayName, String tenantDomain, String applicationUuid) throws NotificationTemplateManagerException { - return null; + throw new UnsupportedOperationException("Not implemented yet"); } /** @@ -170,7 +177,7 @@ default NotificationTemplate getNotificationTemplate(String notificationChannel, String tenantDomain) throws NotificationTemplateManagerException { - return null; + throw new UnsupportedOperationException("Not implemented yet"); } /** @@ -188,7 +195,7 @@ default NotificationTemplate getNotificationTemplate(String notificationChannel, String tenantDomain, String applicationUuid) throws NotificationTemplateManagerException { - return null; + throw new UnsupportedOperationException("Not implemented yet"); } /** @@ -202,6 +209,7 @@ default NotificationTemplate getNotificationTemplate(String notificationChannel, default void addNotificationTemplate(NotificationTemplate notificationTemplate, String tenantDomain) throws NotificationTemplateManagerException { + throw new UnsupportedOperationException("Not implemented yet"); } /** @@ -215,6 +223,7 @@ default void addNotificationTemplate(NotificationTemplate notificationTemplate, default void addNotificationTemplate(NotificationTemplate notificationTemplate, String tenantDomain, String applicationUuid) throws NotificationTemplateManagerException { + throw new UnsupportedOperationException("Not implemented yet"); } /** @@ -228,6 +237,7 @@ default void addNotificationTemplate(NotificationTemplate notificationTemplate, default void updateNotificationTemplate(NotificationTemplate notificationTemplate, String tenantDomain) throws NotificationTemplateManagerException { + throw new UnsupportedOperationException("Not implemented yet"); } /** @@ -238,9 +248,11 @@ default void updateNotificationTemplate(NotificationTemplate notificationTemplat * @param applicationUuid Application UUID. * @throws NotificationTemplateManagerException If an error occurred while updating the notification template. */ + @Deprecated default void updateNotificationTemplate(NotificationTemplate notificationTemplate, String tenantDomain, String applicationUuid) throws NotificationTemplateManagerException { + throw new UnsupportedOperationException("Not implemented yet"); } /** @@ -256,6 +268,7 @@ default void deleteNotificationTemplate(String notificationChannel, String templ String tenantDomain) throws NotificationTemplateManagerException { + throw new UnsupportedOperationException("Not implemented yet"); } @@ -273,6 +286,7 @@ default void deleteNotificationTemplate(String notificationChannel, String templ String tenantDomain, String applicationUuid) throws NotificationTemplateManagerException { + throw new UnsupportedOperationException("Not implemented yet"); } /** @@ -287,6 +301,7 @@ default void deleteNotificationTemplate(String notificationChannel, String templ default void addDefaultNotificationTemplates(String notificationChannel, String tenantDomain) throws NotificationTemplateManagerException { + throw new UnsupportedOperationException("Not implemented yet"); } /** @@ -297,7 +312,7 @@ default void addDefaultNotificationTemplates(String notificationChannel, String */ default List getDefaultNotificationTemplates(String notificationChannel) { - return null; + throw new UnsupportedOperationException("Not implemented yet"); } /** @@ -312,7 +327,7 @@ default boolean isNotificationTemplateExists(String notificationChannel, String String tenantDomain) throws NotificationTemplateManagerException { - return false; + throw new UnsupportedOperationException("Not implemented yet"); } /** @@ -329,7 +344,7 @@ default boolean isNotificationTemplateExists(String notificationChannel, String String tenantDomain, String applicationUuid) throws NotificationTemplateManagerException { - return false; + throw new UnsupportedOperationException("Not implemented yet"); } /** @@ -341,7 +356,7 @@ default boolean isNotificationTemplateExists(String notificationChannel, String default List getAllSystemNotificationTemplatesOfType(String notificationChannel, String templateDisplayName) throws NotificationTemplateManagerException { - return null; + throw new UnsupportedOperationException("Not implemented yet"); } /** @@ -357,6 +372,6 @@ default NotificationTemplate getSystemNotificationTemplate(String notificationCh String locale) throws NotificationTemplateManagerException { - return null; + throw new UnsupportedOperationException("Not implemented yet"); } }