| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| IdentityArchiveService |
|
| 1.0;1 |
| 1 | /* | |
| 2 | * Copyright 2007-2009 The Kuali Foundation | |
| 3 | * | |
| 4 | * Licensed under the Educational Community License, Version 2.0 (the "License"); | |
| 5 | * you may not use this file except in compliance with the License. | |
| 6 | * You may obtain a copy of the License at | |
| 7 | * | |
| 8 | * http://www.opensource.org/licenses/ecl2.php | |
| 9 | * | |
| 10 | * Unless required by applicable law or agreed to in writing, software | |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, | |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 13 | * See the License for the specific language governing permissions and | |
| 14 | * limitations under the License. | |
| 15 | */ | |
| 16 | package org.kuali.rice.kim.api.identity; | |
| 17 | ||
| 18 | import org.kuali.rice.kim.api.identity.entity.EntityDefault; | |
| 19 | import org.kuali.rice.kim.util.KimConstants; | |
| 20 | ||
| 21 | import javax.jws.WebMethod; | |
| 22 | import javax.jws.WebParam; | |
| 23 | import javax.jws.WebResult; | |
| 24 | import javax.jws.WebService; | |
| 25 | import javax.jws.soap.SOAPBinding; | |
| 26 | ||
| 27 | /** | |
| 28 | * | |
| 29 | * This service archives EntityDefault. It's purpose is to provide long term | |
| 30 | * storage for basic identity data that may be removed from the IdentityService implementation's | |
| 31 | * backing store. | |
| 32 | * | |
| 33 | * @author Kuali Rice Team (rice.collab@kuali.org) | |
| 34 | * | |
| 35 | */ | |
| 36 | @WebService(name = "IdentityArchiveServiceSoap", targetNamespace = KimConstants.Namespaces.KIM_NAMESPACE_2_0) | |
| 37 | @SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL, parameterStyle = SOAPBinding.ParameterStyle.WRAPPED) | |
| 38 | public interface IdentityArchiveService { | |
| 39 | ||
| 40 | /** | |
| 41 | * Gets a {@link org.kuali.rice.kim.api.identity.entity.EntityDefault} with an id from the archive. | |
| 42 | * {@link org.kuali.rice.kim.api.identity.entity.EntityDefault} is a condensed version of {@link org.kuali.rice.kim.api.identity.entity.Entity} that contains | |
| 43 | * default values of its subclasses | |
| 44 | * | |
| 45 | * <p> | |
| 46 | * This method will return null if the Entity does not exist. | |
| 47 | * </p> | |
| 48 | * | |
| 49 | * @param id the unique id to retrieve the entity by. cannot be null. | |
| 50 | * @return a {@link org.kuali.rice.kim.api.identity.entity.EntityDefault} or null | |
| 51 | * @throws IllegalArgumentException if the id is blank | |
| 52 | */ | |
| 53 | @WebMethod(operationName = "getEntityDefaultFromArchive") | |
| 54 | @WebResult(name = "entityDefault") | |
| 55 | EntityDefault getEntityDefaultFromArchive(@WebParam(name = "id") String entityId ); | |
| 56 | ||
| 57 | /** | |
| 58 | * Gets a {@link org.kuali.rice.kim.api.identity.entity.EntityDefault} with an principalId from the archive. | |
| 59 | * {@link org.kuali.rice.kim.api.identity.entity.EntityDefault} is a condensed version of {@link org.kuali.rice.kim.api.identity.entity.Entity} that contains | |
| 60 | * default values of its subclasses | |
| 61 | * | |
| 62 | * <p> | |
| 63 | * This method will return null if the Entity does not exist. | |
| 64 | * </p> | |
| 65 | * | |
| 66 | * @param principalId the unique principalId to retrieve the entity by. cannot be null. | |
| 67 | * @return a {@link org.kuali.rice.kim.api.identity.entity.EntityDefault} or null | |
| 68 | * @throws IllegalArgumentException if the principalId is blank | |
| 69 | */ | |
| 70 | @WebMethod(operationName = "getEntityDefaultFromArchiveByPrincipalId") | |
| 71 | @WebResult(name = "entityDefault") | |
| 72 | EntityDefault getEntityDefaultFromArchiveByPrincipalId(@WebParam(name = "principalId") String principalId); | |
| 73 | ||
| 74 | /** | |
| 75 | * Gets a {@link org.kuali.rice.kim.api.identity.entity.EntityDefault} with an principalName from the archive. | |
| 76 | * {@link org.kuali.rice.kim.api.identity.entity.EntityDefault} is a condensed version of {@link org.kuali.rice.kim.api.identity.entity.Entity} that contains | |
| 77 | * default values of its subclasses | |
| 78 | * | |
| 79 | * <p> | |
| 80 | * This method will return null if the Entity does not exist. | |
| 81 | * </p> | |
| 82 | * | |
| 83 | * @param principalName the unique principalName to retrieve the entity by. cannot be null. | |
| 84 | * @return a {@link org.kuali.rice.kim.api.identity.entity.EntityDefault} or null | |
| 85 | * @throws IllegalArgumentException if the principalName is blank | |
| 86 | */ | |
| 87 | @WebMethod(operationName = "getEntityDefaultFromArchiveByPrincipalName") | |
| 88 | @WebResult(name = "entityDefault") | |
| 89 | EntityDefault getEntityDefaultFromArchiveByPrincipalName(@WebParam(name = "principalName") String principalName); | |
| 90 | ||
| 91 | /** | |
| 92 | * Saves a {@link org.kuali.rice.kim.api.identity.entity.EntityDefault} to the archive. | |
| 93 | * {@link org.kuali.rice.kim.api.identity.entity.EntityDefault} is a condensed version of {@link org.kuali.rice.kim.api.identity.entity.Entity} that contains | |
| 94 | * default values of its subclasses | |
| 95 | * | |
| 96 | * <p> | |
| 97 | * This method will return the saved EntityDefault object | |
| 98 | * </p> | |
| 99 | * | |
| 100 | * @param entityDefault the unique principalName to retrieve the entity by. cannot be null. | |
| 101 | * @return a {@link org.kuali.rice.kim.api.identity.entity.EntityDefault} or null | |
| 102 | * @throws IllegalArgumentException if the principalName is blank | |
| 103 | */ | |
| 104 | @WebMethod(operationName = "saveEntityDefaultToArchive") | |
| 105 | void saveEntityDefaultToArchive(@WebParam(name = "entityDefault") EntityDefault entityDefault); | |
| 106 | ||
| 107 | } |