Code example for Permission

Methods: getActionsgetName

0
		this.actions = actions;
	} 
 
	public boolean implies(Permission permission) {
		//TODO! 
		return ( "*".equals( getName() ) || getName().equals( permission.getName() ) ) &&
			( "*".equals(actions) || actions.indexOf( permission.getActions() ) >= 0 );
	} 
 
	public boolean equals(Object obj) {
		if ( !(obj instanceof HibernatePermission) ) return false;
		HibernatePermission permission = (HibernatePermission) obj;
		return permission.getName().equals( getName() ) && 
			permission.getActions().equals(actions);
	} 
 
	public int hashCode() { 
		return getName().hashCode() * 37 + actions.hashCode();
	} 
 
Connect your IDE to all the code out there  Get Codota for Java