id stringlengths 7 14 | text stringlengths 1 106k |
|---|---|
3130403_0 | public static String relUrlForNaviLink(NaviLink naviLink, boolean withVersion) {
String uiParam = null;
if (naviLink instanceof NaviLinkImpl) {
Map<String, Object> uiParams = ((NaviLinkImpl)naviLink).getParams();
uiParam = PmJsfUtil.URL_PARAM_CODER.mapToParamValue(uiParams);
}
String url = NaviJsfUtil.m... |
3130403_1 | @Override
public final QueryParams getQueryParams() {
return queryParams;
} |
3130403_2 | @Override
public final QueryParams getQueryParams() {
return queryParams;
} |
3130403_3 | @Override
public final QueryParams getQueryParams() {
return queryParams;
} |
3130403_4 | @Override
public Selection<T_ITEM> getSelection() {
return getSelectionHandler().getSelection();
} |
3130403_5 | @Override
public Selection<T_ITEM> getSelection() {
return getSelectionHandler().getSelection();
} |
3130403_6 | @Override
public Selection<T_ITEM> getSelection() {
return getSelectionHandler().getSelection();
} |
3130403_7 | @Override
public Selection<T_ITEM> getSelection() {
return getSelectionHandler().getSelection();
} |
3130403_8 | @Override
public Selection<T_ITEM> getSelection() {
return getSelectionHandler().getSelection();
} |
3130403_9 | @Override
public Selection<T_ITEM> getSelection() {
return getSelectionHandler().getSelection();
} |
3139136_0 | public static Map<String, PropertyDescriptor>
getAllProperties(GenericType root)
throws IntrospectionException {
Map<String, PropertyDescriptor> properties =
cPropertiesCache.get(root);
if (properties == null) {
GenericType rootType = root.getRootType();
if (rootType == null) {
... |
3139136_1 | public static Map<String, PropertyDescriptor>
getAllProperties(GenericType root)
throws IntrospectionException {
Map<String, PropertyDescriptor> properties =
cPropertiesCache.get(root);
if (properties == null) {
GenericType rootType = root.getRootType();
if (rootType == null) {
... |
3139136_2 | public String dump(Object object) {
return dump(object, true, true);
} |
3139136_3 | public static DefaultResourceFactory getInstance() {
return INSTANCE;
} |
3139136_4 | @Override
public PropertyMap getResourceAsProperties(String path)
throws IOException {
return getResourceAsProperties(path, this.substitutions);
} |
3139136_5 | public static BeanPropertyAccessor forClass(Class<?> clazz) {
synchronized (cAccessors) {
BeanPropertyAccessor bpa = cAccessors.get(clazz);
if (bpa != null) {
return bpa;
}
bpa = generate(clazz);
cAccessors.put(clazz, bpa);
return bpa;
}
} |
3139136_6 | public abstract Object getPropertyValue(Object bean, String property)
; |
3139136_7 | public abstract void setPropertyValue(Object bean, String property,
Object value)
; |
3139136_8 | public static Constructor<?> getConstructor2(ClassInjector injector,
Class<?>[] classes)
throws IllegalArgumentException
{
return getConstructor2(injector, classes, null, null, OBSERVER_DISABLED);
} |
3139136_9 | public static Constructor<?> getConstructor(ClassInjector injector,
Class<?>[] classes)
throws IllegalArgumentException
{
return getConstructor(injector, classes, null, null, OBSERVER_DISABLED);
} |
314299_10 | public ExtensionModel getExtensionModel( String extension )
{
return extensionModels.get( extension );
} |
314299_11 | public String getId()
{
return "my-plugin";
} |
314299_12 | public List<String> getKeys()
{
return Arrays.asList( "link" );
} |
314299_13 | public Map<String, String> getValuesAsMap()
{
Map<String, String> values = new HashMap<String, String>();
values.put( "link", link );
return values;
} |
314299_14 | public String getTitle( Project project )
{
return "Links";
} |
314299_15 | public String getId()
{
return "my-plugin";
} |
314299_16 | public MyModel getModel( Project project )
{
MyModel extensionModel = (MyModel) project.getExtensionModel( getId() );
if ( extensionModel == null )
{
extensionModel = new MyModel();
project.addExtensionModel( extensionModel );
}
return extensionModel;
} |
314299_17 | public List<PanelItem> getItems( Project project )
{
PanelItem item = new PanelItem( "My Link", getModel( project ).getLink() );
return Arrays.asList( item );
} |
314299_18 | public List<PanelItem> getItems( Project project )
{
PanelItem item = new PanelItem( "My Link", getModel( project ).getLink() );
return Arrays.asList( item );
} |
314299_27 | public String getTitle( Project project )
{
return "Archiva Search Results";
} |
314299_28 | public String getTitle( Project project )
{
return "Continuum Build Results";
} |
314299_29 | public String getId()
{
return "continuum-builds";
} |
314299_30 | public ContinuumModel getModel( Project project )
{
ContinuumModel extensionModel = (ContinuumModel) project.getExtensionModel( getId() );
if ( extensionModel == null )
{
extensionModel = new ContinuumModel();
project.addExtensionModel( extensionModel );
}
return extensionModel;
} |
314299_31 | public String getId()
{
return "continuum-builds";
} |
314299_32 | public List<String> getKeys()
{
return Arrays.asList( "projectId" );
} |
314299_33 | public Map<String, String> getValuesAsMap()
{
Map<String, String> values = new HashMap<String, String>();
values.put( "projectId", projectId != null ? Integer.toString( projectId ) : null );
return values;
} |
314299_34 | public void setValuesFromMap( Map<String, String> values )
{
String value = values.get( "projectId" );
this.projectId = value != null ? Integer.valueOf( value ) : null;
} |
3149437_0 | @Override
public Authentication authenticate(Authentication authentication)
throws AuthenticationException {
KerberosServiceRequestToken auth = (KerberosServiceRequestToken) authentication;
byte[] token = auth.getToken();
LOG.debug("Try to validate Kerberos Token");
KerberosTicketValidation ticketValidation = thi... |
3149437_1 | @Override
public Authentication authenticate(Authentication authentication)
throws AuthenticationException {
KerberosServiceRequestToken auth = (KerberosServiceRequestToken) authentication;
byte[] token = auth.getToken();
LOG.debug("Try to validate Kerberos Token");
KerberosTicketValidation ticketValidation = thi... |
3149437_2 | @Override
public Authentication authenticate(Authentication authentication) throws AuthenticationException {
ernamePasswordAuthenticationToken auth = (UsernamePasswordAuthenticationToken) authentication;
asSubjectHolder subjectHolder = kerberosClient.login(auth.getName(), auth.getCredentials().toString());
erDetails us... |
3149449_0 | @Override
public boolean isAuthenticated() {
if (tokenExpiration != null && new Date().compareTo(tokenExpiration) >= 0) {
return false;
} else {
return super.isAuthenticated();
}
} |
3149449_1 | @Override
public boolean isAuthenticated() {
if (tokenExpiration != null && new Date().compareTo(tokenExpiration) >= 0) {
return false;
} else {
return super.isAuthenticated();
}
} |
3149449_2 | @Override
public boolean isAuthenticated() {
if (tokenExpiration != null && new Date().compareTo(tokenExpiration) >= 0) {
return false;
} else {
return super.isAuthenticated();
}
} |
3149449_3 | @Override
public boolean isAuthenticated() {
if (tokenExpiration != null && new Date().compareTo(tokenExpiration) >= 0) {
return false;
} else {
return super.isAuthenticated();
}
} |
3149449_4 | public Authentication authenticate(Authentication authentication) throws AuthenticationException {
if (!supports(authentication.getClass())) {
throw new IllegalArgumentException("Only SAMLAuthenticationToken is supported, " + authentication.getClass() + " was attempted");
}
SAMLAuthenticationToken t... |
3149449_5 | public Authentication authenticate(Authentication authentication) throws AuthenticationException {
if (!supports(authentication.getClass())) {
throw new IllegalArgumentException("Only SAMLAuthenticationToken is supported, " + authentication.getClass() + " was attempted");
}
SAMLAuthenticationToken t... |
3149449_6 | public Authentication authenticate(Authentication authentication) throws AuthenticationException {
if (!supports(authentication.getClass())) {
throw new IllegalArgumentException("Only SAMLAuthenticationToken is supported, " + authentication.getClass() + " was attempted");
}
SAMLAuthenticationToken t... |
3149449_7 | protected boolean processFilter(HttpServletRequest request) {
return SAMLUtil.processFilter(filterProcessesUrl, request);
} |
3149449_8 | protected boolean processFilter(HttpServletRequest request) {
return SAMLUtil.processFilter(filterProcessesUrl, request);
} |
3149449_9 | public void commence(HttpServletRequest request, HttpServletResponse response, AuthenticationException e) throws IOException, ServletException {
try {
SAMLMessageContext context = contextProvider.getLocalAndPeerEntity(request, response);
if (isECP(context)) {
initializeECP(context, e);
... |
315033_10 | protected OpState getActualStateAfterTransition(OpState oldOpState, OpState currentOpState) {
if (oldOpState == null) {
if (currentOpState == null) {
return null;
}
else {
switch (currentOpState) {
case UPDATE:
case DELETE:
throw new IllegalStateException("Can not upd... |
315033_11 | protected OpState getActualStateAfterTransition(OpState oldOpState, OpState currentOpState) {
if (oldOpState == null) {
if (currentOpState == null) {
return null;
}
else {
switch (currentOpState) {
case UPDATE:
case DELETE:
throw new IllegalStateException("Can not upd... |
315033_12 | protected OpState getActualStateAfterTransition(OpState oldOpState, OpState currentOpState) {
if (oldOpState == null) {
if (currentOpState == null) {
return null;
}
else {
switch (currentOpState) {
case UPDATE:
case DELETE:
throw new IllegalStateException("Can not upd... |
315033_13 | protected OpState getActualStateAfterTransition(OpState oldOpState, OpState currentOpState) {
if (oldOpState == null) {
if (currentOpState == null) {
return null;
}
else {
switch (currentOpState) {
case UPDATE:
case DELETE:
throw new IllegalStateException("Can not upd... |
315033_14 | protected OpState getActualStateAfterTransition(OpState oldOpState, OpState currentOpState) {
if (oldOpState == null) {
if (currentOpState == null) {
return null;
}
else {
switch (currentOpState) {
case UPDATE:
case DELETE:
throw new IllegalStateException("Can not upd... |
315033_15 | protected OpState getActualStateAfterTransition(OpState oldOpState, OpState currentOpState) {
if (oldOpState == null) {
if (currentOpState == null) {
return null;
}
else {
switch (currentOpState) {
case UPDATE:
case DELETE:
throw new IllegalStateException("Can not upd... |
315033_16 | protected <T extends AbstractRepositoryDomain> void populateCache(TransactionElement<T> element,
OpState currentOpState) {
fillCacheIfNeeded(element);
int nextOpIndex = getNextOpsIndex(element.getTxId());
TransactionStoreKey key = factory.createTra... |
315033_17 | protected <T extends AbstractRepositoryDomain> void populateCache(TransactionElement<T> element,
OpState currentOpState) {
fillCacheIfNeeded(element);
int nextOpIndex = getNextOpsIndex(element.getTxId());
TransactionStoreKey key = factory.createTra... |
315033_18 | protected <T extends AbstractRepositoryDomain> void populateCache(TransactionElement<T> element,
OpState currentOpState) {
fillCacheIfNeeded(element);
int nextOpIndex = getNextOpsIndex(element.getTxId());
TransactionStoreKey key = factory.createTra... |
315033_19 | public <T extends AbstractRepositoryDomain> void update(TransactionElement<T> element) {
populateCache(element, OpState.UPDATE);
} |
315033_20 | public <T extends AbstractRepositoryDomain> void delete(TransactionElement<T> element) {
populateCache(element, OpState.DELETE);
} |
315033_21 | public <T extends AbstractRepositoryDomain> void save(TransactionElement<T> element) {
String id = (String) element.getDto().getId();
if (id == null) {
id = UUID.randomUUID().toString();
element.getDto().setId(id);
}
populateCache(element, OpState.SAVE);
} |
315033_22 | public <T extends AbstractRepositoryDomain> void save(TransactionElement<T> element) {
String id = (String) element.getDto().getId();
if (id == null) {
id = UUID.randomUUID().toString();
element.getDto().setId(id);
}
populateCache(element, OpState.SAVE);
} |
315033_23 | public void rollback(String txId) {
completeTx(txId);
} |
315033_24 | public void commit(String txId) {
if (StringUtils.isBlank(txId)) {
return;
}
List<Pair<TransactionStoreKey, TransactionStoreValue>> list = memCache.getTransactionParticipants(txId);
if (list == null || list.isEmpty()) {
return;
}
//Sort
Collections.sort(list, new Comparator<Pair<TransactionStoreKe... |
315033_25 | public void commit(String txId) {
if (StringUtils.isBlank(txId)) {
return;
}
List<Pair<TransactionStoreKey, TransactionStoreValue>> list = memCache.getTransactionParticipants(txId);
if (list == null || list.isEmpty()) {
return;
}
//Sort
Collections.sort(list, new Comparator<Pair<TransactionStoreKe... |
315033_26 | public void commit(String txId) {
if (StringUtils.isBlank(txId)) {
return;
}
List<Pair<TransactionStoreKey, TransactionStoreValue>> list = memCache.getTransactionParticipants(txId);
if (list == null || list.isEmpty()) {
return;
}
//Sort
Collections.sort(list, new Comparator<Pair<TransactionStoreKe... |
315033_27 | @Override
public int hashCode() {
int hash = 7;
hash = 47 * hash + (this.id != null ? this.id.hashCode() : 0);
return hash;
} |
315033_28 | public void commit() throws TransactionException {
boolean successful = false;
try {
this.service.commit(id);
successful = true;
}
catch (RuntimeException ex) {
throw ex;
}
finally {
completeTransaction(TransactionCompletionEvent.CompletionEvent.COMMIT, successful);
}
} |
315033_29 | public void commit() throws TransactionException {
boolean successful = false;
try {
this.service.commit(id);
successful = true;
}
catch (RuntimeException ex) {
throw ex;
}
finally {
completeTransaction(TransactionCompletionEvent.CompletionEvent.COMMIT, successful);
}
} |
315033_30 | public void rollback() throws TransactionException {
boolean successful = false;
try {
this.service.rollback(id);
successful = true;
}
catch (RuntimeException re) {
throw re;
}
finally {
completeTransaction(TransactionCompletionEvent.CompletionEvent.ROLLBACK, successful);
}
} |
315033_31 | public void rollback() throws TransactionException {
boolean successful = false;
try {
this.service.rollback(id);
successful = true;
}
catch (RuntimeException re) {
throw re;
}
finally {
completeTransaction(TransactionCompletionEvent.CompletionEvent.ROLLBACK, successful);
}
} |
315033_32 | public Transaction getCurrentTransaction() {
Deque<Transaction> stack = transactions.get();
if (stack != null) {
return stack.peek();
}
else {
return null;
}
} |
315033_33 | public Transaction beginTransaction() {
return beginTransaction(true);
} |
315033_34 | public Object invoke(MethodInvocation invocation) throws Throwable {
final Method method = invocation.getMethod();
if(method == null) {
return null;
}
Transactional txa = method.getAnnotation(Transactional.class);
if (txa == null) {
return invocation.proceed();
}
Transaction tx = manager.getCurren... |
315033_35 | public Object invoke(MethodInvocation invocation) throws Throwable {
final Method method = invocation.getMethod();
if(method == null) {
return null;
}
Transactional txa = method.getAnnotation(Transactional.class);
if (txa == null) {
return invocation.proceed();
}
Transaction tx = manager.getCurren... |
315033_36 | public Object invoke(MethodInvocation invocation) throws Throwable {
final Method method = invocation.getMethod();
if(method == null) {
return null;
}
Transactional txa = method.getAnnotation(Transactional.class);
if (txa == null) {
return invocation.proceed();
}
Transaction tx = manager.getCurren... |
315033_37 | public Object invoke(MethodInvocation invocation) throws Throwable {
final Method method = invocation.getMethod();
if(method == null) {
return null;
}
Transactional txa = method.getAnnotation(Transactional.class);
if (txa == null) {
return invocation.proceed();
}
Transaction tx = manager.getCurren... |
315033_38 | public Object invoke(MethodInvocation invocation) throws Throwable {
final Method method = invocation.getMethod();
if(method == null) {
return null;
}
Transactional txa = method.getAnnotation(Transactional.class);
if (txa == null) {
return invocation.proceed();
}
Transaction tx = manager.getCurren... |
315033_39 | public Object invoke(MethodInvocation invocation) throws Throwable {
final Method method = invocation.getMethod();
if(method == null) {
return null;
}
Transactional txa = method.getAnnotation(Transactional.class);
if (txa == null) {
return invocation.proceed();
}
Transaction tx = manager.getCurren... |
315033_40 | public Object invoke(MethodInvocation invocation) throws Throwable {
final Method method = invocation.getMethod();
if(method == null) {
return null;
}
Transactional txa = method.getAnnotation(Transactional.class);
if (txa == null) {
return invocation.proceed();
}
Transaction tx = manager.getCurren... |
315033_41 | public Set<T> getAll() {
return this.readDao.getAll();
} |
315033_42 | public List<T> getList(List<QueryParameter> query) {
return this.readDao.getList(query);
} |
315033_43 | public <OtherTemplate> OtherTemplate getOther(List<QueryParameter> query) {
return this.readDao.<OtherTemplate>getOther(query);
} |
315033_44 | public <OtherTemplate> List<OtherTemplate> getOtherList(List<QueryParameter> query) {
return this.readDao.<OtherTemplate>getOtherList(query);
} |
315033_45 | public List<T> getList(List<QueryParameter> query) {
return this.readDao.getList(query);
} |
315033_46 | public <OtherTemplate> OtherTemplate getOther(List<QueryParameter> query) {
return this.readDao.<OtherTemplate>getOther(query);
} |
315033_47 | public <OtherTemplate> List<OtherTemplate> getOtherList(List<QueryParameter> query) {
return this.readDao.<OtherTemplate>getOtherList(query);
} |
315033_48 | public void save(T... states) {
if (states == null) {
return;
}
if (isWithinTransaction()) {
for (T state : states) {
this.txService.save(getTxElement(state));
}
}
else {
this.writeDao.save(states);
}
} |
315033_49 | public void save(T... states) {
if (states == null) {
return;
}
if (isWithinTransaction()) {
for (T state : states) {
this.txService.save(getTxElement(state));
}
}
else {
this.writeDao.save(states);
}
} |
315033_50 | public void save(T... states) {
if (states == null) {
return;
}
if (isWithinTransaction()) {
for (T state : states) {
this.txService.save(getTxElement(state));
}
}
else {
this.writeDao.save(states);
}
} |
315033_51 | public void save(T... states) {
if (states == null) {
return;
}
if (isWithinTransaction()) {
for (T state : states) {
this.txService.save(getTxElement(state));
}
}
else {
this.writeDao.save(states);
}
} |
315033_52 | public void update(T... states) {
if (states == null) {
return;
}
if (isWithinTransaction()) {
for (T state : states) {
this.txService.update(getTxElement(state));
}
}
else {
this.writeDao.update(states);
}
} |
315033_53 | public void update(T... states) {
if (states == null) {
return;
}
if (isWithinTransaction()) {
for (T state : states) {
this.txService.update(getTxElement(state));
}
}
else {
this.writeDao.update(states);
}
} |
315033_54 | public void update(T... states) {
if (states == null) {
return;
}
if (isWithinTransaction()) {
for (T state : states) {
this.txService.update(getTxElement(state));
}
}
else {
this.writeDao.update(states);
}
} |
315033_55 | public void update(T... states) {
if (states == null) {
return;
}
if (isWithinTransaction()) {
for (T state : states) {
this.txService.update(getTxElement(state));
}
}
else {
this.writeDao.update(states);
}
} |
315033_56 | public void delete(T... states) {
if (states == null) {
return;
}
if (isWithinTransaction()) {
for (T state : states) {
this.txService.delete(getTxElement(state));
}
}
else {
this.writeDao.delete(states);
}
} |
315033_57 | public void delete(T... states) {
if (states == null) {
return;
}
if (isWithinTransaction()) {
for (T state : states) {
this.txService.delete(getTxElement(state));
}
}
else {
this.writeDao.delete(states);
}
} |
315033_58 | public void delete(T... states) {
if (states == null) {
return;
}
if (isWithinTransaction()) {
for (T state : states) {
this.txService.delete(getTxElement(state));
}
}
else {
this.writeDao.delete(states);
}
} |
315033_59 | public void delete(T... states) {
if (states == null) {
return;
}
if (isWithinTransaction()) {
for (T state : states) {
this.txService.delete(getTxElement(state));
}
}
else {
this.writeDao.delete(states);
}
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.