org.openregistry.core.web.resources
Class SystemOfRecordRolesResource

java.lang.Object
  extended by org.openregistry.core.web.resources.SystemOfRecordRolesResource

@Named
@Singleton
public class SystemOfRecordRolesResource
extends java.lang.Object

Root RESTful resource representing System of Record view of Roles in Open Registry. This component is managed and autowired by Spring by means of context-component-scan, and served by Jersey when URI is matched against the @Path definition. This bean is a singleton, and therefore is thread-safe.

Since:
1.0
Author:
Dmitriy Kopylenko, Nancy Mond

Constructor Summary
SystemOfRecordRolesResource(PersonService personService, ReferenceRepository referenceRepository)
           
 
Method Summary
 javax.ws.rs.core.Response deleteRole(java.lang.String sorSourceId, java.lang.String sorPersonId, java.lang.String sorRoleId, boolean mistake, java.lang.String terminationType)
           
 javax.ws.rs.core.Response processIncomingRole(java.lang.String sorSourceId, java.lang.String sorPersonId, RoleRepresentation roleRepresentation)
           
 javax.ws.rs.core.Response updateIncomingRole(java.lang.String sorSourceId, java.lang.String sorPersonId, java.lang.String sorRoleId, RoleRepresentation roleRepresentation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemOfRecordRolesResource

@Inject
public SystemOfRecordRolesResource(PersonService personService,
                                          ReferenceRepository referenceRepository)
Method Detail

processIncomingRole

public javax.ws.rs.core.Response processIncomingRole(java.lang.String sorSourceId,
                                                     java.lang.String sorPersonId,
                                                     RoleRepresentation roleRepresentation)

updateIncomingRole

public javax.ws.rs.core.Response updateIncomingRole(java.lang.String sorSourceId,
                                                    java.lang.String sorPersonId,
                                                    java.lang.String sorRoleId,
                                                    RoleRepresentation roleRepresentation)

deleteRole

public javax.ws.rs.core.Response deleteRole(java.lang.String sorSourceId,
                                            java.lang.String sorPersonId,
                                            java.lang.String sorRoleId,
                                            boolean mistake,
                                            java.lang.String terminationType)


Copyright © 2009-2012 JA-SIG, Inc.. All Rights Reserved.