}
@GET
- @Path("{csid}/accountroles/{accrolecsid}")
+ @Path("{csid}/accountroles/{id}")
public AccountRoleRel getAccountRole(
@PathParam("csid") String accCsid,
- @PathParam("accrolecsid") String accrolecsid) {
+ @PathParam("id") String accrolecsid) {
if (logger.isDebugEnabled()) {
logger.debug("getAccountRole with accCsid=" + accCsid);
}
}
@GET
- @Path("{csid}/permroles/{permrolecsid}")
+ @Path("{csid}/permroles/{id}")
public PermissionRoleRel getPermissionRole(
@PathParam("csid") String permCsid,
- @PathParam("permrolecsid") String permrolecsid) {
+ @PathParam("id") String permrolecsid) {
if (logger.isDebugEnabled()) {
logger.debug("getPermissionRole with permCsid=" + permCsid);
}
}
@GET
- @Path("{csid}/permroles/{permrolecsid}")
+ @Path("{csid}/permroles/{id}")
public PermissionRoleRel getRolePermission(
@PathParam("csid") String roleCsid,
- @PathParam("permrolecsid") String permrolecsid) {
+ @PathParam("id") String permrolecsid) {
if (logger.isDebugEnabled()) {
logger.debug("getRolePermission with roleCsid=" + roleCsid);
}
</xs:sequence>
</xs:complexType>
+<!-- Currently not used. May be part of 1.x future release -->
<xs:complexType name="AuthorizationRoleRel">
<xs:annotation>
<xs:appinfo>
</xs:annotation>
</xs:complexType>
+ <xs:element name="account_role_rel" type="account_role_rel"/>
<xs:complexType name="account_role_rel">
<xs:annotation>
<xs:documentation>AccountRole defines association between account and role in CollectionSpace</xs:documentation>
</xs:sequence>
</xs:complexType>
+ <xs:element name="permission_role_rel" type="permission_role_rel"/>
<xs:complexType name="permission_role_rel">
<xs:annotation>
<xs:documentation>
for (String pathParamName : pathParams.keySet()) {
//assumption : path params for csid for any entity has substring csid in name
String pathParamValue = pathParams.get(pathParamName).get(0);
- if ((pathParamName.toLowerCase().indexOf("ms") > -1)) {
+ if ((pathParamName.toLowerCase().indexOf("csid") > -1)) {
//replace csids with wildcard
uriPath = uriPath.replace(pathParamValue, "*");
}
- if ((pathParamName.toLowerCase().indexOf("csid") > -1)) {
- //replace csids with wildcard
+ if ((pathParamName.toLowerCase().indexOf("id") > -1)) {
+ //replace id with wildcard
uriPath = uriPath.replace(pathParamValue, "*");
}
if ((pathParamName.toLowerCase().indexOf("predicate") > -1)) {
uriPath = uriPath.replace("urn:cspace:name(" + pathParamValue
+ ")", "*");
}
+ if ((pathParamName.toLowerCase().indexOf("ms") > -1)) {
+ //replace csids with wildcard
+ uriPath = uriPath.replace(pathParamValue, "*");
+ }
}
uriPath = uriPath.replace("//", "/");
return uriPath;