|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.ipojo.util.SecurityHelper
public class SecurityHelper
Methods checking security permissions.
Constructor Summary | |
---|---|
SecurityHelper()
|
Method Summary | |
---|---|
static boolean |
hasPermissionToGetService(String itf,
BundleContext comp)
Checks if the component bundle context has enough permission to get the given service. |
static boolean |
hasPermissionToGetServices(String[] itfs,
BundleContext comp)
Checks if the component bundle context has enough permission to get the given services. |
static boolean |
hasPermissionToRegisterService(String itf,
BundleContext comp)
Checks if the component bundle context has enough permission to register the given service. |
static boolean |
hasPermissionToRegisterServices(String[] itfs,
BundleContext comp)
Checks if the component bundle context has enough permission to register the given services. |
static BundleContext |
selectContextToGetService(String itf,
BundleContext comp,
BundleContext ipojo)
Gets a bundle context to get the given service. |
static BundleContext |
selectContextToRegisterService(String itf,
BundleContext comp,
BundleContext ipojo)
Gets a bundle context to register the given service. |
static BundleContext |
selectContextToRegisterServices(String[] itfs,
BundleContext comp,
BundleContext ipojo)
Gets a bundle context to register the given services. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SecurityHelper()
Method Detail |
---|
public static BundleContext selectContextToRegisterServices(String[] itfs, BundleContext comp, BundleContext ipojo)
itfs
- the service interfacescomp
- the component bundle contextipojo
- the ipojo bundle context
comp
if the bundle has enough permission
to register the service, ipojo
otherwise.public static BundleContext selectContextToRegisterService(String itf, BundleContext comp, BundleContext ipojo)
itf
- the service interfacecomp
- the component bundle contextipojo
- the ipojo bundle context
comp
if the bundle has enough permission
to register the service, ipojo
otherwise.public static BundleContext selectContextToGetService(String itf, BundleContext comp, BundleContext ipojo)
itf
- the service interfacecomp
- the component bundle contextipojo
- the ipojo bundle context
comp
if the bundle has enough permission
to get the service, ipojo
otherwise.public static boolean hasPermissionToGetService(String itf, BundleContext comp)
itf
- the service interfacecomp
- the component bundle context
true
if the bundle has enough permission
to get the service, false
otherwise.public static boolean hasPermissionToGetServices(String[] itfs, BundleContext comp)
itfs
- the service interfacescomp
- the component bundle context
true
if the bundle has enough permission
to get the services, false
otherwise.public static boolean hasPermissionToRegisterService(String itf, BundleContext comp)
itf
- the service interfacecomp
- the component bundle context
true
if the bundle has enough permission
to register the service, false
otherwise.public static boolean hasPermissionToRegisterServices(String[] itfs, BundleContext comp)
itfs
- the service interfacescomp
- the component bundle context
true
if the bundle has enough permission
to register the services, false
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |