Class WikiItemUserPermissionHome
java.lang.Object
fr.paris.lutece.plugins.wiki.business.permission.WikiItemUserPermissionHome
Home for user permissions on wiki items.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidGrants a permission to a user on an item.static List<WikiItemUserPermission>findByItemAndType(int nIdItem, String strPermissionType) Returns the permissions granted on an item for a permission type.static List<WikiItemUserPermission>findByUser(String strUserGuid) Returns every permission held by a user, across all items.static voidRevokes a permission held by a user on an item.
-
Method Details
-
create
public static void create(int nIdItem, String strUserGuid, String strUserDisplayName, String strPermissionType) Grants a permission to a user on an item. Does nothing when already granted.- Parameters:
nIdItem- the item identifierstrUserGuid- the user guidstrUserDisplayName- the user name to displaystrPermissionType- the permission type
-
remove
Revokes a permission held by a user on an item.- Parameters:
nIdItem- the item identifierstrUserGuid- the user guidstrPermissionType- the permission type
-
findByItemAndType
Returns the permissions granted on an item for a permission type.- Parameters:
nIdItem- the item identifierstrPermissionType- the permission type- Returns:
- the permissions, ordered by display name
-
findByUser
Returns every permission held by a user, across all items.- Parameters:
strUserGuid- the user guid- Returns:
- the permissions held by the user
-