public interface IaccessPortType
Modifier and Type | Method and Description |
---|---|
Integer |
getaccess(URI itemID,
URI userID)
Get the principal's access rights to a MWS thing
|
String |
getauthscheme(URI thingID)
Get the default authentication scheme identifier for a MWS thing
|
URI |
getsecurityrealm(URI thingID)
Get the URI of the security realm that is controlling access to a MWS thing
|
Boolean |
isanonymous(URI thingID)
Determine if a MWS thing can be accessed anonymously
|
void |
removeaces(Object[] principalIds,
boolean recursive,
URI resourceURI)
Remove any Access Control Entries on a MWS thing for a specified principal.
|
void |
removesecurityrealm(URI itemID,
boolean recursive,
URI securityRealmID)
Remove a MWS thing from the list of resources controlled by a specific security realm
|
void |
setaces(int delegate,
int deny,
int exclusive,
int grant,
int mask,
Object[] principalIds,
boolean recursive,
URI thingID)
Set the Access Control Entries (ACE) for a specific MWS thing for a list of users, groups, or roles (principals) on a
specific MWS thing
|
void |
setanonymous(boolean anonymous,
boolean recursive,
URI thingID)
Set whether a MWS thing can be accessed anonymously
|
void |
setauthscheme(String authScheme,
boolean recursive,
URI thingID)
Set the default authentication scheme for a MWS thing.
|
void |
setsecurityrealm(URI itemID,
boolean recursive,
URI securityRealmID)
Set the security realm to control access to a MWS thing
|
void setaces(int delegate, int deny, int exclusive, int grant, int mask, Object[] principalIds, boolean recursive, URI thingID)
delegate
- the bit-field of delegated rights for the specified princpials. See PCAccessHelper
for bit-field constants.deny
- the bit-field of rights to explicitly deny to the specified principals. See PCAccessHelper
for bit-field constants.exclusive
- unused bit-fieldgrant
- the bit-field of rights to explicitly grant to the specified principals. See PCAccessHelper
for bit-field constants.mask
- unused bit-fieldprincipalIds
- Array of principal URI
s to add or modify access rights to the specified MWS thingrecursive
- true if the access modification should be applied to this item's descendantsthingID
- the MWS thing to modify access forInteger getaccess(URI itemID, URI userID)
itemID
- the MWS thing to get access right touserID
- the principal to get access rights forPCAccessHelper
for bit-field constants.void removeaces(Object[] principalIds, boolean recursive, URI resourceURI)
principalIds
- Array of principal URI
s to add or modify access rights to the specified MWS thingrecursive
- True if the access modification should be applied to this item's descendantsresourceURI
- the MWS thing whose access to modifyBoolean isanonymous(URI thingID)
thingID
- the MWS thing to check for anonymous accessvoid setanonymous(boolean anonymous, boolean recursive, URI thingID)
anonymous
- true to allow anonymous access, false to deny anonymous accessrecursive
- true if the access modification should be applied to this item's descendantsthingID
- the MWS thing to check for anonymous accessvoid setauthscheme(String authScheme, boolean recursive, URI thingID)
authScheme
- the auth scheme identifier to apply to the MWS thingrecursive
- true if the access modification should be applied to this item's descendantsthingID
- the MWS thing to set the authentication scheme forString getauthscheme(URI thingID)
thingID
- the MWS thing to retrieve the authentication scheme forURI getsecurityrealm(URI thingID)
thingID
- the MWS thing to retrieve the security realm forvoid setsecurityrealm(URI itemID, boolean recursive, URI securityRealmID)
itemID
- the MWS thing ID to be controlled by the security realmrecursive
- true to have the security realm control the descendents of this MWS thingsecurityRealmID
- the MWS thing ID of the security realmvoid removesecurityrealm(URI itemID, boolean recursive, URI securityRealmID)
itemID
- the MWS thing to be removed from the security realmrecursive
- true to remove the MWS thing's descendants from the realmsecurityRealmID
- the MWS thing ID of the security realm