org.artifactory.security
Interface Security


public interface Security

These are the usage of security data and logged in user methods.


Method Summary
 boolean canAdmin(RepoPath path)
           
 boolean canAnnotate(RepoPath repoPath)
           
 boolean canDelete(RepoPath path)
           
 boolean canDeploy(RepoPath path)
           
 boolean canImplicitlyReadParentPath(RepoPath repoPath)
           
 boolean canRead(RepoPath path)
           
 String currentUsername()
          Deprecated. Use getCurrentUsername() instead
 String[] getCurrentUserGroupNames()
          The group names for the current logged-in user.
 String getCurrentUsername()
           
 String getEncryptedPassword()
           
 String getEscapedEncryptedPassword()
           
 boolean isAdmin()
           
 boolean isAnonAccessEnabled()
           
 boolean isAnonymous()
           
 boolean isAuthenticated()
           
 boolean isUpdatableProfile()
           
 

Method Detail

isUpdatableProfile

boolean isUpdatableProfile()
Returns:
True if the current user can update her profile.

isAnonAccessEnabled

boolean isAnonAccessEnabled()
Returns:
True if anonymous access is allowed.

canRead

boolean canRead(RepoPath path)
Returns:
True if the current user can read the specified path.

canImplicitlyReadParentPath

boolean canImplicitlyReadParentPath(RepoPath repoPath)
Returns:
True if the current user can read the specified path implicitly by having a read permissions on part of the path

canAnnotate

boolean canAnnotate(RepoPath repoPath)
Returns:
True if the current user can annotate the specified path.

canDelete

boolean canDelete(RepoPath path)
Returns:
True if the current user can delete the specified path.

canDeploy

boolean canDeploy(RepoPath path)
Returns:
True if the current user can deploy to the specified path.

canAdmin

boolean canAdmin(RepoPath path)
Returns:
True if the current user has admin permissions on a target info that includes this path..

getCurrentUsername

String getCurrentUsername()
Returns:
The current logged-in user name.
Since:
2.3.3

currentUsername

@Deprecated
String currentUsername()
Deprecated. Use getCurrentUsername() instead

The current logged in-user name.

Returns:
The current logged in-user name

getCurrentUserGroupNames

String[] getCurrentUserGroupNames()
The group names for the current logged-in user.

Returns:
A list of group names associated with the current user.
Since:
2.3.3

isAdmin

boolean isAdmin()
Returns:
True if the current is a system administrator.

isAnonymous

boolean isAnonymous()
Returns:
True if the current user is a anonymous.

isAuthenticated

boolean isAuthenticated()

getEncryptedPassword

String getEncryptedPassword()
Returns:
The encrypted password of the current user

getEscapedEncryptedPassword

String getEscapedEncryptedPassword()
Returns:
The encrypted password of the current user properly escaped for inclusion in xml settings


Copyright © 2012. All Rights Reserved.