void function ( @ Nonnull ItemGroup arg0 , @ Nonnull TopLevelItemDescriptor arg1 ) { Authentication loc0 = Jenkins . getAuthentication ( ) ; if ( ! hasCreatePermission ( loc0 , arg0 , arg1 ) ) { throw new AccessDeniedException ( Messages . AccessDeniedException2_MissingPermission ( loc0 . getName ( ) , Item . CREATE . group . title + "srini_string" + Item . CREATE . name + Item . CREATE + "srini_string" + arg1 . getDisplayName ( ) ) ) ; } }
checks if the current security principal has the permission to create top level items within the specified item group . this is just a convenience function . concode_field_sep String SYSTEM_USERNAME concode_elem_sep Sid EVERYONE concode_elem_sep String ANONYMOUS_USERNAME concode_elem_sep Sid ANONYMOUS concode_elem_sep Sid[] AUTOMATIC_SIDS concode_elem_sep Authentication SYSTEM concode_field_sep void checkPermission concode_elem_sep ACLContext as concode_elem_sep ACLContext as concode_elem_sep boolean hasCreatePermission concode_elem_sep boolean hasCreatePermission concode_elem_sep SecurityContext impersonate concode_elem_sep void impersonate concode_elem_sep V impersonate concode_elem_sep boolean hasPermission concode_elem_sep boolean hasPermission concode_elem_sep String toString