Questions tagged [restrictions]

A set of limiting conditions or measures to delimit the behavior of software.

232 questions
0
votes
2 answers

Can you create a Restriction for a Detached Criteria on a primitive collection?

I would like to know if there is a way to create a Restriction on a primitive collection of a Model in NHibernate.3.3.3? Here's the details: class Parent { IEnumerable ChildNames { get; set; } } I need to search like so: private…
0
votes
1 answer

Generic way to restrict a user's actions on a web application (PHP)

I've been tasked to work out a model which will introduce restrictions or levels in an existing webapplication. The application is not consequently build to easily implement this feature. Serverside is PHP, clientside is jQuery. These restrictions…
Gnagy
  • 1,432
  • 16
  • 26
0
votes
5 answers

How to make an input to accept only two decimals and have maximum of 10 digits?

How to make an input to accept only two decimals and have maximum of 10 digits? I use a function that is activated at onkeypress and gets the length of the value inserted in my input. I got to make it to accept max 10 digits, and maximum of 2…
Dan Ovidiu Boncut
  • 3,083
  • 4
  • 25
  • 45
0
votes
1 answer

Applet AccessControlException in "business" method only

I have an applet, that does file signing using a certificate from smartcard, that means several extra permissions needed to get it working: loading .dll as file on local machine, creating temp files etc. All involved jars are signed and started as…
0
votes
1 answer

hibernate criteria on date returns empty result

In DB2 I have dates in format 2013-06-27-10.20.23.000000 I would like to retrieve all the people born on 27-06. SimpleDateFormat formatter = new SimpleDateFormat("dd-MM"); String myDate = "27-06"; Date date = formatter.parse(myDate); Criteria…
0
votes
1 answer

Adding lower restriction to Applet / Webstart

I have a simple Applet application and my code creates ImageIcon objects from the same url from the Applet. When I run the application, I get a message about unrestricted access, it scares the user. How I configure my Applet or my JNLP to only show…
Marcus Becker
  • 352
  • 4
  • 11
0
votes
2 answers

Worklight: prevent App URL access from browser

I want to block users from accessing/using Worklight deployed App URL. For example, http://myserverDomain/myProjApp/apps/services/preview/CardApp/common/0/default/GoodApp.html Now I don't want users to go and type in the above URL and access the…
AAhad
  • 2,805
  • 1
  • 25
  • 42
0
votes
1 answer

sql hibernate and or restrictions

my sql should look like this: select cell1 from table where cell2 = 1 and (cell3 = '' or cell3 is null) But how to do the "and ( x or y )" restricion with hibernate?
Werner
  • 2,126
  • 2
  • 22
  • 34
0
votes
1 answer

Conflict in the results between Hibernate Criteria API and Hibernate Query Language

I am new to Hibernate criteria, the relation between Tutor and Student is OneToMany (i.e. one Tutor has many Student), I tried following hibernate query to retrieve all students whose tutor name is Peter Smith: from Student student where…
skip
  • 12,193
  • 32
  • 113
  • 153
0
votes
1 answer

iOS Calendar restriction caused app to crash

This is my scenario: I am adding an event to iOS calender from my app. Just before adding the event (add event view of calendar is being shown ), if user go to settings-->general-->restrictions-->calendar and restrict my app's permission the app…
Deepukjayan
  • 3,525
  • 1
  • 20
  • 31
0
votes
1 answer

Having trouble creating a page restriction using dreamweaver

Im trying to create a simple login form and a page with a page restriction I have created a mysql database and uploaded details of a user. I have created a login page: http://www.diydirector.com/loginform.php Which seemed to work fine. I then set it…
dan
  • 1
  • 2
0
votes
1 answer

Could it be a correct http query string?

Is there any restrictions as to which characters are allowed in URL? For example such string: http://localhost:8080/auth.dll?[session_id]={762308e9-9c89-47d2-b68f-220dedd0631a} Could it be allowed with chars: [, ], {, } ?
Secret
  • 2,627
  • 7
  • 32
  • 46
0
votes
2 answers

How do I mask out letters that don't match what's expected?

My goal is to create a game of hangman. I wrote code similar to this: c = [] players_guess = gets b = "example" b.scan(/./) {|letter| c << letter} c.each do |letter| if letter == players_guess puts letter else puts "*" end end The…
Leo
  • 2,061
  • 4
  • 30
  • 58
0
votes
1 answer

How to prevent unauthorized computers from accessing a website

I've developed a web application for a company. Because the company has offices in all the states in the country, the web application will be uploaded to the internet. Is it possible to restrict access to the web application to only know computers…
Chibuzo
  • 6,112
  • 3
  • 29
  • 51
0
votes
1 answer

Hibernate Restcrition Criteria OR with DetachedCritera

I am trying to create a detached criteria that has an OR restriction DetachedCriteria subquery = DetachedCriteria.forClass(Component.class); subquery.createCriteria("review").add(Restrictions.eq("owner", user)); …
Boris Horvat
  • 563
  • 2
  • 13
  • 28