|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.systinet.wasp.admin.security.PermissionHelper
This class helps to convert objects (their representaion) into identificators which are used to grant permissions and to convert identificators back to objects.
Nested Class Summary | |
static class |
PermissionHelper.Holder
This class is used as holder of object representation during decoding of it from identificator. |
Constructor Summary | |
PermissionHelper()
|
Method Summary | |
protected static PermissionHelper.Holder |
decode(java.lang.String id)
Decodes string into tripple . |
static PermissionHelper.Holder |
decodeMethodId(java.lang.String methodId)
Returns holder which contains representaion of the method of specified identification. |
static PermissionHelper.Holder |
decodePackageId(java.lang.String packageId)
Returns holder which contains representaion of the package of specified identification. |
static java.lang.String |
decodeServiceEndpointId(java.lang.String context,
java.lang.String serviceEndpointId)
Returns endpoint of the service endpoint specified by its identification and context (simply cuts context from the endpoint id). |
static PermissionHelper.Holder |
decodeServiceInstanceId(java.lang.String serviceInstanceId)
Returns holder which contains representaion of the service instance of specified identification. |
protected static java.lang.String |
encode(java.lang.String context,
java.lang.String targetNS,
java.lang.String name)
Encodes tripple into one string. |
static java.lang.String |
getMethodId(java.lang.String wsdlTargetNamespace,
java.lang.String operationName)
Returns identification of the specified method. |
static java.lang.String |
getPackageId(Package pckg)
Returns identification of the specified package. |
static java.lang.String |
getPackageId(java.lang.String context,
java.lang.String targetNS,
java.lang.String name)
Returns identification of the specified package. |
static java.lang.String |
getServiceEndpointId(java.lang.String context,
ServiceEndpoint serviceEndpoint)
Returns identification of the specified service instance. |
static java.lang.String |
getServiceEndpointId(java.lang.String context,
java.lang.String endpointPath)
Returns identification of the specified service endpoint. |
static java.lang.String |
getServiceInstanceId(java.lang.String context,
ServiceInstance serviceInstance)
Returns identification of the specified service instance. |
static java.lang.String |
getServiceInstanceId(java.lang.String context,
java.lang.String targetNS,
java.lang.String name)
Returns identification of the specified service instance. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PermissionHelper()
Method Detail |
protected static java.lang.String encode(java.lang.String context, java.lang.String targetNS, java.lang.String name)
context
- context of the object.targetNS
- target namespace of the object.name
- name of the object.protected static PermissionHelper.Holder decode(java.lang.String id)
id
- identificator to decode.
public static java.lang.String getPackageId(Package pckg)
pckg
- package.
public static java.lang.String getPackageId(java.lang.String context, java.lang.String targetNS, java.lang.String name)
context
- context of the package.targetNS
- target namespace of the package.name
- name of the package.
public static java.lang.String getServiceInstanceId(java.lang.String context, ServiceInstance serviceInstance)
context
- context of the service instance.serviceInstance
- service instance.
public static java.lang.String getServiceInstanceId(java.lang.String context, java.lang.String targetNS, java.lang.String name)
context
- context of the service instance.targetNS
- target namespace of the service instance.name
- name of the service instance.
public static java.lang.String getServiceEndpointId(java.lang.String context, ServiceEndpoint serviceEndpoint)
context
- context of the service instance.serviceEndpoint
- service endpoint.
public static java.lang.String getServiceEndpointId(java.lang.String context, java.lang.String endpointPath)
context
- context of the service endpoint.endpointPath
- path of the service endpoint.
public static java.lang.String getMethodId(java.lang.String wsdlTargetNamespace, java.lang.String operationName)
wsdlTargetNamespace
- target namespace of the WSDL where the method is described.operationName
- name of the method (operation in WSDL).
public static PermissionHelper.Holder decodePackageId(java.lang.String packageId)
packageId
- identification of the package.
public static PermissionHelper.Holder decodeServiceInstanceId(java.lang.String serviceInstanceId)
serviceInstanceId
- identification of the service instance.
public static java.lang.String decodeServiceEndpointId(java.lang.String context, java.lang.String serviceEndpointId)
context
- context of the service endpoint.serviceEndpointId
- identification of the service endpoint.
public static PermissionHelper.Holder decodeMethodId(java.lang.String methodId)
methodId
- identification of the method
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |