Skip to content

Commit

Permalink
Bunch of formatted files
Browse files Browse the repository at this point in the history
Removed unused sources
  • Loading branch information
enricovianello committed Aug 5, 2020
1 parent 36853c2 commit 2499fe0
Show file tree
Hide file tree
Showing 83 changed files with 7,141 additions and 8,558 deletions.
174 changes: 81 additions & 93 deletions src/main/java/it/grid/storm/acl/AclManagementInterface.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,107 +28,95 @@

public interface AclManagementInterface {

/**
* Grants the provided permission on the provided file to the provided group
*
* @param localFile
* @param localUser
* a local user representing a group on the operating system
* @param permission
*/
void grantGroupPermission(LocalFile localFile, LocalUser localUser,
FilesystemPermission permission);
/**
* Grants the provided permission on the provided file to the provided group
*
* @param localFile
* @param localUser a local user representing a group on the operating system
* @param permission
*/
void grantGroupPermission(LocalFile localFile, LocalUser localUser,
FilesystemPermission permission);

/**
* Grants the provided permission on the provided file to the provided user
*
* @param localFile
* @param localUser
* a local user representing an user on the operating system
* @param permission
*/
void grantUserPermission(LocalFile localFile, LocalUser localUser,
FilesystemPermission permission);
/**
* Grants the provided permission on the provided file to the provided user
*
* @param localFile
* @param localUser a local user representing an user on the operating system
* @param permission
*/
void grantUserPermission(LocalFile localFile, LocalUser localUser,
FilesystemPermission permission);

/**
* Removes all the permission eventually assigned to the provided group on the
* provided file
*
* @param localFile
* a local user representing a group on the operating system
* @param localUser
*/
void removeGroupPermission(LocalFile localFile, LocalUser localUser);
/**
* Removes all the permission eventually assigned to the provided group on the provided file
*
* @param localFile a local user representing a group on the operating system
* @param localUser
*/
void removeGroupPermission(LocalFile localFile, LocalUser localUser);

/**
* Removes all the permission eventually assigned to the provided user on the
* provided file
*
* @param localFile
* @param localUser
* a local user representing an user on the operating system
*/
void removeUserPermission(LocalFile localFile, LocalUser localUser);
/**
* Removes all the permission eventually assigned to the provided user on the provided file
*
* @param localFile
* @param localUser a local user representing an user on the operating system
*/
void removeUserPermission(LocalFile localFile, LocalUser localUser);

/**
* Revokes the provided permission on the provided file to the provided group
*
* @param localFile
* @param localUser
* a local user representing a group on the operating system
* @param permission
*/
void revokeGroupPermission(LocalFile localFile, LocalUser localUser,
FilesystemPermission permission);
/**
* Revokes the provided permission on the provided file to the provided group
*
* @param localFile
* @param localUser a local user representing a group on the operating system
* @param permission
*/
void revokeGroupPermission(LocalFile localFile, LocalUser localUser,
FilesystemPermission permission);

/**
* Revokes the provided permission on the provided file to the provided user
*
* @param localFile
* @param localUser
* a local user representing an user on the operating system
* @param permission
*/
void revokeUserPermission(LocalFile localFile, LocalUser localUser,
FilesystemPermission permission);
/**
* Revokes the provided permission on the provided file to the provided user
*
* @param localFile
* @param localUser a local user representing an user on the operating system
* @param permission
*/
void revokeUserPermission(LocalFile localFile, LocalUser localUser,
FilesystemPermission permission);

/**
* Sets the provided permission on the provided file to the provided group
*
* @param localFile
* @param localUser
* a local user representing a group on the operating system
* @param permission
*/
void setGroupPermission(LocalFile localFile, LocalUser localUser,
FilesystemPermission permission);
/**
* Sets the provided permission on the provided file to the provided group
*
* @param localFile
* @param localUser a local user representing a group on the operating system
* @param permission
*/
void setGroupPermission(LocalFile localFile, LocalUser localUser,
FilesystemPermission permission);

/**
* Sets the provided permission on the provided file to the provided user
*
* @param localFile
* @param localUser
* a local user representing an user on the operating system
* @param permission
*/
void setUserPermission(LocalFile localFile, LocalUser localUser,
FilesystemPermission permission);
/**
* Sets the provided permission on the provided file to the provided user
*
* @param localFile
* @param localUser a local user representing an user on the operating system
* @param permission
*/
void setUserPermission(LocalFile localFile, LocalUser localUser, FilesystemPermission permission);

/**
* Removes all the permission from any user/group from the provided file
*
* @param localFile
*/
void removeAllPermissions(LocalFile localFile);
/**
* Removes all the permission from any user/group from the provided file
*
* @param localFile
*/
void removeAllPermissions(LocalFile localFile);

/**
* Moves all the permission from any user/group from the provided
* fromLocalFile to the new toLocalFile (NOTE: can be assumed that toLocalFile
* has no ACL)
*
* @param fromLocalFile
* @param toLocalFile
*/
void moveAllPermissions(LocalFile fromLocalFile, LocalFile toLocalFile);
/**
* Moves all the permission from any user/group from the provided fromLocalFile to the new
* toLocalFile (NOTE: can be assumed that toLocalFile has no ACL)
*
* @param fromLocalFile
* @param toLocalFile
*/
void moveAllPermissions(LocalFile fromLocalFile, LocalFile toLocalFile);

}
Loading

0 comments on commit 2499fe0

Please sign in to comment.