public final class PermissionsServiceImpl extends Object implements PermissionsService
| Modifier and Type | Field and Description |
|---|---|
static PermissionsServiceImpl |
INSTANCE |
| Constructor and Description |
|---|
PermissionsServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
OtherPermissions |
getOtherPermissions(String selectedUnitId) |
OwnerPermissions |
getOwner(String selectedUnitId)
Returns a List of all possible Owners of an unit.
|
List<GroupPermissions> |
getUnitPermissions(String selectedUnitId)
Returns a list of all group permissions, no matter if the group currently have any rights.
|
void |
save(String selectedUnitId,
List<GroupPermissions> permissions,
OwnerPermissions owner,
OtherPermissions other)
Saves the new Settings for the unit.
|
public static final PermissionsServiceImpl INSTANCE
public OwnerPermissions getOwner(String selectedUnitId) throws org.openbase.jul.exception.CouldNotPerformException, InterruptedException
PermissionsServiceOwnerPermissions.currentOwner.getOwner in interface PermissionsServiceselectedUnitId - the unit to get all possible ownersorg.openbase.jul.exception.CouldNotPerformExceptionInterruptedExceptionpublic List<GroupPermissions> getUnitPermissions(String selectedUnitId) throws org.openbase.jul.exception.CouldNotPerformException, InterruptedException
PermissionsServicegetUnitPermissions in interface PermissionsServiceselectedUnitId - the unit to get all Group-permissionsorg.openbase.jul.exception.CouldNotPerformExceptionInterruptedExceptionpublic OtherPermissions getOtherPermissions(String selectedUnitId) throws org.openbase.jul.exception.CouldNotPerformException, InterruptedException
getOtherPermissions in interface PermissionsServiceorg.openbase.jul.exception.CouldNotPerformExceptionInterruptedExceptionpublic void save(@Nonnull String selectedUnitId, List<GroupPermissions> permissions, @Nonnull OwnerPermissions owner, OtherPermissions other) throws org.openbase.jul.exception.CouldNotPerformException, InterruptedException, ExecutionException
PermissionsServicePermissions for Group and the Owner and his permissions are set.
save in interface PermissionsServiceselectedUnitId - the unit to save permissions forpermissions - the group-permissions to saveowner - the new Owner (or OwnerPermissions.currentOwner if noneorg.openbase.jul.exception.CouldNotPerformExceptionInterruptedExceptionExecutionExceptionCopyright © 2015–2018 openbase.org. All rights reserved.