@Override public boolean shouldDisplay(final Map<String, Object> context) { return !authenticationContext.isLoggedInUser(); } }
private boolean isUserLoggedIn() { return context.isLoggedInUser(); } }
public boolean isDisplay() { return isNotBlank(property.getValue()) && (headerIsPublic() || jiraAuthenticationContext.isLoggedInUser()); }
public Response getAccessibleProjectTypeByKey(@PathParam ("projectTypeKey") String projectTypeKey) if (authenticationContext.isLoggedInUser())
public Response updateProjectType(@PathParam ("projectIdOrKey") final String projectIdOrKey, @PathParam ("newProjectTypeKey") final String newProjectTypeKey) if (!authContext.isLoggedInUser())
public Response deleteProject(@PathParam ("projectIdOrKey") final String projectIdOrKey) if (!authContext.isLoggedInUser())
public Response updateProject(@PathParam ("projectIdOrKey") final String projectIdOrKey, @QueryParam ("expand") final String expand, final ProjectInputBean updateData) if (authContext.isLoggedInUser())
@Override public String getApplicationAccess() { if (!applicationRoleManager.rolesEnabled()) { return ""; } if(!authenticationContext.isLoggedInUser()) { return ""; } List<String> applicationKeys = getApplicationKeys(applicationRoleManager.getRolesForUser(authenticationContext.getLoggedInUser())); String appAccess = ""; for (String key : applicationKeys) { appAccess += "," + key + ","; } return appAccess; }
protected Map<String, ProgressAwareBulkOperation> getBulkOperationsMap() { final MapBuilder<String, ProgressAwareBulkOperation> results = MapBuilder.newBuilder(); results.addAll(systemBulkOperations); // Only add watch/unwatch to the list if we're logged in and watching is enabled on the instance if (jiraAuthenticationContext.isLoggedInUser() && watcherService.isWatchingEnabled()) { results.addAll(systemBulkWatchOperations); } results.addAll(pluginProvidedBulkOperations); return results.toListOrderedMap(); } }
public Response createProject(final ProjectInputBean project) if (authContext.isLoggedInUser())