String representation of the Policy modified
This commit is contained in:
parent
d33d86e036
commit
f66c16e566
|
@ -118,7 +118,19 @@ public class PolicyAuth implements Serializable {
|
||||||
* Get full name
|
* Get full name
|
||||||
*/
|
*/
|
||||||
public String getServiceAsString(){
|
public String getServiceAsString(){
|
||||||
return service.getServiceClass()+":"+service.getServiceName()+":"+service.getServiceId();
|
String serviceClass = service.getServiceClass();
|
||||||
|
String serviceName = service.getServiceName();
|
||||||
|
String serviceId = service.getServiceId();
|
||||||
|
if (serviceClass == null)
|
||||||
|
return "*";
|
||||||
|
StringBuilder toReturn = new StringBuilder(serviceClass);
|
||||||
|
if (serviceName == null)
|
||||||
|
return toReturn.append(":").append("*").toString();
|
||||||
|
toReturn.append(":").append(serviceName);
|
||||||
|
if (serviceId!=null)
|
||||||
|
toReturn.append(":").append(serviceId);
|
||||||
|
|
||||||
|
return toReturn.toString();
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
* Get full name caller
|
* Get full name caller
|
||||||
|
|
Loading…
Reference in New Issue