function stringlengths 87 5.09k | validationType stringclasses 2
values | fixed stringlengths 289 7.12k |
|---|---|---|
private static ThreadPoolType org.jboss.weld.executor.ExecutorServicesFactory.initThreadPoolType(WeldConfiguration configuration) {
String threadPoolTypeString = configuration.getStringProperty(ConfigurationKey.EXECUTOR_THREAD_POOL_TYPE);
try {
ThreadPoolType threadPoolType = ThreadPoolType.valu... | conventional | private static ThreadPoolType<method*start>org.jboss.weld.executor.ExecutorServicesFactory.ThreadPoolType<method*end> initThreadPoolType(WeldConfiguration<method*start>org.jboss.weld.config.WeldConfiguration<method*end> configuration) {
String<method*start>java.lang.String<method*end> threadPoolTypeString = configu... |
@CommandDescription(aliases = { "bat", "batch" }, usage = "<file>", desc = "Executes a Spout batch file.")
public void batch(CommandSource source, CommandArguments args) throws CommandException {
String fileName = args.popString("file");
args.assertCompletelyParsed();
CommandBatch bat = engine.getFileSyste... | annotation | @CommandDescription(aliases<method*start>org.spout.api.command.annotated.CommandDescription.aliases<method*end> = { "bat", "batch" }, usage<method*start>org.spout.api.command.annotated.CommandDescription.usage<method*end> = "<file>", desc<method*start>org.spout.api.command.annotated.CommandDescription.desc<method*end> ... |
private boolean userAuthRequestHandler(HttpServletRequest request, HttpServletResponse response) {
User user = SecurityUtils.getAuthenticatedUser(userAuth);
String reqUri = request.getRequestURI();
String method = request.getMethod();
App parentApp;
if (userAuth instanceof JWTAuthentication) {
... | conventional | private boolean userAuthRequestHandler(HttpServletRequest<method*start>javax.servlet.http.HttpServletRequest<method*end> request, HttpServletResponse<method*start>javax.servlet.http.HttpServletResponse<method*end> response) {
Authentication<method*start>org.springframework.security.core.Authentication<method*end> u... |
protected IPersonAttributes getVisiblePerson(final principal, final person, final generallyPermittedAttributes) {
final permittedAttributes = person.getName().equals(principal.getKey()) ? getPermittedOwnAttributes(principal, generallyPermittedAttributes) : generallyPermittedAttributes;
final visibl... | conventional | protected IPersonAttributes<method*start>org.apereo.services.persondir.IPersonAttributes<method*end> getVisiblePerson(final IAuthorizationPrincipal<method*start>org.apereo.portal.security.IAuthorizationPrincipal<method*end> principal, final IPersonAttributes<method*start>org.apereo.services.persondir.IPersonAttributes<... |
public void onReceive(Context<method*start>android.content.Context<method*end> context, Intent<method*start>android.content.Intent<method*end> data) {
if (!ACTION_INSTALL_SHORTCUT.equals<method*start>java.lang.String.equals<method*end>(data.getAction<method*start>android.content.Intent.getAction<method*end>())) {
... | conventional | public void onReceive(Context<method*start>android.content.Context<method*end> context, Intent<method*start>android.content.Intent<method*end> data) {
if (!ACTION_INSTALL_SHORTCUT.equals<method*start>java.lang.String.equals<method*end>(data.getAction<method*start>android.content.Intent.getAction<method*end>())) {
... |
public void onReceive(Context android.content.Context context, Intent android.content.Intent data) {
if (!ACTION_INSTALL_SHORTCUT.equals(data.getAction())) {
return;
}
PendingInstallShortcutInfo info = createPendingInfo(context, data);
if (info != null) {
queuePendingShortcutInfo(info, c... | conventional | public void onReceive(Context<method*start>android.content.Context<method*end> context, Intent<method*start>android.content.Intent<method*end> data) {
if (!ACTION_INSTALL_SHORTCUT.equals<method*start>java.lang.String.equals<method*end>(data.getAction<method*start>android.content.Intent.getAction<method*end>())) {
... |
public boolean canEditUser(IPerson<method*start>org.apereo.portal.security.IPerson<method*end> currentUser, String<method*start>java.lang.String<method*end> target) {
if (!isLocalAccount<method*start>org.apereo.portal.portlets.account.UserAccountHelper.isLocalAccount<method*end>(target)) {
return false... | conventional | public boolean canEditUser(IPerson<method*start>org.apereo.portal.security.IPerson<method*end> currentUser, String<method*start>java.lang.String<method*end> target) {
// first check to see if this is a local user
if (!isLocalAccount<method*start>org.apereo.portal.portlets.account.UserAccountHelper.isLocalAccoun... |
private void displayPingOther(CommandSender<method*start>org.bukkit.command.CommandSender<method*end> sender, Command<method*start>org.bukkit.command.Command<method*end> command, String<method*start>java.lang.String<method*end> playerName) {
RollingOverHistory<method*start>com.github.games647.lagmonitor.util.R... | conventional | private void displayPingOther(CommandSender<method*start>org.bukkit.command.CommandSender<method*end> sender, Command<method*start>org.bukkit.command.Command<method*end> command, String<method*start>java.lang.String<method*end> playerName) {
if (sender.hasPermission(command.getPermission() + ".other")) {
Ro... |
private void validate(JoinPoint<method*start>org.aspectj.lang.JoinPoint<method*end> proceedingJoinPoint, HasPermission<method*start>com.sequenceiq.cloudbreak.workspace.repository.HasPermission<method*end> annotation) {
if (annotation == null) {
throw new IllegalArgumentException<method*start>java.lang.Illeg... | conventional | private void validate(JoinPoint<method*start>org.aspectj.lang.JoinPoint<method*end> proceedingJoinPoint, HasPermission<method*start>com.sequenceiq.cloudbreak.workspace.repository.HasPermission<method*end> annotation) {
if (annotation == null) {
throw new IllegalArgumentException<method*start>java.lang.Illeg... |
static ArgumentBuilder<method*start>com.mojang.brigadier.builder.ArgumentBuilder<method*end><CommandSource<method*start>net.minecraft.command.CommandSource<method*end>, ?> register() {
return
Commands.literal<method*start>net.minecraft.command.Commands.literal<method*end>("dimensions").executes(ctx -> {
... | conventional | static ArgumentBuilder<method*start>com.mojang.brigadier.builder.ArgumentBuilder<method*end><CommandSource<method*start>net.minecraft.command.CommandSource<method*end>, ?> register() {
return // permission
Commands.literal<method*start>net.minecraft.command.Commands.literal<method*end>("dimensions").requires(cs... |
private static boolean onBlockHutPlaced(final World<method*start>net.minecraft.world.World<method*end> world, @NotNull final EntityPlayer<method*start>net.minecraft.entity.player.EntityPlayer<method*end> player, final BlockPos<method*start>net.minecraft.util.math.BlockPos<method*end> pos) {
final IColony<method*sta... | annotation | private static boolean onBlockHutPlaced(final World<method*start>net.minecraft.world.World<method*end> world, @NotNull final EntityPlayer<method*start>net.minecraft.entity.player.EntityPlayer<method*end> player, final BlockPos<method*start>net.minecraft.util.math.BlockPos<method*end> pos) {
final IColony<method*sta... |
@Override
public void onExecute(CommandSender sender, String[] args) {
if (sender instanceof Player) {
PlayerProfile.get((Player) sender, profile -> profile.sendStats(sender));
} else {
SlimefunPlugin.getLocal().sendMessage(sender, "messages.only-players", true);
}
} | annotation | @Override
public void onExecute(CommandSender<method*start>org.bukkit.command.CommandSender<method*end> sender, String<method*start>java.lang.String<method*end>[] args) {
if (args.length<method*start>java.lang.String[].length<method*end> > 1) {
if (sender.hasPermission<method*start>org.bukkit.command.Comman... |
@VisibleForTesting
boolean hasReachedMaxLoggedInPlayersForIp(Player player, String ip) {
final String name = player.getName();
int count = 0;
for (Player onlinePlayer : bukkitService.getOnlinePlayers()) {
if (ip.equalsIgnoreCase(PlayerUtils.getPlayerIp(onlinePlayer)) && !onlinePlayer.getNa... | annotation | @VisibleForTesting<method*start>com.google.common.annotations.VisibleForTesting<method*end>
boolean hasReachedMaxLoggedInPlayersForIp(Player<method*start>org.bukkit.entity.Player<method*end> player, String<method*start>java.lang.String<method*end> ip) {
// Do not perform the check if player has multiple accounts pe... |
@Listener
public void onSignChange(ChangeSignEvent<method*start>org.spongepowered.api.event.block.tileentity.ChangeSignEvent<method*end> event, @First Player player) {
for (String<method*start>java.lang.String<method*end> line : getValidSigns<method*start>com.sk89q.craftbook.sponge.mechanics.types.SpongeSignMechani... | annotation | @Listener
public void onSignChange(ChangeSignEvent<method*start>org.spongepowered.api.event.block.tileentity.ChangeSignEvent<method*end> event, @First Player player) {
for (String<method*start>java.lang.String<method*end> line : getValidSigns<method*start>com.sk89q.craftbook.sponge.mechanics.types.SpongeSignMechani... |
public static boolean isCallerInRole(String role) {
Subject subject = getSubject();
EJBContext ejbContext = getEJBContext();
if (ejbContext != null) {
// We're called from an EJB
// To ask for the permission, get the EJB name first.
// Unlike the Servlet container there's no automat... | conventional | public static boolean isCallerInRole(String<method*start>java.lang.String<method*end> role) {
Subject<method*start>javax.security.auth.Subject<method*end> subject = getSubject();
if (hasPermission<method*start>org.glassfish.soteria.authorization.JACC.hasPermission<method*end>(subject, new WebRoleRefPermission<m... |
public static Map<method*start>java.util.Map<method*end><String<method*start>java.lang.String<method*end>, Object<method*start>java.lang.Object<method*end>> checkPermission(DispatchContext<method*start>org.apache.ofbiz.service.DispatchContext<method*end> ctx, Map<method*start>java.util.Map<method*end><String<method*sta... | conventional | public static Map<method*start>java.util.Map<method*end><String<method*start>java.lang.String<method*end>, Object<method*start>java.lang.Object<method*end>> checkPermission(DispatchContext<method*start>org.apache.ofbiz.service.DispatchContext<method*end> ctx, Map<method*start>java.util.Map<method*end><String<method*sta... |
@Override<method*start>java.lang.Override<method*end>
public final int doWikiStartTag() {
for (final String<method*start>java.lang.String<method*end> perm : m_permissionList) {
final boolean hasPermission;
if (perm.charAt<method*start>java.lang.String.charAt<method*end>(0) == '!') {
hasP... | annotation | @Override<method*start>java.lang.Override<method*end>
public final int doWikiStartTag() {
for (final String<method*start>java.lang.String<method*end> perm : m_permissionList) {
final boolean hasPermission;
if (perm.charAt<method*start>java.lang.String.charAt<method*end>(0) == '!') {
hasP... |
@Override
public void messageOnServerThread(final AssignUnassignMessage message, final EntityPlayerMP player) {
final IColony colony = IColonyManager.getInstance().getColonyByDimension(message.colonyId, message.dimension);
if (colony != null) {
final IBuilding building = colony.getBuildingManag... | annotation | @Override
public void messageOnServerThread(final AssignUnassignMessage<method*start>com.minecolonies.coremod.network.messages.AssignUnassignMessage<method*end> message, final EntityPlayerMP<method*start>net.minecraft.entity.player.EntityPlayerMP<method*end> player) {
final IColony<method*start>com.minecolonies.api... |
private void appendPermissionsElement(Document<method*start>org.w3c.dom.Document<method*end> doc, Element<method*start>org.w3c.dom.Element<method*end> parentElement, Set<method*start>java.util.Set<method*end><DBMembershipItem<method*start>org.sakaiproject.api.app.messageforums.DBMembershipItem<method*end>> membershipIt... | conventional | private void appendPermissionsElement(Document<method*start>org.w3c.dom.Document<method*end> doc, Element<method*start>org.w3c.dom.Element<method*end> parentElement, Set<method*start>java.util.Set<method*end><DBMembershipItem<method*start>org.sakaiproject.api.app.messageforums.DBMembershipItem<method*end>> membershipIt... |
@Override
public void onExecute(CommandSender<method*start>org.bukkit.command.CommandSender<method*end> sender, String<method*start>java.lang.String<method*end>[] args) {
if (args.length<method*start>java.lang.String[].length<method*end> == 2) {
if (player.getName<method*start>org.bukkit.OfflinePlayer.... | annotation | @Override
public void onExecute(CommandSender<method*start>org.bukkit.command.CommandSender<method*end> sender, String<method*start>java.lang.String<method*end>[] args) {
if (args.length<method*start>java.lang.String[].length<method*end> == 2) {
if (sender.hasPermission<method*start>org.bukkit.command.Comma... |
@Override
public boolean hasPatchPermission(Authentication authentication, Serializable targetId, String targetType, Patch patch) {
List<Operation> operations = patch.getOperations();
for (Operation op : operations) {
if (!op.getPath().contentEquals(EPersonOperationFactory.OPERATION_PASSWORD_... | annotation | @Override<method*start>java.lang.Override<method*end>
public boolean hasPatchPermission(Authentication<method*start>org.springframework.security.core.Authentication<method*end> authentication, Serializable<method*start>java.io.Serializable<method*end> targetId, String<method*start>java.lang.String<method*end> targetTyp... |
protected List<method*start>java.util.List<method*end><IPortalDataType<method*start>org.apereo.portal.io.xml.IPortalDataType<method*end>> getAllowedTypes(PortletRequest<method*start>javax.portlet.PortletRequest<method*end> request, String<method*start>java.lang.String<method*end> activityName, Iterable<method*start>jav... | conventional | protected List<method*start>java.util.List<method*end><IPortalDataType<method*start>org.apereo.portal.io.xml.IPortalDataType<method*end>> getAllowedTypes(PortletRequest<method*start>javax.portlet.PortletRequest<method*end> request, String<method*start>java.lang.String<method*end> activityName, Iterable<method*start>jav... |
@Override
public void messageOnServerThread(final SifterSettingsMessage message, final EntityPlayerMP player) {
final IColony colony = IColonyManager.getInstance().getColonyByDimension(message.colonyId, message.dimension);
if (colony != null) {
@Nullable final BuildingSifter building... | annotation | @Override
public void messageOnServerThread(final SifterSettingsMessage<method*start>com.minecolonies.coremod.network.messages.SifterSettingsMessage<method*end> message, final EntityPlayerMP<method*start>net.minecraft.entity.player.EntityPlayerMP<method*end> player) {
final IColony<method*start>com.minecolonies.api... |
@CommandDescription(aliases<method*start>org.spout.api.command.annotated.CommandDescription.aliases<method*end> = { "say", "chat" }, usage<method*start>org.spout.api.command.annotated.CommandDescription.usage<method*end> = "[message]", desc<method*start>org.spout.api.command.annotated.CommandDescription.desc<method*end... | annotation | @CommandDescription(aliases<method*start>org.spout.api.command.annotated.CommandDescription.aliases<method*end> = { "say", "chat" }, usage<method*start>org.spout.api.command.annotated.CommandDescription.usage<method*end> = "[message]", desc<method*start>org.spout.api.command.annotated.CommandDescription.desc<method*end... |
@Override
public void checkPermission(String path, String actions) {
PathSupplier supplier = pathSupplierFor(absolutePathFor(path));
String[] actionsArray = actions.split(",");
checkPermission(workspace().getName(), supplier, actionsArray);
if (!hasPermissionOnExternalPath(supplier, actionsArray)) {
... | annotation | @Override
public void checkPermission(String<method*start>java.lang.String<method*end> path, String<method*start>java.lang.String<method*end> actions) {
CheckArg.isNotEmpty<method*start>org.modeshape.common.util.CheckArg.isNotEmpty<method*end>(path, "path");
CheckArg.isNotEmpty<method*start>org.modeshape.com... |
@Override
public void execute(CommandSender sender, String[] args) {
if (args.length == 0) {
sender.sendMessage(TextComponent.fromLegacyText(ChatColor.translateAlternateColorCodes('&', BridgeConfigurationProvider.load().getPrefix()) + "/cloudnet <command>"));
return;
}
String commandLine = S... | annotation | @Override
public void execute(CommandSender<method*start>net.md_5.bungee.api.CommandSender<method*end> sender, String<method*start>java.lang.String<method*end>[] args) {
if (args.length == 0) {
sender.sendMessage(TextComponent<method*start>net.md_5.bungee.api.chat.TextComponent<method*end>.fromLegacyText(Ch... |
@WrapInTransaction
public Template<method*start>com.dotmarketing.portlets.templates.model.Template<method*end> saveTemplate(final IHTMLPage<method*start>com.dotmarketing.portlets.htmlpageasset.model.IHTMLPage<method*end> page, final User<method*start>com.liferay.portal.model.User<method*end> user, final PageForm<metho... | conventional | @WrapInTransaction
public Template<method*start>com.dotmarketing.portlets.templates.model.Template<method*end> saveTemplate(final IHTMLPage<method*start>com.dotmarketing.portlets.htmlpageasset.model.IHTMLPage<method*end> page, final User<method*start>com.liferay.portal.model.User<method*end> user, final PageForm<method... |
@Listener
public void onBlockUpdate(NotifyNeighborBlockEvent event, @First LocatableBlock source) {
if (!redstoneFuel.getValue())
return;
if (!SignUtil.isSign(source.getLocation()))
return;
Location<World> block = source.getLocation();
Sign sign = (Sign) block.getTileEntity().get();
... | annotation | @Listener
public void onBlockUpdate(NotifyNeighborBlockEvent<method*start>org.spongepowered.api.event.block.NotifyNeighborBlockEvent<method*end> event, @First LocatableBlock source) {
if (!redstoneFuel.getValue<method*start>com.sk89q.craftbook.core.util.ConfigValue.getValue<method*end>())
return;
if (!S... |
@Override
public void onExecute(CommandSender<method*start>org.bukkit.command.CommandSender<method*end> sender, String<method*start>java.lang.String<method*end>[] args) {
sender.sendMessage<method*start>org.bukkit.command.CommandSender.sendMessage<method*end>(ChatColors.color<method*start>io.github.thebusybiscu... | annotation | @Override
public void onExecute(CommandSender<method*start>org.bukkit.command.CommandSender<method*end> sender, String<method*start>java.lang.String<method*end>[] args) {
if (sender.hasPermission<method*start>org.bukkit.command.CommandSender.hasPermission<method*end>("slimefun.command.versions") || sender instanceo... |
public static Boolean userIsAllowedToConfigure(String portalPageId, Map context) {
Boolean userIsAllowed = false;
if (UtilValidate.isNotEmpty(portalPageId)) {
GenericValue userLogin = (GenericValue) context.get("userLogin");
if (userLogin != null) {
String userLoginId = (String) user... | conventional | public static Boolean<method*start>java.lang.Boolean<method*end> userIsAllowedToConfigure(String<method*start>java.lang.String<method*end> portalPageId, Map<method*start>java.util.Map<method*end><String<method*start>java.lang.String<method*end>, Object<method*start>java.lang.Object<method*end>> context) {
Boolean<m... |
@SuppressLint("CheckResult")
private void checkPermissions() {
final String ENABLED = getResources().getString(R.string.enabled);
final String DISABLED = getResources().getString(R.string.disabled);
materialProgressBar.setVisibility(View.VISIBLE);
permissionsMainContainer.setVisibility(View.GONE);
f... | annotation | @SuppressLint<method*start>android.annotation.SuppressLint<method*end>("CheckResult")
private void checkPermissions() {
final String<method*start>java.lang.String<method*end> ENABLED = getResources<method*start>androidx.appcompat.app.AppCompatActivity.getResources<method*end>().getString<method*start>android.conten... |
@GET<method*start>javax.ws.rs.GET<method*end>
public Map<method*start>java.util.Map<method*end><String<method*start>java.lang.String<method*end>, ExternalType> getObjects(@QueryParam<method*start>javax.ws.rs.QueryParam<method*end>("permission") List<method*start>java.util.List<method*end><ObjectPermission.Type<method*s... | annotation | @GET<method*start>javax.ws.rs.GET<method*end>
public Map<method*start>java.util.Map<method*end><String<method*start>java.lang.String<method*end>, ExternalType> getObjects(@QueryParam<method*start>javax.ws.rs.QueryParam<method*end>("permission") List<method*start>java.util.List<method*end><ObjectPermission.Type<method*s... |
@EventHandler(priority = EventPriority.HIGH)
public void onSignBreak(BlockBreakEvent event) {
if (event.isCancelled()) {
return;
}
Block block = event.getBlock();
// Check if it is a sign
if (Materials.isSign(block.getType())) {
// Check if the rent sign is really the same as a saved... | annotation | @EventHandler(priority = EventPriority<method*start>org.bukkit.event.EventPriority<method*end>.HIGH)
public void onSignBreak(BlockBreakEvent<method*start>org.bukkit.event.block.BlockBreakEvent<method*end> event) {
if (event.isCancelled()) {
return;
}
Block<method*start>org.bukkit.block.Block<method*... |
@EventHandler(priority = EventPriority.MONITOR)
public void hideAbandonedServer(PlayerQuitEvent event) {
final Server local = minecraftService.getLocalServer();
for (Player player : event.getPlayer().getServer().getOnlinePlayers()) {
return;
}
logger.info("Reverting server vi... | annotation | @EventHandler(priority = EventPriority<method*start>org.bukkit.event.EventPriority<method*end>.MONITOR)
public void hideAbandonedServer(PlayerQuitEvent<method*start>org.bukkit.event.player.PlayerQuitEvent<method*end> event) {
final Server<method*start>tc.oc.api.docs.Server<method*end> local = minecraftService.getLo... |
@Override
public void execute(CommandSender sender, String[] args) {
if (args.length == 0) {
sender.sendMessage((BridgeConfigurationProvider.load().getPrefix().replace("&", "§")) + "/cloudnet <command>");
return;
}
StringBuilder stringBuilder = new StringBuilder();
for (String arg : args... | annotation | @Override
public void execute(CommandSender<method*start>io.gomint.proxprox.api.command.CommandSender<method*end> sender, String<method*start>java.lang.String<method*end>[] args) {
if (!sender.hasPermission("cloudnet.command.cloudnet")) {
return;
}
if (args.length == 0) {
sender.sendMessage(... |
@Override
public void execute(CommandSource source, String[] args) {
if (args.length == 0) {
source.sendMessage(TextComponent.of(BridgeConfigurationProvider.load().getPrefix().replace("&", "§") + "/cloudnet <command>"));
return;
}
String commandLine = String.join(" ", args);
if (source i... | annotation | @Override
public void execute(@MaybePresent CommandSource source, @NonNull @MaybePresent String[] args) {
if (!source.hasPermission("cloudnet.command.cloudnet")) {
return;
}
if (args.length == 0) {
source.sendMessage(TextComponent<method*start>net.kyori.text.TextComponent<method*end>.of(Brid... |
@Listener
public void onChangeSign(ChangeSignEvent<method*start>org.spongepowered.api.event.block.tileentity.ChangeSignEvent<method*end> event, @First Player player) {
ICType<method*start>com.sk89q.craftbook.sponge.mechanics.ics.ICType<method*end><? extends IC> icType = ICManager.getICType<method*start>com.sk89q.cr... | annotation | @Listener
public void onChangeSign(ChangeSignEvent<method*start>org.spongepowered.api.event.block.tileentity.ChangeSignEvent<method*end> event, @First Player player) {
ICType<method*start>com.sk89q.craftbook.sponge.mechanics.ics.ICType<method*end><? extends IC> icType = ICManager.getICType<method*start>com.sk89q.cr... |
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
CustomListRowPresenter presenter = new CustomListRowPresenter();
presenter.setHeaderPresenter(new RowHeaderPresenter());
mRowsAdapter = new ArrayObjectAdapter(presenter);
setSearchResultProvider(this);
... | annotation | @Override
public void onCreate(Bundle<method*start>android.os.Bundle<method*end> savedInstanceState) {
super.onCreate<method*start>android.support.v17.leanback.app.SearchFragment.onCreate<method*end>(savedInstanceState);
CustomListRowPresenter presenter = new CustomListRowPresenter();
presenter.setHeaderPre... |
@Override
public CommandResult execute(CommandSource src, CommandContext args) throws CommandException {
String id = args.getOne("id").get();
String namespace = args.getOne("namespace").orElse(((Player) src).getUniqueId().toString());
boolean personal = namespace.equals(((Player) src).getUniqueId().toString... | annotation | @Override
public CommandResult<method*start>org.spongepowered.api.command.CommandResult<method*end> execute(CommandSource<method*start>org.spongepowered.api.command.CommandSource<method*end> src, CommandContext<method*start>org.spongepowered.api.command.args.CommandContext<method*end> args) throws CommandException<meth... |
@EventHandler(priority = EventPriority<method*start>org.bukkit.event.EventPriority<method*end>.NORMAL)
public void playerTeleport(PlayerTeleportEvent<method*start>org.bukkit.event.player.PlayerTeleportEvent<method*end> event) {
boolean allow = true;
for (Arena<method*start>com.garbagemule.MobArena.framewor... | annotation | @EventHandler(priority = EventPriority<method*start>org.bukkit.event.EventPriority<method*end>.NORMAL)
public void playerTeleport(PlayerTeleportEvent<method*start>org.bukkit.event.player.PlayerTeleportEvent<method*end> event) {
if (!am<method*start>com.garbagemule.MobArena.listeners.MAGlobalListener.am<method*end>.... |
@Override
public void messageOnServerThread(final ChangeFreeToInteractBlockMessage<method*start>com.minecolonies.coremod.network.messages.ChangeFreeToInteractBlockMessage<method*end> message, final EntityPlayerMP<method*start>net.minecraft.entity.player.EntityPlayerMP<method*end> player) {
final IColony<method*star... | annotation | @Override
public void messageOnServerThread(final ChangeFreeToInteractBlockMessage<method*start>com.minecolonies.coremod.network.messages.ChangeFreeToInteractBlockMessage<method*end> message, final EntityPlayerMP<method*start>net.minecraft.entity.player.EntityPlayerMP<method*end> player) {
final IColony<method*star... |
@Override
public void execute(final ViolationData<method*start>fr.neatmonster.nocheatplus.checks.ViolationData<method*end> violationData) {
final LogManager logManager = NCPAPIProvider.getNoCheatPlusAPI<method*start>fr.neatmonster.nocheatplus.NCPAPIProvider.getNoCheatPlusAPI<method*end>().getLogManager<method*... | annotation | @Override<method*start>java.lang.Override<method*end>
public void execute(final ViolationData<method*start>fr.neatmonster.nocheatplus.checks.ViolationData<method*end> violationData) {
// TODO: Consider permission caching or removing the feature? [Besides, check earlier?]
final RegisteredPermission<method*start>... |
@AfterPermissionGranted(NeededPermissions)
private void requestNeededPermissions() {
String PREF_FIRST_START = "FirstStart";
SharedPreferences FirstStart = getApplicationContext().getSharedPreferences(PREF_FIRST_START, Context.MODE_PRIVATE);
long FirstStartTime = FirstStart.getLong(PREF_FIRST_START, 0);
... | annotation | @AfterPermissionGranted(NeededPermissions)
private void requestNeededPermissions() {
String<method*start>java.lang.String<method*end> PREF_FIRST_START = "FirstStart";
SharedPreferences<method*start>android.content.SharedPreferences<method*end> FirstStart = getApplicationContext<method*start>androidx.appcompat.a... |
public Object decide(Authentication authentication, Object object, Collection<ConfigAttribute> config, Object returnedObject) throws AccessDeniedException {
if (returnedObject == null) {
// AclManager interface contract prohibits nulls
// As they have permission to null/nothing, grant access
... | conventional | public Object<method*start>java.lang.Object<method*end> decide(Authentication<method*start>org.springframework.security.core.Authentication<method*end> authentication, Object<method*start>java.lang.Object<method*end> object, Collection<method*start>java.util.Collection<method*end><ConfigAttribute<method*start>org.sprin... |
public boolean onItemDelete(CommandSender sender, String itemKey) {
MageController controller = api.getController();
ItemData existing = controller.getItem(itemKey);
if (existing == null) {
sender.sendMessage(ChatColor.RED + "Unknown item: " + itemKey);
return true;
}
boolean hasPerm... | conventional | public boolean onItemDelete(CommandSender<method*start>org.bukkit.command.CommandSender<method*end> sender, String<method*start>java.lang.String<method*end> itemKey) {
MageController<method*start>com.elmakers.mine.bukkit.api.magic.MageController<method*end> controller = api.getController();
ItemData existing = ... |
private static void invokeServiceListenerCallback(Bundle bundle, final EventListener l, Filter filter, Object acc, final EventObject event, final Dictionary oldProps) {
if ((bundle.getState() != Bundle.STARTING) && (bundle.getState() != Bundle.STOPPING) && (bundle.getState() != Bundle.ACTIVE)) {
return... | conventional | private static void invokeServiceListenerCallback(Bundle<method*start>org.osgi.framework.Bundle<method*end> bundle, final EventListener<method*start>java.util.EventListener<method*end> l, Filter<method*start>org.osgi.framework.Filter<method*end> filter, Object<method*start>java.lang.Object<method*end> acc, final EventO... |
@Override
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
if (args.length == 0) {
sender.sendMessage(Colors.PRIMARY_SHADOW + "Server is running " + Colors.PRIMARY + "Holographic Displays " + Colors.PRIMARY_SHADOW + "v" + HolographicDisplays.getInstance().getDescrip... | annotation | @Override
public boolean onCommand(CommandSender<method*start>org.bukkit.command.CommandSender<method*end> sender, Command<method*start>org.bukkit.command.Command<method*end> cmd, String<method*start>java.lang.String<method*end> label, String<method*start>java.lang.String<method*end>[] args) {
if (args.length == 0)... |
@EventHandler(priority = EventPriority<method*start>org.bukkit.event.EventPriority<method*end>.MONITOR, ignoreCancelled = true)
public void partyJoin(PlayerJoinPartyEvent<method*start>tc.oc.pgm.events.PlayerJoinPartyEvent<method*end> event) {
if (event.getNewParty() instanceof MultiPlayerParty<method*start>tc.oc.pg... | annotation | @EventHandler(priority = EventPriority<method*start>org.bukkit.event.EventPriority<method*end>.MONITOR, ignoreCancelled = true)
public void partyJoin(PlayerJoinPartyEvent<method*start>tc.oc.pgm.events.PlayerJoinPartyEvent<method*end> event) {
if (event.getNewParty() instanceof MultiPlayerParty<method*start>tc.oc.pg... |
public static Map<method*start>java.util.Map<method*end><String<method*start>java.lang.String<method*end>, Object<method*start>java.lang.Object<method*end>> importDelimitedFile(DispatchContext<method*start>org.apache.ofbiz.service.DispatchContext<method*end> dctx, Map<method*start>java.util.Map<method*end><String<metho... | conventional | public static Map<method*start>java.util.Map<method*end><String<method*start>java.lang.String<method*end>, Object<method*start>java.lang.Object<method*end>> importDelimitedFile(DispatchContext<method*start>org.apache.ofbiz.service.DispatchContext<method*end> dctx, Map<method*start>java.util.Map<method*end><String<metho... |
@Nonnull
@Override
public RestAction<method*start>net.dv8tion.jda.api.requests.RestAction<method*end><Invite<method*start>net.dv8tion.jda.api.entities.Invite<method*end>> expand() {
if (this.expanded<method*start>net.dv8tion.jda.internal.entities.InviteImpl.expanded<method*end>)
return new CompletedRestActi... | annotation | @Nonnull
@Override
public RestAction<method*start>net.dv8tion.jda.api.requests.RestAction<method*end><Invite<method*start>net.dv8tion.jda.api.entities.Invite<method*end>> expand() {
if (this.expanded<method*start>net.dv8tion.jda.internal.entities.InviteImpl.expanded<method*end>)
return new CompletedRestActi... |
public boolean getIsEditable() {
boolean result = false;
try {
CmsObject<method*start>org.opencms.file.CmsObject<method*end> cms;
if (m_cms.getRequestContext<method*start>org.opencms.file.CmsObject.getRequestContext<method*end>().getCurrentProject().isOnlineProject()) {
... | conventional | public boolean getIsEditable() {
boolean result = false;
try {
CmsObject<method*start>org.opencms.file.CmsObject<method*end> cms;
if (m_cms.getRequestContext<method*start>org.opencms.file.CmsObject.getRequestContext<method*end>().getCurrentProject().isOnlineProject()) {
// we are in ... |
@io.swagger.v3.oas.annotations<method*start>io.swagger.v3.oas.annotations<method*end>.Operation(operationId = "com.manydesigns.portofino.resourceactions.AbstractResourceAction#describeOperations", description = "Returns the list of operations that can be invoked via REST on this resource. " + "If the user doesn't have ... | conventional | @io.swagger.v3.oas.annotations<method*start>io.swagger.v3.oas.annotations<method*end>.Operation(operationId = "com.manydesigns.portofino.resourceactions.AbstractResourceAction#describeOperations", description = "Returns the list of operations that can be invoked via REST on this resource. " + "If the user doesn't have ... |
private void checkAuthorization(String repoPath, HttpServletReques request) throws FileRepositoryException {
try {
if (FILE_REPOSITORY_PER_WORKSPACE) {
Topic fileTopic = fetchFileTopic(repoPath);
if (fileTopic != null) {
String username =... | conventional | private void checkAuthorization(String repoPath, HttpServletReques<method*start>java.lang.String<method*end>t request) throws FileReposit<method*start>javax.servlet.http.HttpServletRequest<method*end>oryException {
try {
if (FILE_REPOSITORY_PER_WORKSPACE) {
// We check authorization for the repo... |
@Override
public void onExecute(CommandSender<method*start>org.bukkit.command.CommandSender<method*end> sender, String<method*start>java.lang.String<method*end>[] args) {
if (args.length<method*start>java.lang.String[].length<method*end> == 3) {
Optional<method*start>java.util.Optional<method*end><Playe... | annotation | @Override
public void onExecute(CommandSender<method*start>org.bukkit.command.CommandSender<method*end> sender, String<method*start>java.lang.String<method*end>[] args) {
if (args.length<method*start>java.lang.String[].length<method*end> == 3) {
if (sender.hasPermission<method*start>org.bukkit.command.Comma... |
private void onMessage(GuildMessageReceivedEvent<method*start>net.dv8tion.jda.api.events.message.guild.GuildMessageReceivedEvent<method*end> event) {
if (event.getAuthor().isFake())
return;
// Moderation features
DBGuild<method*start>net.kodehawa.mantarobot.db.entities.DBGuild<method*end> dbGuild = ... | conventional | private void onMessage(GuildMessageReceivedEvent<method*start>net.dv8tion.jda.api.events.message.guild.GuildMessageReceivedEvent<method*end> event) {
if (event.getAuthor().isFake())
return;
// Moderation features
DBGuild<method*start>net.kodehawa.mantarobot.db.entities.DBGuild<method*end> dbGuild = ... |
private boolean hasAccess(final PFUserDO<method*start>org.projectforge.framework.persistence.user.entities.PFUserDO<method*end> user, final GanttChartDO obj, final GanttAccess<method*start>org.projectforge.business.gantt.GanttAccess<method*end> access) {
if (accessChecker<method*start>org.projectforge.business... | conventional | private boolean hasAccess(final PFUserDO<method*start>org.projectforge.framework.persistence.user.entities.PFUserDO<method*end> user, final GanttChartDO obj, final GanttAccess<method*start>org.projectforge.business.gantt.GanttAccess<method*end> access) {
if (accessChecker<method*start>org.projectforge.business.user... |
public static List<method*start>java.util.List<method*end><SecurityAccess<method*start>com.jaeksoft.searchlib.crawler.file.process.SecurityAccess<method*end>> getSecurity(FTPFile<method*start>org.apache.commons.net.ftp.FTPFile<method*end> ftpFile) {
List<method*start>java.util.List<method*end><SecurityAccess<method... | annotation | public static List<method*start>java.util.List<method*end><SecurityAccess<method*start>com.jaeksoft.searchlib.crawler.file.process.SecurityAccess<method*end>> getSecurity(FTPFile<method*start>org.apache.commons.net.ftp.FTPFile<method*end> ftpFile) {
List<method*start>java.util.List<method*end><SecurityAccess<method... |
protected void randomRead(Session testSession, List allPaths, int cnt) throws RepositoryException {
boolean logout = false;
if (testSession == null) {
testSession = getTestSession();
logout = true;
}
try {
List permissionNames = ImmutableList.copyOf(Permissions.PERMISSION_NAMES.v... | conventional | protected void randomRead(Session<method*start>javax.jcr.Session<method*end> testSession, List<method*start>java.util.List<method*end><String<method*start>java.lang.String<method*end>> allPaths, int cnt) throws RepositoryException<method*start>javax.jcr.RepositoryException<method*end> {
boolean logout = false;
... |
@Override<method*start>java.lang.Override<method*end>
public void route(final ImmutableMessage<method*start>joynr.ImmutableMessage<method*end> message) {
accessController.hasConsumerPermission<method*start>io.joynr.accesscontrol.AccessController.hasConsumerPermission<method*end>(message, new HasConsumerPermiss... | annotation | @Override<method*start>java.lang.Override<method*end>
public void route(final ImmutableMessage<method*start>joynr.ImmutableMessage<method*end> message) {
if (enableAccessControl<method*start>io.joynr.messaging.routing.CcMessageRouter.enableAccessControl<method*end>) {
accessController.hasConsumerPermission<... |
@Nonnull<method*start>javax.annotation.Nonnull<method*end>
@Override<method*start>java.lang.Override<method*end>
public MemberAction<method*start>net.dv8tion.jda.api.requests.restaction.MemberAction<method*end> addMember(@Nonnull<method*start>javax.annotation.Nonnull<method*end> String accessToken, @Nonnull<method*star... | annotation | @Nonnull<method*start>javax.annotation.Nonnull<method*end>
@Override<method*start>java.lang.Override<method*end>
public MemberAction<method*start>net.dv8tion.jda.api.requests.restaction.MemberAction<method*end> addMember(@Nonnull<method*start>javax.annotation.Nonnull<method*end> String accessToken, @Nonnull<method*star... |
protected void doFilter(HttpServletRequest request, HttpServletResponse response, FilterChain chain) throws IOException, ServletException {
Subject subject = SecurityUtils.getSubject();
try {
Repository repository = getRepository(request);
if (repository != null) {
boolean writeReque... | annotation | @Override<method*start>java.lang.Override<method*end>
protected void doFilter(HttpServletRequest<method*start>javax.servlet.http.HttpServletRequest<method*end> request, HttpServletResponse<method*start>javax.servlet.http.HttpServletResponse<method*end> response, FilterChain<method*start>javax.servlet.FilterChain<method... |
private void performWithPermissions(final FileAction<method*start>com.dropbox.core.examples.android.FilesActivity.FileAction<method*end> action) {
performAction(action);
return;
}
if (shouldDisplayRationaleForAction<method*start>com.dropbox.core.examples.android.FilesActivity.shouldDisplayRation... | conventional | private void performWithPermissions(final FileAction<method*start>com.dropbox.core.examples.android.FilesActivity.FileAction<method*end> action) {
if (hasPermissionsForAction<method*start>com.dropbox.core.examples.android.FilesActivity.hasPermissionsForAction<method*end>(action)) {
performAction(action);
... |
@Nonnull
@Override
public AuditableRestAction<method*start>net.dv8tion.jda.api.requests.restaction.AuditableRestAction<method*end><Void<method*start>java.lang.Void<method*end>> delete() {
if (getGuild<method*start>net.dv8tion.jda.internal.entities.EmoteImpl.getGuild<method*end>() == null)
throw new IllegalS... | annotation | @Nonnull
@Override
public AuditableRestAction<method*start>net.dv8tion.jda.api.requests.restaction.AuditableRestAction<method*end><Void<method*start>java.lang.Void<method*end>> delete() {
if (getGuild<method*start>net.dv8tion.jda.internal.entities.EmoteImpl.getGuild<method*end>() == null)
throw new IllegalS... |
public void configure(HttpSecurity<method*start>org.springframework.security.config.annotation.web.builders.HttpSecurity<method*end> http) throws Exception<method*start>java.lang.Exception<method*end> {
PassportSsoProperties<method*start>com.github.vole.passport.common.config.PassportSsoProperties<method*end> sso =... | conventional | public void configure(HttpSecurity<method*start>org.springframework.security.config.annotation.web.builders.HttpSecurity<method*end> http) throws Exception<method*start>java.lang.Exception<method*end> {
PassportSsoProperties<method*start>com.github.vole.passport.common.config.PassportSsoProperties<method*end> sso =... |
@Override
public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) {
switch(requestCode) {
case ALL_PERMISSIONS_RESULT:
for (String perms : permissionsToRequest) {
、 permissionsRejected.add(perms);
}
... | annotation | @TargetApi<method*start>android.annotation.TargetApi<method*end>(Build.VERSION_CODES.M<method*start>android.os.Build.VERSION_CODES.M<method*end>)
@Override<method*start>java.lang.Override<method*end>
public void onRequestPermissionsResult(int requestCode, String<method*start>java.lang.String<method*end>[] permissions, ... |
public static Map<java.util.Map<String, Object>> checkCopyPermission(DispatchContext ctx, Map<String, ?> context) {
boolean hasPermission = false;
GenericValue userLogin = (GenericValue) context.get("userLogin");
if (userLogin != null) {
String userLoginId = userLogin.getString("userLoginId");
... | conventional | public static Map<method*start>java.util.Map<method*end><String<method*start>java.lang.String<method*end>, Object<method*start>java.lang.Object<method*end>> checkCopyPermission(DispatchContext<method*start>org.apache.ofbiz.service.DispatchContext<method*end> ctx, Map<method*start>java.util.Map<method*end><String<method... |
private boolean isUserHasAllRealmUpdPermissionsForGroupLevels() {
boolean hasPermission = true;
this.realmItems<method*start>org.sakaiproject.signup.tool.jsf.SignupPermissionsUpdateBean.realmItems<method*end> = getCurrentSiteRealmItems();
/* One group in the site is the minimum requirement */
if (realmI... | conventional | private boolean isUserHasAllRealmUpdPermissionsForGroupLevels() {
boolean hasPermission = true;
this.realmItems<method*start>org.sakaiproject.signup.tool.jsf.SignupPermissionsUpdateBean.realmItems<method*end> = getCurrentSiteRealmItems();
/* One group in the site is the minimum requirement */
if (realmI... |
default boolean canAttachFiles(User user) {
Optional<PrivateChannel> privateChannel = asPrivateChannel();
return user.isYourself() || privateChannel.get().getRecipient() == user;
Optional<GroupChannel> groupChannel = asGroupChannel();
return user.isYourself() || groupChannel.get().getMe... | conventional | default boolean canAttachFiles(User<method*start>org.javacord.api.entity.user.User<method*end> user) {
Optional<method*start>java.util.Optional<method*end><PrivateChannel> privateChannel = asPrivateChannel();
if (privateChannel.isPresent()) {
return user.isYourself() || privateChannel.get().getRecipient... |
public int doStartTag() throws JspException {
initializeIfRequired();
if (domainObject == null) {
if (logger.isDebugEnabled()) {
logger.debug("domainObject resolved to null, so including tag body");
}
// Of course they have access to a null object!
return evalBod... | conventional | public int doStartTag() throws JspException<method*start>javax.servlet.jsp.JspException<method*end> {
if ((null == hasPermission<method*start>org.springframework.security.taglibs.authz.AccessControlListTag.hasPermission<method*end>) || "".equals<method*start>java.lang.String.equals<method*end>(hasPermission)) {
... |
public static void setDefault(TimeZone zone) {
synchronized (TimeZone.class) {
defaultTimeZone = zone;
setDefaultInAppContext(null);
}
} else {
setDefaultInAppContext(zone);
} | conventional | public static void setDefault(TimeZone<method*start>java.util.TimeZone<method*end> zone) {
if (hasPermission<method*start>java.util.TimeZone.hasPermission<method*end>()) {
synchronized (TimeZone<method*start>java.util.TimeZone<method*end>.class) {
defaultTimeZone<method*start>java.util.TimeZone.... |
@Override
public ItemStack<method*start>net.minecraft.item.ItemStack<method*end> slotClick(int slotId, int dragType, ClickType<method*start>net.minecraft.inventory.ClickType<method*end> clickTypeIn, EntityPlayer<method*start>net.minecraft.entity.player.EntityPlayer<method*end> player) {
ItemStack<method*start>net.m... | annotation | @Nullable<method*start>javax.annotation.Nullable<method*end>
@Override
public ItemStack<method*start>net.minecraft.item.ItemStack<method*end> slotClick(int slotId, int dragType, ClickType<method*start>net.minecraft.inventory.ClickType<method*end> clickTypeIn, EntityPlayer<method*start>net.minecraft.entity.player.Entity... |
public int doStartTag() throws JspException<method*start>javax.servlet.jsp.JspException<method*end> {
if ((null == hasPermission<method*start>org.springframework.security.taglibs.authz.AccessControlListTag.hasPermission<method*end>) || "".equals<method*start>java.lang.String.equals<method*end>(hasPermission)) {
... | conventional | public int doStartTag() throws JspException<method*start>javax.servlet.jsp.JspException<method*end> {
if ((null == hasPermission<method*start>org.springframework.security.taglibs.authz.AccessControlListTag.hasPermission<method*end>) || "".equals<method*start>java.lang.String.equals<method*end>(hasPermission)) {
... |
@Override
public void setMyLocationEnabled(boolean myLocation) throws RemoteException<method*start>android.os.RemoteException<method*end> {
Log.w<method*start>android.util.Log.w<method*end>(TAG, "MyLocation not yet supported");
boolean hasPermission = ContextCompat.checkSelfPermission<method*start>android.suppo... | annotation | @Override
public void setMyLocationEnabled(boolean myLocation) throws RemoteException<method*start>android.os.RemoteException<method*end> {
Log.w<method*start>android.util.Log.w<method*end>(TAG, "MyLocation not yet supported");
boolean hasPermission = ContextCompat.checkSelfPermission<method*start>android.suppo... |
@TargetApi<method*start>android.annotation.TargetApi<method*end>(Build.VERSION_CODES.N<method*start>android.os.Build.VERSION_CODES.N<method*end>)
private static boolean isConnected(Context<method*start>android.content.Context<method*end> context) {
try {
int hasPermission = context.checkCallingOrSelfPermiss... | annotation | @TargetApi<method*start>android.annotation.TargetApi<method*end>(Build.VERSION_CODES.N<method*start>android.os.Build.VERSION_CODES.N<method*end>)
private static boolean isConnected(Context<method*start>android.content.Context<method*end> context) {
try {
int hasPermission = context.checkCallingOrSelfPermiss... |
@CloseDBIfOpened
List<method*start>java.util.List<method*end><WorkflowAction<method*start>com.dotmarketing.portlets.workflows.model.WorkflowAction<method*end>> filterBulkActions(final List<method*start>java.util.List<method*end><WorkflowAction<method*start>com.dotmarketing.portlets.workflows.model.WorkflowAction<method... | annotation | @CloseDBIfOpened
List<method*start>java.util.List<method*end><WorkflowAction<method*start>com.dotmarketing.portlets.workflows.model.WorkflowAction<method*end>> filterBulkActions(final List<method*start>java.util.List<method*end><WorkflowAction<method*start>com.dotmarketing.portlets.workflows.model.WorkflowAction<method... |
public static Map<method*start>java.util.Map<method*end><String<method*start>java.lang.String<method*end>, Object<method*start>java.lang.Object<method*end>> entityMaintPermCheck(DispatchContext<method*start>org.apache.ofbiz.service.DispatchContext<method*end> dctx, Map<method*start>java.util.Map<method*end><String<meth... | conventional | public static Map<method*start>java.util.Map<method*end><String<method*start>java.lang.String<method*end>, Object<method*start>java.lang.Object<method*end>> entityMaintPermCheck(DispatchContext<method*start>org.apache.ofbiz.service.DispatchContext<method*end> dctx, Map<method*start>java.util.Map<method*end><String<meth... |
private static boolean hasCachePermission() {
try {
SecurityManager security = System.getSecurityManager();
File cachedir = getCacheDirectory();
String cachepath;
if (cachedir != null) {
cachepath = cachedir.getPath();
... | conventional | private static boolean hasCachePermission() {
Boolean<method*start>java.lang.Boolean<method*end> hasPermission = getCacheInfo().getHasPermission<method*start>javax.imageio.ImageIO.CacheInfo.getHasPermission<method*end>();
if (hasPermission != null) {
return hasPermission.booleanValue<method*start>java.l... |
@EventHandler
public void onJoin(PlayerJoinEvent event) {
event.getPlayer().sendMessage(ChestCommands.CHAT_PREFIX + ChatColor.RED + "The plugin found " + ChestCommands.getLastReloadErrors() + " error(s) last time it was loaded. You can see them by doing \"/cc reload\" in the console.");
}
... | annotation | @EventHandler
public void onJoin(PlayerJoinEvent<method*start>org.bukkit.event.player.PlayerJoinEvent<method*end> event) {
if (ChestCommands<method*start>com.gmail.filoghost.chestcommands.ChestCommands<method*end>.getLastReloadErrors() > 0 && event.getPlayer().hasPermission(Permissions.SEE_ERRORS)) {
event.... |
@HiveWebsocketAuth
@SuppressWarnings<method*start>java.lang.SuppressWarnings<method*end>("unchecked")
public void processSubscribeList(JsonObject<method*start>com.google.gson.JsonObject<method*end> request, WebSocketSession<method*start>org.springframework.web.socket.WebSocketSession<method*end> session) {
final H... | annotation | @HiveWebsocketAuth
@PreAuthorize<method*start>org.springframework.security.access.prepost.PreAuthorize<method*end>("isAuthenticated() and (hasPermission(null, 'GET_DEVICE_COMMAND')" + " or hasPermission(null, 'GET_DEVICE_NOTIFICATION'))")
@SuppressWarnings<method*start>java.lang.SuppressWarnings<method*end>("unchecked"... |
@Override
public void onReceive(Context context, Intent intent) {
if (null == this.listener || null == context) {
return;
}
int hasPermission = ActivityCompat.checkSelfPermission(context, Manifest.permission.ACCESS_NETWORK_STATE);
ConnectivityManager cm = (ConnectivityManager) context.getSy... | annotation | @Override<method*start>java.lang.Override<method*end>
public void onReceive(Context<method*start>android.content.Context<method*end> context, Intent<method*start>android.content.Intent<method*end> intent) {
if (null == this.listener<method*start>cn.leancloud.push.AVConnectivityReceiver.listener<method*end> || null ... |
public String getSourceFileContent() {
File sourceFile = getSourceFile();
if (sourceFile == null) {
return null;
}
try {
return new TextFile(sourceFile).read();
} catch (IOException e) {
return null;
}
} | conventional | public String<method*start>java.lang.String<method*end> getSourceFileContent() {
if (!hasPermission<method*start>io.jenkins.plugins.coverage.targets.CoverageResult.hasPermission<method*end>()) {
return null;
}
File<method*start>java.io.File<method*end> sourceFile = getSourceFile();
if (sourceFil... |
@EventHandler
public void handle(PlayerLoginEvent event) {
SyncProxyProxyLoginConfiguration syncProxyProxyLoginConfiguration = ProxProxCloudNetSyncProxyPlugin.getInstance().getProxyLoginConfiguration();
if (syncProxyProxyLoginConfiguration != null) {
if (syncProxyProxyLoginConfiguration.isMaintenance() ... | annotation | @EventHandler
public void handle(PlayerLoginEvent<method*start>io.gomint.proxprox.api.event.PlayerLoginEvent<method*end> event) {
SyncProxyProxyLoginConfiguration<method*start>de.dytanic.cloudnet.ext.syncproxy.SyncProxyProxyLoginConfiguration<method*end> syncProxyProxyLoginConfiguration = ProxProxCloudNetSyncProxyP... |
@Override<method*start>java.lang.Override<method*end>
public boolean isComponentAuthorized(Component<method*start>org.apache.wicket.Component<method*end> component, WaspAction<method*start>org.wicketstuff.security.actions.WaspAction<method*end> action) {
IAuthorizationMessageSource<method*start>org.wicketstuff... | annotation | @Override<method*start>java.lang.Override<method*end>
public boolean isComponentAuthorized(Component<method*start>org.apache.wicket.Component<method*end> component, WaspAction<method*start>org.wicketstuff.security.actions.WaspAction<method*end> action) {
if (hasPermission<method*start>org.wicketstuff.security.swarm... |
public static BigDecimal addToInitiative(boolean allowDuplicates, String state, Token token) throws ParserException {
InitiativeList list = token.getZoneRenderer().getZone().getInitiativeList();
TokenInitiative ti = null;
if (allowDuplicates || list.indexOf(token).isEmpty()) {
ti = list.insertToken(... | conventional | public static BigDecimal<method*start>java.math.BigDecimal<method*end> addToInitiative(boolean allowDuplicates, String<method*start>java.lang.String<method*end> state, Token<method*start>net.rptools.maptool.model.Token<method*end> token) throws ParserException<method*start>net.rptools.parser.ParserException<method*end>... |
@Override
public List<method*start>java.util.List<method*end><ContentType<method*start>com.dotcms.contenttype.model.type.ContentType<method*end>> getContentTypesInContainer(final User<method*start>com.liferay.portal.model.User<method*end> user, final Container<method*start>com.dotmarketing.portlets.containers.model.Con... | annotation | @CloseDBIfOpened
@Override
public List<method*start>java.util.List<method*end><ContentType<method*start>com.dotcms.contenttype.model.type.ContentType<method*end>> getContentTypesInContainer(final User<method*start>com.liferay.portal.model.User<method*end> user, final Container<method*start>com.dotmarketing.portlets.con... |
public Set<method*start>java.util.Set<method*end><IPersonAttributesGroupDefinition<method*start>org.apereo.portal.groups.pags.dao.IPersonAttributesGroupDefinition<method*end>> getPagsDefinitions(IPerson<method*start>org.apereo.portal.security.IPerson<method*end> person) {
Set<method*start>java.util.Set<method*end><... | conventional | public Set<method*start>java.util.Set<method*end><IPersonAttributesGroupDefinition<method*start>org.apereo.portal.groups.pags.dao.IPersonAttributesGroupDefinition<method*end>> getPagsDefinitions(IPerson<method*start>org.apereo.portal.security.IPerson<method*end> person) {
Set<method*start>java.util.Set<method*end><... |
@Override
public void onNewIntent(Intent intent) {
if (intent.getAction() == null) {
return;
}
if (intent.getAction().equals(ACTION_SHOW_NOW_PLAYING_PAGE)) {
expandBottomSheet();
mBinding.libraryDrawerLayout.closeDrawers();
// Don't try to process this intent again
se... | annotation | @Override
public void onNewIntent(Intent<method*start>android.content.Intent<method*end> intent) {
if (intent.getAction<method*start>android.content.Intent.getAction<method*end>() == null) {
return;
}
if (intent.getAction<method*start>android.content.Intent.getAction<method*end>().equals<method*star... |
@Override
public Grid<method*start>org.hisp.dhis.common.Grid<method*end> getVisualizationGridByUser(final String<method*start>java.lang.String<method*end> uid, final Date<method*start>java.util.Date<method*end> relativePeriodDate, final String<method*start>java.lang.String<method*end> organisationUnitUid, final User<me... | annotation | @Override<method*start>java.lang.Override<method*end>
@Transactional<method*start>org.springframework.transaction.annotation.Transactional<method*end>(readOnly<method*start>org.springframework.transaction.annotation.Transactional.readOnly<method*end> = true)
public Grid<method*start>org.hisp.dhis.common.Grid<method*end... |
public static void askForPermission(Activity<method*start>android.app.Activity<method*end> activity, String<method*start>java.lang.String<method*end>[] permissions, PermissionCallback<method*start>com.ldt.musicr.permission.PermissionCallback<method*end> permissionCallback) {
permissionCallback.permissionGr... | conventional | public static void askForPermission(Activity<method*start>android.app.Activity<method*end> activity, String<method*start>java.lang.String<method*end>[] permissions, PermissionCallback<method*start>com.ldt.musicr.permission.PermissionCallback<method*end> permissionCallback) {
if (permissionCallback == null) {
... |
@GetMapping<method*start>org.springframework.web.bind.annotation.GetMapping<method*end>()
@Override<method*start>java.lang.Override<method*end>
public List<method*start>java.util.List<method*end><DashboardType<method*start>com.qaprosoft.zafira.models.dto.DashboardType<method*end>> getAllDashboards(@RequestParam<method*... | annotation | @GetMapping<method*start>org.springframework.web.bind.annotation.GetMapping<method*end>()
@Override<method*start>java.lang.Override<method*end>
public List<method*start>java.util.List<method*end><DashboardType<method*start>com.qaprosoft.zafira.models.dto.DashboardType<method*end>> getAllDashboards(@RequestParam<method*... |
@Override
public ProcessRest<method*start>org.dspace.app.rest.model.ProcessRest<method*end> findOne(Context<method*start>org.dspace.core.Context<method*end> context, Integer<method*start>java.lang.Integer<method*end> id) {
try {
Process<method*start>org.dspace.scripts.Process<method*end> process = processS... | annotation | @Override<method*start>java.lang.Override<method*end>
@PreAuthorize<method*start>org.springframework.security.access.prepost.PreAuthorize<method*end>("hasPermission(#id, 'PROCESS', 'READ')")
public ProcessRest<method*start>org.dspace.app.rest.model.ProcessRest<method*end> findOne(Context<method*start>org.dspace.core.Co... |
@Override
public void messageOnServerThread(final HutRenameMessage<method*start>com.minecolonies.coremod.network.messages.HutRenameMessage<method*end> message, final EntityPlayerMP<method*start>net.minecraft.entity.player.EntityPlayerMP<method*end> player) {
final IColony<method*start>com.minecolonies.api.colony.IC... | annotation | @Override
public void messageOnServerThread(final HutRenameMessage<method*start>com.minecolonies.coremod.network.messages.HutRenameMessage<method*end> message, final EntityPlayerMP<method*start>net.minecraft.entity.player.EntityPlayerMP<method*end> player) {
final IColony<method*start>com.minecolonies.api.colony.IC... |
public BundleRest<method*start>org.dspace.app.rest.model.BundleRest<method*end> findOne(Context<method*start>org.dspace.core.Context<method*end> context, UUID<method*start>java.util.UUID<method*end> uuid) {
Bundle<method*start>org.dspace.content.Bundle<method*end> bundle = null;
try {
bundle = bundleSe... | annotation | @PreAuthorize<method*start>org.springframework.security.access.prepost.PreAuthorize<method*end>("hasPermission(#uuid, 'BUNDLE', 'READ')")
public BundleRest<method*start>org.dspace.app.rest.model.BundleRest<method*end> findOne(Context<method*start>org.dspace.core.Context<method*end> context, UUID<method*start>java.util.... |
@HiveWebsocketAuth
public void processUserAllowAllDeviceTypes(JsonObject<method*start>com.google.gson.JsonObject<method*end> request, WebSocketSession<method*start>org.springframework.web.socket.WebSocketSession<method*end> session) {
Long<method*start>java.lang.Long<method*end> userId = gson.fromJson<method*start... | annotation | @HiveWebsocketAuth
@PreAuthorize<method*start>org.springframework.security.access.prepost.PreAuthorize<method*end>("isAuthenticated() and hasPermission(null, 'MANAGE_DEVICE_TYPE')")
public void processUserAllowAllDeviceTypes(JsonObject<method*start>com.google.gson.JsonObject<method*end> request, WebSocketSession<method... |
@Override
public void messageOnServerThread(final BuildingHiringModeMessage<method*start>com.minecolonies.coremod.network.messages.BuildingHiringModeMessage<method*end> message, final EntityPlayerMP<method*start>net.minecraft.entity.player.EntityPlayerMP<method*end> player) {
final IColony<method*start>com.minecolo... | annotation | @Override
public void messageOnServerThread(final BuildingHiringModeMessage<method*start>com.minecolonies.coremod.network.messages.BuildingHiringModeMessage<method*end> message, final EntityPlayerMP<method*start>net.minecraft.entity.player.EntityPlayerMP<method*end> player) {
final IColony<method*start>com.minecolo... |
private GraphNode<method*start>org.apache.clerezza.rdf.utils.GraphNode<method*end> addPermission(GraphNode<method*start>org.apache.clerezza.rdf.utils.GraphNode<method*end> subjectNode, String<method*start>java.lang.String<method*end> permissionString) {
GraphNode<method*start>org.apache.clerezza.rdf.utils.Grap... | conventional | private GraphNode<method*start>org.apache.clerezza.rdf.utils.GraphNode<method*end> addPermission(GraphNode<method*start>org.apache.clerezza.rdf.utils.GraphNode<method*end> subjectNode, String<method*start>java.lang.String<method*end> permissionString) {
if (hasPermission<method*start>org.apache.stanbol.commons.user... |
@Override<method*start>java.lang.Override<method*end>
public ClaimedTaskRest<method*start>org.dspace.app.rest.model.ClaimedTaskRest<method*end> findOne(Context<method*start>org.dspace.core.Context<method*end> context, Integer<method*start>java.lang.Integer<method*end> id) {
ClaimedTask<method*start>org.dspace.xmlw... | annotation | @Override<method*start>java.lang.Override<method*end>
@PreAuthorize<method*start>org.springframework.security.access.prepost.PreAuthorize<method*end>("hasPermission(#id, 'CLAIMEDTASK', 'READ')")
public ClaimedTaskRest<method*start>org.dspace.app.rest.model.ClaimedTaskRest<method*end> findOne(Context<method*start>org.ds... |
public Map<method*start>java.util.Map<method*end><String<method*start>java.lang.String<method*end>, Object<method*start>java.lang.Object<method*end>> evalPermission(DispatchContext<method*start>org.apache.ofbiz.service.DispatchContext<method*end> dctx, Map<method*start>java.util.Map<method*end><String<method*start>java... | conventional | public Map<method*start>java.util.Map<method*end><String<method*start>java.lang.String<method*end>, Object<method*start>java.lang.Object<method*end>> evalPermission(DispatchContext<method*start>org.apache.ofbiz.service.DispatchContext<method*end> dctx, Map<method*start>java.util.Map<method*end><String<method*start>java... |
@Nonnull<method*start>javax.annotation.Nonnull<method*end>
@Override<method*start>java.lang.Override<method*end>
public PermissionOverrideAction<method*start>net.dv8tion.jda.api.requests.restaction.PermissionOverrideAction<method*end> getManager() {
throw new InsufficientPermissionException(getChannel(), Permis... | annotation | @Nonnull<method*start>javax.annotation.Nonnull<method*end>
@Override<method*start>java.lang.Override<method*end>
public PermissionOverrideAction<method*start>net.dv8tion.jda.api.requests.restaction.PermissionOverrideAction<method*end> getManager() {
if (!getGuild<method*start>net.dv8tion.jda.internal.entities.Permi... |
@EventHandler
public void giveKit(final ObserverKitApplyEvent<method*start>tc.oc.commons.bukkit.event.ObserverKitApplyEvent<method*end> event) {
ItemStack<method*start>org.bukkit.inventory.ItemStack<method*end> item = new ItemStack<method*start>org.bukkit.inventory.ItemStack<method*end>(Material<method*start>o... | annotation | @EventHandler
public void giveKit(final ObserverKitApplyEvent<method*start>tc.oc.commons.bukkit.event.ObserverKitApplyEvent<method*end> event) {
if (event.getPlayer().hasPermission(Freeze.PERMISSION)) {
ItemStack<method*start>org.bukkit.inventory.ItemStack<method*end> item = new ItemStack<method*start>org.b... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.