Class PermissionsUtil
- java.lang.Object
-
- org.apache.felix.eventadmin.impl.security.PermissionsUtil
-
public abstract class PermissionsUtil extends Object
Utility class for permissions.- Author:
- Felix Project Team
-
-
Constructor Summary
Constructors Constructor Description PermissionsUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Permission
createPublishPermission(String topic)
Creates aTopicPermission
for the given topic and the type PUBLISHstatic Permission
createSubscribePermission(String topic)
Creates aTopicPermission
for the given topic and the type SUBSCRIBE Note that a
-
-
-
Method Detail
-
createPublishPermission
public static Permission createPublishPermission(String topic)
Creates aTopicPermission
for the given topic and the type PUBLISH- Parameters:
topic
- The target topic- Returns:
- The created permission or
null
in case the permission could not be created. - See Also:
TopicPermission
-
createSubscribePermission
public static Permission createSubscribePermission(String topic)
Creates aTopicPermission
for the given topic and the type SUBSCRIBE Note that a- Parameters:
topic
- The target topic- Returns:
- The created permission or a
null
in case the permission could not be created. - See Also:
TopicPermission
-
-